1
0
mirror of https://github.com/momo5502/hypervisor.git synced 2025-07-04 10:11:51 +00:00

Cleanup hook irp

This commit is contained in:
momo5502
2022-04-23 21:40:52 +02:00
parent ea6f18ea5e
commit db4e69f5be
5 changed files with 95 additions and 62 deletions

View File

@ -23,6 +23,9 @@ namespace memory
_IRQL_requires_max_(DISPATCH_LEVEL)
void free_non_paged_memory(void* memory);
bool prope_for_read(const void* address, size_t length, uint64_t alignment = 1);
void assert_readability(const void* address, size_t length, uint64_t alignment = 1);
template <typename T, typename... Args>
T* allocate_non_paged_object(Args ... args)
{