HeapSetInformation function kernel32
Win32Result<bool>
HeapSetInformation(
- HANDLE? heapHandle,
- HEAP_INFORMATION_CLASS heapInformationClass,
- Pointer<
NativeType> ? heapInformation, - 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);
}