IDebugSystemObjects4::GetProcessIdByHandle method (dbgeng.h)

The GetProcessIdByHandle method returns the engine process ID for the specified process. The process is specified by its system handle.

Syntax

HRESULT GetProcessIdByHandle(
  [in]  ULONG64 Handle,
  [out] PULONG  Id
);

Parameters

[in] Handle

Specifies the handle of the process whose process ID is requested. This handle must be a process handle previously retrieved from the debugger engine.

[out] Id

Receives the engine process ID.

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. For details on system handles, see Handles.

Requirements

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