Hallo!
I have the following code:
HANDLE hHeap = GlobalHandle(GetEnvironmentStrings());
PROCESS_HEAP_ENTRY Entry;
if (!hHeap) return 0;
if (HeapLock(hHeap) == FALSE) {
wprintf(L"Failed to lock heap with LastError %d.\n", GetLastError());
return 1;
}
What are the most likely causes that HeapLock fails?