mirror of
https://github.com/rbmm/INJECT
synced 2026-06-08 17:02:59 +00:00
28 lines
454 B
C++
28 lines
454 B
C++
|
|
#include "stdafx.h"
|
|
|
|
void* __cdecl operator new(size_t size, NT::POOL_TYPE PoolType)
|
|
{
|
|
return NT::ExAllocatePool(PoolType, size);
|
|
}
|
|
|
|
void* __cdecl operator new[](size_t size, NT::POOL_TYPE PoolType)
|
|
{
|
|
return NT::ExAllocatePool(PoolType, size);
|
|
}
|
|
|
|
void __cdecl operator delete(PVOID pv)
|
|
{
|
|
NT::ExFreePool(pv);
|
|
}
|
|
|
|
void __cdecl operator delete(PVOID pv, size_t)
|
|
{
|
|
NT::ExFreePool(pv);
|
|
}
|
|
|
|
void __cdecl operator delete[](PVOID pv)
|
|
{
|
|
NT::ExFreePool(pv);
|
|
}
|