HeapQueryInformation function kernel32

int HeapQueryInformation(
  1. int HeapHandle,
  2. int HeapInformationClass,
  3. Pointer<NativeType> HeapInformation,
  4. int HeapInformationLength,
  5. Pointer<IntPtr> ReturnLength,
)

Retrieves information about the specified heap.

BOOL HeapQueryInformation(
  HANDLE                 HeapHandle,
  HEAP_INFORMATION_CLASS HeapInformationClass,
  PVOID                  HeapInformation,
  SIZE_T                 HeapInformationLength,
  PSIZE_T                ReturnLength
);

Implementation

int HeapQueryInformation(
        int HeapHandle,
        int HeapInformationClass,
        Pointer HeapInformation,
        int HeapInformationLength,
        Pointer<IntPtr> ReturnLength) =>
    _HeapQueryInformation(HeapHandle, HeapInformationClass, HeapInformation,
        HeapInformationLength, ReturnLength);