Debugging Tools for Windows

GetCurrentProcessSystemId

The GetCurrentProcessSystemId method returns the system process ID of the current process.

HRESULT
  IDebugSystemObjects::GetCurrentProcessSystemId(
   OUT PULONG  SysId
    );

Parameters

SysId
Receives the system process ID.

Return Value

S_OK
The method was successful.
E_NOTIMPL
The target is a kernel-mode target.

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

Interface Version

GetCurrentProcessSystemId is available in all versions of IDebugSystemObjects.

Comments

This method is only available in user-mode debugging.

For more information about processes, see Threads and Processes.

Requirements

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

Build machine: CAPEBUILD