windows-nt/Source/XPSP1/NT/base/screg/sc/svchost/memory.c

32 lines
332 B
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
#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);
}