GetCurrentProcessHandle function (wdbgexts.h)

The GetCurrentProcessHandle function returns the system handle for the current process.

Syntax

void GetCurrentProcessHandle(
  PHANDLE hp
);

Parameters

hp

Receives the system handle for the current process.

Return value

None

Remarks

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.

Requirements

Requirement Value
Target Platform Desktop
Header wdbgexts.h (include Wdbgexts.h, Dbgeng.h)