HeapInformationClass Enumeration
Specifies a class of heap information to be set or retrieved.
Namespace: DevCase.Win32.EnumsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public enum HeapInformationClass
Public Enumeration HeapInformationClass
Dim instance As HeapInformationClass
public enum class HeapInformationClass
type HeapInformationClass
No code example is currently available or this language may not be supported.
CompatibilityInformation |
0 |
Enables heap features.
The available features vary based on operating system.
The heap features depends on the heapInformation parameter in the
HeapQueryInformation(IntPtr, HeapInformationClass, IntPtr, UInt32, UInt32) or
HeapSetInformation(IntPtr, HeapInformationClass, IntPtr, UInt32) functions.
|
EnableTerminationOnCorruption |
1 |
Enables the terminate-on-corruption feature.
If the heap manager detects an error in any heap used by the process,
it calls the Windows Error Reporting (WER) service and terminates the process.
After a process enables this feature, it cannot be disabled.
|
OptimizeResources |
3 |
If HeapSetInformation(IntPtr, HeapInformationClass, IntPtr, UInt32) is called with hHeap parameter set to Zero,
then all heaps in the process with a low-fragmentation heap (LFH) will have their caches optimized,
and the memory will be decommitted if possible.
If a heap pointer is supplied in hHeap parameter, then only that heap will be optimized.
Note that the HEAP_OPTIMIZE_RESOURCES_INFORMATION structure passed in heapInformation parameter must be properly initialized.
|