Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
35 views

I am trying to use NtCreateNamedPipe to create a pipe in the current process but i keep on getting 0xc000000d status code, i tried multiple combinations of the arguments and change the pipe name many ...
Sec Team's user avatar
0 votes
0 answers
45 views

I'm trying to read raw PCM data from a microphone stream in Windows. For this, I'm using KsCreatePin to create a connection to a microphone pin and start reading from it. Before reading, I'm setting ...
Louis Bernard's user avatar
1 vote
0 answers
121 views

I want to develop a trivial toolkit using direct syscalls for some of the native windows API procedures, for example I want to use NtOpenProcess to open a process and display some info related to the ...
katysha's user avatar
  • 139
2 votes
1 answer
1k views

I am trying to build a parental control application which can apply restrictions to another apps in android devices. The restrictions can be like :- The app can restrict the opening of any game app ...
ABHISHEK KUMAR's user avatar
0 votes
0 answers
419 views

I'm trying to find a process id by its image name name from kernel mode (Windows). My code is working, but newly created processes sometimes show up delayed/can't be found (up to 60 seconds after ...
Louis Bernard's user avatar
0 votes
2 answers
681 views

I am using the NT native API NtQueryObject()/ZwQueryObject() from user mode (and I am aware of the risks in general and I have written kernel mode drivers for Windows in the past in my professional ...
0xC0000022L's user avatar
  • 21.2k
1 vote
0 answers
329 views

I'm trying to close a specific file handle of a process from a kernelmode driver on Windows. For this, I'm using ZwQuerySystemInformation to enumerate all handles on the system and then filter them ...
Louis Bernard's user avatar
2 votes
1 answer
2k views

Disclaimer: This questions seems to get downvoted because I should use the normal Win32 API (CreateProcess, ShellExecute). I know about these APIs and I'm aware that RtlCreateUserProcess is not ...
Louis Bernard's user avatar
2 votes
1 answer
2k views

I read here that the inverse is possible, but how does one achieve such a thing? I'd hope there's a simple way, similar to calling from a loaded DLL, but my google research comes up with nothing. My ...
FShrike's user avatar
  • 381
0 votes
0 answers
186 views

EDIT: while browsing on StackOverflow, I discovered ZwAllocateVirtualMemory and that was not yielded by any google searches or documentation trawling, as it’s under “Previous Versions” of the ...
FShrike's user avatar
  • 381
1 vote
1 answer
1k views

I have been trying to open an existing file using NtCreateFile, although it cannot find the file that I am looking for even if it is present in the directory I am trying to open the file in. ...
Yung Lew's user avatar
0 votes
0 answers
346 views

Consider this snippet (handle was opened with FILE_SYNCHRONOUS_IO_NONALERT flag): IO_STATUS_BLOCK io; NTSTATUS r = NtWriteFile(h, NULL, NULL, NULL, &io, data, data_len, &pos, NULL); if ...
C.M.'s user avatar
  • 3,457
0 votes
0 answers
453 views

Stumbled upon a weird problem: let's say we have an SMB share \\<server>\<share> and we opened it for writing NtSetInformationFile(..., FileBasicInformation) normally succeeds ... but if ...
C.M.'s user avatar
  • 3,457
1 vote
1 answer
1k views

I am written the following code to create a new key in the registry but an NTSTATUS error value of -1073741772 is returned by the NtOpenKey() function when attempting to fetch the handle of the base ...
hecate's user avatar
  • 632
0 votes
1 answer
464 views

I try to stop some process, I use NativeAPI from ntdll. I wrote some C code, It works: typedef LONG(NTAPI* NtSuspendProcess)(IN HANDLE ProcessHandle); UINT __stdcall Suspend(VOID* processId) { ...
lostsky25's user avatar
2 votes
1 answer
3k views

Task is: find process id by executable name. Calling application is 32 bit, finding process can be 32 or 64 bit Solution: #include <string> #include <iostream> #include <windows.h>...
goldstar's user avatar
  • 347
1 vote
1 answer
179 views

WlanGetProfileList native api is working as expected until the device restarts. Once the device restart the result of the same api is empty. But still I can see the created profiles under registry ...
samiaj's user avatar
  • 441
-2 votes
1 answer
326 views

I try to write dll injector with nativeApi. For this reason, i wrote this code. NtReadFile function reads something but i cant see anything except for the first value of FileReadBuffer. Also, i dont ...
Burak Kocaman's user avatar
2 votes
2 answers
11k views

im trying to make a program witch will get command line of proces by a Process id. Im using eclipse c++ and mingw compiler So i found a 1 tutorial how to do that, and it needs ntstatus so like in ...
Dushan01's user avatar
0 votes
2 answers
2k views

I'd apologize because of the question , in advance. I'm a little newbie on C# , and I don't know how to use Managed WiFi API and how to add the classes to the working project, anyone helps me ? I've ...
Mohammad yummy's user avatar
6 votes
1 answer
1k views

I've written a simple (test) script to list files in a selected directory. Not using FindFirstFile; only native API. When I execute the script and watch, Win32API monitor tells me STATUS_SUCCESS. My ...
Vusal Aliyev's user avatar
3 votes
2 answers
1k views

NtCreateSymbolicLinkObject creates an object in the Windows Object Manager (you can see such links using the WinObj utility from System Internals). What is the correct way to delete a symbolic link ...
Adrian S's user avatar
  • 554
-1 votes
3 answers
1k views

How can i get HANDLE to the memory region or mapped file ? What actually HANDLE is ? Please do not answer like this : A handle is an abstract reference to some resourc,e provided to you by another ...
xdoborax's user avatar
1 vote
2 answers
389 views

I am analyzing an executable based on its execution trace. I have obtained the execution trace using NtTrace tool. The output is a sequence of native api calls with arguments. I have managed to ...
Maggie's user avatar
  • 6,083
1 vote
2 answers
2k views

The book Windows NT/2000 Native API Reference provides a comprehensive documentation (even though outdated) of undocumented (by Microsoft) Native APIs. But I am curious, is there anyway to find the ...
Maggie's user avatar
  • 6,083