Sorry for the rookie question but,
I'm trying to use madKernel.NewProcess in a inherited application using CreateProcess, but I
guess PROCESS_INFORMATION.hProcess is stored in IProcess.HInstance.
This is correct?
The equivalent of PROCESS_INFORMATION.hProcess in IProcess?
-
- Posts: 2
- Joined: Wed Oct 01, 2008 12:37 am
Re: The equivalent of PROCESS_INFORMATION.hProcess in IProce
No. The IProcess interface inherits from IKernelObj, and IKernelObj has a method called "Handle", which returns an IHandle interface. The IHandle interface has a method called "Handle" which gives you the "hProcess" value. So basically you could do this:
http://help.madshi.net/IProcessRef.htm
Code: Select all
hProcess := processInterfaceYouGotFromNewProcess.Handle.Handle;