Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
363 B

#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);
}