The GetCurrentProcessHandle method returns the system handle for the current process.
HRESULT GetCurrentProcessHandle( PULONG64 Handle );
Receives the system handle of the current process.
This method may also return error values. See Return Values for more details.
||The method was successful.|
In kernel-mode debugging, the only process in the target is the virtual process created for the kernel. In this case, an artificial handle is created. The artificial handle can only be used with the debugger engine API.
|Header||dbgeng.h (include Dbgeng.h)|