summaryrefslogtreecommitdiff
path: root/src/alloc_sys.rs
blob: 5d46f0233f911ecbc23e1362924e6ed09bae6005 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#[repr(C)]
pub enum POOL_TYPE {
    PagedPool,
}

pub type PVOID = *mut u8;

#[link(name = "ntoskrnl")]
extern "system" {
    pub fn ExAllocatePoolWithTag(PoolType: POOL_TYPE, NumberOfBytes: usize, Tag: u32) -> PVOID;
    pub fn ExFreePoolWithTag(P: PVOID, Tag: u32);
}