// wdbgexts.h
VOID GetCurrentProcessHandle(
PHANDLE hp
);
View the official Windows Driver Kit DDI referenceNo description available.
The GetCurrentProcessHandle function returns the system handle for the current process.
hpReceives the system handle for the current process.
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.