diff options
| author | pravic <[email protected]> | 2016-04-12 16:39:37 +0300 |
|---|---|---|
| committer | pravic <[email protected]> | 2016-04-12 16:39:37 +0300 |
| commit | 28ff216899e95a6a9756bcbe580f28ed8ce61228 (patch) | |
| tree | bbf00e3c5f3b440db5ddb3f86b6d3a893349cee0 /src/alloc/pool.rs | |
| parent | git ignore (diff) | |
| download | winapi-kmd-rs-28ff216899e95a6a9756bcbe580f28ed8ce61228.tar.xz winapi-kmd-rs-28ff216899e95a6a9756bcbe580f28ed8ce61228.zip | |
Windows Kernel-Mode library
Diffstat (limited to 'src/alloc/pool.rs')
| -rw-r--r-- | src/alloc/pool.rs | 13 |
1 files changed, 13 insertions, 0 deletions
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); +} |