kernel-alloc 0.1.2

Minimalistic Windows Kernel Allocator
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[repr(C)]
pub enum PoolType {
    NonPagedPool,
    NonPagedPoolExecute,
}

#[link(name = "ntoskrnl")]
extern "system" {
    pub fn ExAllocatePool(pool_type: PoolType, number_of_bytes: usize) -> *mut u64;
    pub fn ExAllocatePoolWithTag(pool_type: PoolType, number_of_bytes: usize, tag: u32) -> *mut u64;
    pub fn ExFreePool(pool: u64);
}