2 * Win32 kernel functions
4 * Copyright 1995 Thomas Sandford <t.d.g.sandford@prds-grn.demon.co.uk>
20 #define HEAP_ZERO_MEMORY 0x8
22 /* FIXME: these functions do *not* implement the win32 API properly. They
23 are here merely as "get you going" aids */
25 /***********************************************************************
26 * HeapAlloc (KERNEL32.222)
29 LPVOID
HeapAlloc(HANDLE hHeap
, DWORD dwFlags
, DWORD dwBytes
)
34 result
= malloc(dwBytes
);
35 if(result
&& (dwFlags
& HEAP_ZERO_MEMORY
))
36 memset(result
, 0, dwBytes
);