Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi all , i want to use NtCreateProcess in my driver programming , but can not find this function in any header file , can you help me to how i can find this function header and library and use it in my code ? please please please help me , thanks ,
Posted
Comments
[no name] 21-Jun-12 10:35am    
Are you asking about this? http://undocumented.ntinternals.net/UserMode/Undocumented%20Functions/NT%20Objects/Process/NtCreateProcess.html

1 solution

XML
did you try this?

<pre><pre><pre lang="c++">
HANDLE fileHandle, sectionHandle, processHandle;

fileHandle = CreateFile(L"C:\\Windows\\notepad.exe", ...);
NtCreateSection(&sectionHandle, SECTION_ALL_ACCESS, ...);
NtCreateProcess(&processHandle, PROCESS_ALL_ACCESS, NULL, GetCurrentProcess(), FALSE, sectionHandle, NULL, NULL);
</pre></pre></pre>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900