2
* WinPR: Windows Portable Runtime
3
* Heap Memory Allocation
5
* Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
7
* Licensed under the Apache License, Version 2.0 (the "License");
8
* you may not use this file except in compliance with the License.
9
* You may obtain a copy of the License at
11
* http://www.apache.org/licenses/LICENSE-2.0
13
* Unless required by applicable law or agreed to in writing, software
14
* distributed under the License is distributed on an "AS IS" BASIS,
15
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
* See the License for the specific language governing permissions and
17
* limitations under the License.
26
#include <winpr/winpr.h>
27
#include <winpr/wtypes.h>
31
#define HEAP_GENERATE_EXCEPTIONS 0x00000004
32
#define HEAP_NO_SERIALIZE 0x00000001
33
#define HEAP_ZERO_MEMORY 0x00000008
34
#define HEAP_REALLOC_IN_PLACE_ONLY 0x00000010
40
WINPR_API HANDLE GetProcessHeap(void);
41
WINPR_API LPVOID HeapAlloc(HANDLE hHeap, DWORD dwFlags, SIZE_T dwBytes);
42
WINPR_API LPVOID HeapReAlloc(HANDLE hHeap, DWORD dwFlags, LPVOID lpMem, SIZE_T dwBytes);
43
WINPR_API BOOL HeapFree(HANDLE hHeap, DWORD dwFlags, LPVOID lpMem);
51
#endif /* WINPR_HEAP_H */