Kernel32HeapQueryInformation Method

Retrieves information about the 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 HeapQueryInformation(
	IntPtr hHeap,
	HeapInformationClass heapInformationClass,
	IntPtr heapInformation,
	uint heapInformationLength,
	out uint refReturnLength
)

Parameters

hHeap  IntPtr
A handle to the heap whose information is to be retrieved.

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

heapInformationClass  HeapInformationClass
The class of information to be retrieved.
heapInformation  IntPtr
A pointer to a buffer that receives the heap information.

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

heapInformationLength  UInt32
The size of the heap information being queried, in bytes.
refReturnLength  UInt32
A pointer to a variable that receives the length of data written to the heapInformation buffer.

If the buffer is too small, the function fails and refReturnLength specifies the minimum size required for the buffer.

If you do not want to receive this information, specify 0 (zero).

Return Value

Boolean
If the function succeeds, the return value is .

If the function fails, the return value is .

Remarks

See Also