Click here to Skip to main content
15,889,992 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi , i want to use Ntdll.lib and Ntdll.h for use of undocumented function , i download ntdll.h and ntdll.lib and Add these files to my project , but when i want to use undocumented function i see this error , for example :
Quote:
Error 1 error C3861: 'ZwCreateProcess': identifier not found

please tell me how to use these file to run nt undocumented routine , thanks ,
Posted
Updated 9-Aug-12 5:37am
v3
Comments
[no name] 9-Aug-12 11:41am    
Well I could only point you back to the asnwer you already got...

See here[^]; you do not have a definition of ZwCreateProcess() anywhere in your compilation unit. If it is not defined in Ntdll.h then I guess you cannot use it.
 
Share this answer
 
Here is a proto-type for ZwCreateToken

NTSYSAPI
NTSTATUS
NTAPI
ZwCreateToken(
OUT PHANDLE TokenHandle,
IN ACCESS_MASK DesiredAccess,
IN POBJECT_ATTRIBUTES ObjectAttributes,
IN TOKEN_TYPE Type,
IN PLUID AuthenticationId,
IN PLARGE_INTEGER ExpirationTime,
IN PTOKEN_USER User,
IN PTOKEN_GROUPS Groups,
IN PTOKEN_PRIVILEGES Privileges,
IN PTOKEN_OWNER Owner,
IN PTOKEN_PRIMARY_GROUP PrimaryGroup,
IN PTOKEN_DEFAULT_DACL DefaultDacl,
IN PTOKEN_SOURCE Source
);
 
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