Kernel32HeapSetInformation Method

Enables features for a specified heap.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", SetLastError = true)]
public static bool HeapSetInformation(
	IntPtr hHeap,
	HeapInformationClass heapInformationClass,
	IntPtr heapInformation,
	uint heapInformationLength
)

Parameters

hHeap  IntPtr
A handle to the heap where information is to be set.

This handle is returned by either the HeapCreate(HeapFlags, UInt32, UInt32) or GetProcessHeap function.

heapInformationClass  HeapInformationClass
The class of information to be set.
heapInformation  IntPtr
The heap information buffer.

The format of this data depends on the value of the heapInformationClass parameter.

If the heapInformationClass parameter is CompatibilityInformation, the heapInformation parameter is a pointer to a ULONG variable.

If the heapInformationClass parameter is EnableTerminationOnCorruption, the heapInformation parameter should be NULL and heapInformationLength should be 0 (zero).

heapInformationLength  UInt32
The size of the heapInformation buffer, in bytes.

Return Value

Boolean
If the function succeeds, the return value is .

If the function fails, the return value is .

Remarks

See Also