?
Hallo
@hustbaer Auch wenn ich mir das Handle mit _get_heap_handle() hole, tritt wieder der Fehlercode 31 auf.
HANDLE heap = (HANDLE)get_heap_handle();
ULONG heapInfo(2);
BOOL result = HeapSetInformation(heap, HeapCompatibilityInformation, &heapInfo, sizeof heapInfo);
if (result == FALSE)
{
DWORD errCode = GetLastError();
std::cout << "Konnte LFH nicht enablen!" << errCode;
}
@Alexey Der Autor schreibt in seinem Kommentar, das er dasselbe macht wie in der Funktion HeapSetInformation. Wie soll es weiterhelfen, da ich auch nicht Detours in mein Projekt integrieren will.
Gruss
Lars.
Alexey schrieb:
schau dir diesen Beispiel an, vieleicht hilft dir weiter:
http://www.codeproject.com/Articles/5855/Low-Fragmentation-Heap-and-Function-Interception