Debugging Tools for Windows

GetProcessIdByPeb

The GetProcessIdByPeb method returns the engine process ID for the specified process. The process is specified by its process environment block (PEB).

HRESULT
  IDebugSystemObjects::GetProcessIdByPeb(
    IN ULONG64  Offset,
    OUT PULONG  Id
    );

Parameters

Offset
Specifies the location in the target's virtual address space of the PEB of the process whose process ID is requested.
Id
Receives the engine process ID.

Return Value

S_OK
The method was successful.
E_NOTIMPL
The target is a kernel-mode target. This method is currently not available in kernel-mode debugging.

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

Interface Version

GetProcessIdByPeb is available in all versions of IDebugSystemObjects.

Comments

This method is not available in kernel-mode debugging.

For more information about processes, see Threads and Processes.

Requirements

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

Build machine: CAPEBUILD