MCPcopy Create free account
hub / github.com/echQoQ/RustSL / get_peb

Function get_peb

src/utils/win_api.rs:51–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49
50#[cfg(target_arch = "x86_64")]
51unsafe fn get_peb() -> *mut PEB {
52 let peb: *mut PEB;
53 std::arch::asm!("mov {}, gs:[0x60]", out(reg) peb);
54 peb
55}
56
57#[cfg(target_arch = "x86")]
58unsafe fn get_peb() -> *mut PEB {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected