From 28ff216899e95a6a9756bcbe580f28ed8ce61228 Mon Sep 17 00:00:00 2001 From: pravic Date: Tue, 12 Apr 2016 16:39:37 +0300 Subject: Windows Kernel-Mode library --- src/alloc/pool.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/alloc/pool.rs (limited to 'src/alloc/pool.rs') diff --git a/src/alloc/pool.rs b/src/alloc/pool.rs new file mode 100644 index 0000000..5b120ac --- /dev/null +++ b/src/alloc/pool.rs @@ -0,0 +1,13 @@ +#[repr(C)] +pub enum POOL_TYPE +{ + PagedPool, +} + +pub type PVOID = *mut u8; + +extern "system" +{ + pub fn ExAllocatePoolWithTag(PoolType: POOL_TYPE, NumberOfBytes: usize, Tag: u32) -> PVOID; + pub fn ExFreePoolWithTag(P: PVOID, Tag: u32); +} -- cgit v1.2.3