Struct PEB
pub struct PEB { /* private fields */ }Expand description
This structure exposes a user-friendly interface over the Process Environment Block (PEB) of the current process.
It can be accessed through super::Process::peb.
Implementations§
§impl PEB
impl PEB
pub fn being_debugged(&self) -> bool
pub fn being_debugged(&self) -> bool
Whether the current process is being debugged.
This mirrors the BeingDebugged field of the PEB and is equivalent to
the result of the IsDebuggerPresent() API.
pub fn ldr(&self) -> u64
pub fn ldr(&self) -> u64
Address of the loader data structure (PEB_LDR_DATA) which holds the
list of the modules loaded in the current process.
pub fn process_parameters(&self) -> u64
pub fn process_parameters(&self) -> u64
Address of the process parameters (RTL_USER_PROCESS_PARAMETERS) which
holds information such as the command line or the current directory.
pub fn atl_thunk_slist_ptr(&self) -> u64
pub fn atl_thunk_slist_ptr(&self) -> u64
Address of the per-process ATL thunk SList (single-linked list).
pub fn atl_thunk_slist_ptr32(&self) -> u32
pub fn atl_thunk_slist_ptr32(&self) -> u32
32-bit value of the ATL thunk SList pointer.
pub fn post_process_init_routine(&self) -> u64
pub fn post_process_init_routine(&self) -> u64
Address of the routine called once the process completed its
initialization (PostProcessInitRoutine).
pub fn session_id(&self) -> u32
pub fn session_id(&self) -> u32
Session ID associated with the current process.
pub fn entries(&self) -> LdrDataTableEntries ⓘ
pub fn entries(&self) -> LdrDataTableEntries ⓘ
Return a forward iterator over the modules referenced by the loader
data (Ldr) of the PEB, in load order.