diff options
| author | Harry Fei <[email protected]> | 2018-09-30 17:53:14 +0800 |
|---|---|---|
| committer | Harry Fei <[email protected]> | 2018-10-08 16:48:14 +0800 |
| commit | d8b204c31f07ab98aa0f1a47a00c0b30efebecc2 (patch) | |
| tree | 038239674bf2f5daa2a98ff6871fe5df1dd615b5 /src/alloc_sys.rs | |
| download | win-kmd-alloc-d8b204c31f07ab98aa0f1a47a00c0b30efebecc2.tar.xz win-kmd-alloc-d8b204c31f07ab98aa0f1a47a00c0b30efebecc2.zip | |
init commitrebase2
Diffstat (limited to 'src/alloc_sys.rs')
| -rw-r--r-- | src/alloc_sys.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/alloc_sys.rs b/src/alloc_sys.rs new file mode 100644 index 0000000..5d46f02 --- /dev/null +++ b/src/alloc_sys.rs @@ -0,0 +1,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); +} |