IDebugSystemObjects::GetProcessIdByHandle method

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

Handle [in]

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

Id [out]

Receives the engine process ID.

Return value

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

Return codeDescription
S_OK

The method was successful.

 

Remarks

For more information about processes, see Threads and Processes. For details on system handles, see Handles.

Requirements

Header

Dbgeng.h (include Dbgeng.h)

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft