IDebugSystemObjects3::GetCurrentProcessId method (dbgeng.h)

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

Syntax

HRESULT GetCurrentProcessId(
  [out] PULONG Id
);

Parameters

[out] Id

Receives the engine process ID for the current process.

Return value

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

Return code Description
S_OK
The method was successful.

Remarks

For more information about processes, see Threads and Processes.

Requirements

Requirement Value
Target Platform Desktop
Header dbgeng.h (include Dbgeng.h)