Lines Matching refs:dwFlags
45 LPVOID WINAPI HeapAlloc(HANDLE hHeap, DWORD dwFlags, size_t dwBytes);
46 LPVOID WINAPI HeapReAlloc(HANDLE hHeap, DWORD dwFlags, LPVOID lpMem,
48 BOOL WINAPI HeapFree(HANDLE hHeap, DWORD dwFlags, LPVOID lpMem);
49 size_t WINAPI HeapSize(HANDLE hHeap, DWORD dwFlags, LPCVOID lpMem);
51 BOOL WINAPI HeapValidate(HANDLE hHeap, DWORD dwFlags, LPCVOID lpMem);
207 INTERCEPTOR_WINAPI(size_t, HeapSize, HANDLE hHeap, DWORD dwFlags,
215 return REAL(HeapSize)(hHeap, dwFlags, lpMem);
217 CHECK(dwFlags == 0 && "unsupported heap flags");
224 INTERCEPTOR_WINAPI(LPVOID, HeapAlloc, HANDLE hHeap, DWORD dwFlags,
230 (dwFlags & HEAP_ALLOCATE_UNSUPPORTED_FLAGS) != 0)) {
231 return REAL(HeapAlloc)(hHeap, dwFlags, dwBytes);
237 CHECK((HEAP_ALLOCATE_UNSUPPORTED_FLAGS & dwFlags) != 0 &&
245 if (p && (dwFlags & HEAP_ZERO_MEMORY)) {
254 INTERCEPTOR_WINAPI(BOOL, HeapFree, HANDLE hHeap, DWORD dwFlags, LPVOID lpMem) {
260 return REAL(HeapFree)(hHeap, dwFlags, lpMem);
262 CHECK((HEAP_FREE_UNSUPPORTED_FLAGS & dwFlags) != 0 && "unsupported flags");
277 HANDLE hHeap, DWORD dwFlags, LPVOID lpMem, size_t dwBytes) {
301 return reallocFunc(hHeap, dwFlags, lpMem, dwBytes);
304 (HEAP_REALLOC_UNSUPPORTED_FLAGS & dwFlags) == 0;
312 if (dwFlags & HEAP_ZERO_MEMORY)
317 size_t old_size = heapSizeFunc(hHeap, dwFlags, lpMem);
323 freeFunc(hHeap, dwFlags, lpMem);
331 return reallocFunc(hHeap, dwFlags, lpMem, dwBytes);
338 void *replacement_alloc = allocFunc(hHeap, dwFlags, dwBytes);
356 CHECK((HEAP_REALLOC_UNSUPPORTED_FLAGS & dwFlags) != 0 &&
361 if (dwFlags & HEAP_REALLOC_IN_PLACE_ONLY)
372 if (dwFlags & HEAP_ZERO_MEMORY)
379 if (dwFlags & HEAP_ZERO_MEMORY) {
389 INTERCEPTOR_WINAPI(LPVOID, HeapReAlloc, HANDLE hHeap, DWORD dwFlags,
392 REAL(HeapFree), REAL(HeapAlloc), hHeap, dwFlags, lpMem,