32 lines
332 B
C
32 lines
332 B
C
|
#include "pch.h"
|
||
|
#pragma hdrstop
|
||
|
|
||
|
|
||
|
HANDLE g_hHeap;
|
||
|
|
||
|
|
||
|
VOID
|
||
|
MemInit (
|
||
|
IN HANDLE hHeap
|
||
|
)
|
||
|
{
|
||
|
g_hHeap = hHeap;
|
||
|
}
|
||
|
|
||
|
LPVOID
|
||
|
MemAlloc (
|
||
|
IN DWORD dwFlags,
|
||
|
IN SIZE_T dwBytes
|
||
|
)
|
||
|
{
|
||
|
return HeapAlloc (g_hHeap, dwFlags, dwBytes);
|
||
|
}
|
||
|
|
||
|
BOOL
|
||
|
MemFree (
|
||
|
IN LPVOID pv
|
||
|
)
|
||
|
{
|
||
|
return HeapFree (g_hHeap, 0, pv);
|
||
|
}
|