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.
56 lines
687 B
56 lines
687 B
/*++
|
|
|
|
Copyright (c) 1997-1998 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
memory.cpp
|
|
|
|
Abstract:
|
|
|
|
Implements heap management wrappers for use on process default heap
|
|
|
|
Notes:
|
|
|
|
Author:
|
|
|
|
Vlad Sadovsky (VladS) 4/12/1999
|
|
|
|
Environment:
|
|
|
|
User Mode - Win32
|
|
|
|
Revision History:
|
|
|
|
4/12/1999 VladS Created
|
|
|
|
--*/
|
|
|
|
VOID
|
|
inline
|
|
MemInit (
|
|
IN HANDLE hHeap
|
|
)
|
|
{
|
|
g_hHeap = hHeap;
|
|
}
|
|
|
|
LPVOID
|
|
inline
|
|
MemAlloc (
|
|
IN DWORD dwFlags,
|
|
IN SIZE_T dwBytes
|
|
)
|
|
{
|
|
return HeapAlloc (g_hHeap, dwFlags, dwBytes);
|
|
}
|
|
|
|
BOOL
|
|
inline
|
|
MemFree (
|
|
IN LPVOID pv
|
|
)
|
|
{
|
|
return HeapFree (g_hHeap, 0, pv);
|
|
}
|
|
|