| View previous topic :: View next topic |
| Author |
Message |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Thu Jul 05, 2007 5:24 pm Post subject: ZwCreateProcess error |
|
|
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 |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Thu Jul 05, 2007 5:36 pm Post subject: |
|
|
| 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 |
|
 |
Noz3001 I'm a spammer
Reputation: 26
Joined: 29 May 2006 Posts: 6220 Location: /dev/null
|
Posted: Thu Jul 05, 2007 5:49 pm Post subject: |
|
|
Add it to your sources file
|
|
| Back to top |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Thu Jul 05, 2007 5:56 pm Post subject: |
|
|
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 |
|
 |
|