Debugging Tools for Windows

GetProcessIdByDataOffset

The GetProcessIdByDataOffset method returns the engine process ID for the specified process. The process is specified by its data offset.

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

Parameters

Offset
Specifies the location in the target's virtual address space of the data offset of the process.
Id
Receives the engine process ID for the process.

Return Value

S_OK
The method was successful.
E_NOTIMPL
The current 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

GetProcessIdByDataOffset is available in all versions of IDebugSystemObjects.

Comments

This method is currently not available in kernel-mode debugging.

In user-mode debugging, this method behaves the same as GetProcessIdByPeb.

For more information about processes, see Threads and Processes.

Requirements

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

Build machine: CAPEBUILD