Debugging Tools for Windows

GetCurrentProcessId

The GetCurrentProcessId method returns the engine process ID for the current process.

HRESULT
  IDebugSystemObjects::GetCurrentProcessId(
    OUT PULONG  Id
    );

Parameters

Id
Receives the engine process ID for the current process.

Return Value

S_OK
The method was successful.

This method may also return error values. See Return Values for more details.

Interface Version

GetCurrentProcessId is available in all versions of IDebugSystemObjects.

Comments

For more information about processes, see Threads and Processes.

Requirements

Headers: Defined in Dbgeng.h. Include Dbgeng.h.

Build machine: CAPEBUILD