Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
The GetCurrentProcessPeb method returns the process environment block (PEB) of the current process.
Syntax
HRESULT GetCurrentProcessPeb(
  [out] PULONG64 Offset
);
Parameters
[out] Offset
Receives the location in the target's virtual address space of the PEB of 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, this method provides the same information as GetCurrentProcessDataOffset.
In kernel-mode debugging, the location returned is that of the PEB structure for the system process in which the last event occurred.
Requirements
| Requirement | Value | 
|---|---|
| Target Platform | Desktop | 
| Header | dbgeng.h (include Dbgeng.h) |