HeapSetInformation function kernel32

Win32Result<bool> HeapSetInformation(
  1. HANDLE? heapHandle,
  2. HEAP_INFORMATION_CLASS heapInformationClass,
  3. Pointer<NativeType>? heapInformation,
  4. int heapInformationLength,
)

Enables features for a specified heap.

To learn more, see learn.microsoft.com/windows/win32/api/heapapi/nf-heapapi-heapsetinformation.

Implementation

Win32Result<bool> HeapSetInformation(
  HANDLE? heapHandle,
  HEAP_INFORMATION_CLASS heapInformationClass,
  Pointer? heapInformation,
  int heapInformationLength,
) {
  final result_ = HeapSetInformation_Wrapper(
    heapHandle ?? nullptr,
    heapInformationClass,
    heapInformation ?? nullptr,
    heapInformationLength,
  );
  return .new(value: result_.value.i32 != FALSE, error: result_.error);
}