delphi package - easy access to kernel objects etc.
- Posts: 2
- Joined: Wed Oct 01, 2008 12:37 am
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?
- Site Admin
- Posts: 10527
- Joined: Sun Mar 21, 2004 5:25 pm
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:
Code: Select all
hProcess := processInterfaceYouGotFromNewProcess.Handle.Handle;