Kernel32HeapQueryInformation Method
Retrieves information about the specified heap.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("Kernel32.dll", SetLastError := true>]
Public Shared Function HeapQueryInformation (
hHeap As IntPtr,
heapInformationClass As HeapInformationClass,
heapInformation As IntPtr,
heapInformationLength As UInteger,
<OutAttribute> ByRef refReturnLength As UInteger
) As Boolean
Dim hHeap As IntPtr
Dim heapInformationClass As HeapInformationClass
Dim heapInformation As IntPtr
Dim heapInformationLength As UInteger
Dim refReturnLength As UInteger
Dim returnValue As Boolean
returnValue = Kernel32.HeapQueryInformation(hHeap,
heapInformationClass, heapInformation,
heapInformationLength, refReturnLength)
public:
[DllImportAttribute(L"Kernel32.dll", SetLastError = true)]
static bool HeapQueryInformation(
[InAttribute] IntPtr hHeap,
HeapInformationClass heapInformationClass,
IntPtr heapInformation,
unsigned int heapInformationLength,
[OutAttribute] unsigned int% refReturnLength
)
[<DllImportAttribute("Kernel32.dll", SetLastError = true)>]
static member HeapQueryInformation :
hHeap : IntPtr *
heapInformationClass : HeapInformationClass *
heapInformation : IntPtr *
heapInformationLength : uint32 *
refReturnLength : uint32 byref -> bool
No code example is currently available or this language may not be supported.
- 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).
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.