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

  1. #include "pch.h"
  2. #pragma hdrstop
  3. HANDLE g_hHeap;
  4. VOID
  5. MemInit (
  6. IN HANDLE hHeap
  7. )
  8. {
  9. g_hHeap = hHeap;
  10. }
  11. LPVOID
  12. MemAlloc (
  13. IN DWORD dwFlags,
  14. IN SIZE_T dwBytes
  15. )
  16. {
  17. return HeapAlloc (g_hHeap, dwFlags, dwBytes);
  18. }
  19. BOOL
  20. MemFree (
  21. IN LPVOID pv
  22. )
  23. {
  24. return HeapFree (g_hHeap, 0, pv);
  25. }