Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


ZwCreateProcess error

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
UnLmtD
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 894
Location: Canada

PostPosted: Thu Jul 05, 2007 5:24 pm    Post subject: ZwCreateProcess error Reply with quote

Hey guys,

I'm having trouble using ZwCreateProcess, it gives me this error:



After the includes I have
Code:
NTSYSAPI
NTSTATUS
NTAPI
ZwCreateProcess(
OUT PHANDLE phProcess,
IN ACCESS_MASK DesiredAccess,
IN POBJECT_ATTRIBUTES ObjectAttributes,
IN HANDLE hParentProcess,
IN BOOLEAN bInheritParentHandles,
IN HANDLE hSection OPTIONAL,
IN HANDLE hDebugPort OPTIONAL,
IN HANDLE hExceptionPort OPTIONAL
);


and in the main part I use
Code:

ntstatus =   ZwCreateProcess(&handle,
                              PROCESS_ALL_ACCESS,
                              &objAttr,
                              NtCurrentProcess(),
                              TRUE,
                              0,
                              0,
                              0 );
                             


I beleive I may be missing a header or something. Help me out please =)

Thanks

_________________
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Thu Jul 05, 2007 5:36 pm    Post subject: Reply with quote

It's not that you're missing a header file- It's a linker error. It can't find the import, which means you didn't link to a required library (which is in this case ntdll.lib).
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Thu Jul 05, 2007 5:49 pm    Post subject: Reply with quote

Add it to your sources file Question
Back to top
View user's profile Send private message MSN Messenger
UnLmtD
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 894
Location: Canada

PostPosted: Thu Jul 05, 2007 5:56 pm    Post subject: Reply with quote

Okay well it does compile now, but I can't load the drivers, it says "An unexpected error has occurred." Not sure where I messed up. Going to search the net for examples >=0
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites