Heren (en wellicht dames)
Heeft iemand wel eens geprobeerd een low fragmentation heap op te zetten ?
Volgens de MSDN moet dat mogelijk zijn :
Deze functionaliteit zou in windows XP moeten zitten. Maar ik krijg dus alleen maar een error (31=A device attached to the system is not functioning)
Zo wel met hCHeap = GetProcessHeap() als met hCHeap = HeapCreate(..)
...
Heeft iemand wel eens geprobeerd een low fragmentation heap op te zetten ?
Volgens de MSDN moet dat mogelijk zijn :
code:
1
2
3
4
5
6
7
8
9
10
11
| ULONG ulHeapCompatibilityInformation ;
ulHeapCompatibilityInformation = 2;
if(HeapSetInformation(hCHeap,HeapCompatibilityInformation,&ulHeapCompatibilityInformation,
sizeof(ulHeapCompatibilityInformation))) {
wprintf(L"Heap algorithm set to %s Low-fragmentation heap(handle=0x%x)\n",
buf[ulHeapCompatibilityInformationRequested], hCHeap);
}
else
wprintf( L"Unable to set Heap information to %s (handle=0x%x)GetLastError()= %d 0x%x\n",
buf[ulHeapCompatibilityInformationRequested],hCHeap, GetLastError(), GetLastError());
} |
Deze functionaliteit zou in windows XP moeten zitten. Maar ik krijg dus alleen maar een error (31=A device attached to the system is not functioning)
Zo wel met hCHeap = GetProcessHeap() als met hCHeap = HeapCreate(..)
...