1 2 3 4 5 6 7 8 9 10 11
#[repr(C)] pub enum PoolType { NonPagedPool, NonPagedPoolExecute, } #[link(name = "ntoskrnl")] extern "system" { pub fn ExAllocatePool(pool_type: PoolType, number_of_bytes: usize) -> *mut core::ffi::c_void; pub fn ExFreePool(pool: u64); }