IDebugSystemObjects3::GetCurrentProcessDataOffset method (dbgeng.h)
The GetCurrentProcessDataOffset method returns the location of the system data structure describing the current process.
Syntax
HRESULT GetCurrentProcessDataOffset(
[out] PULONG64 Offset
);
Parameters
[out] Offset
Receives the location in the target's virtual address space of the system data structure describing the current process.
Return value
This method may also return error values. See Return Values for more details.
Return code | Description |
---|---|
|
The method was successful. |
Remarks
In user-mode debugging, the location returned is of the process environment block (PEB) for the current process. This is the same location returned by GetCurrentProcessPeb.
In kernel-mode debugging, the location returned is of the KPROCESS structure for the system process in which the last event occurred.
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | dbgeng.h (include Dbgeng.h) |