HeapLock function kernel32
Attempts to acquire the critical section object, or lock, that is associated with a specified heap.
To learn more, see learn.microsoft.com/windows/win32/api/heapapi/nf-heapapi-heaplock.
Implementation
Win32Result<bool> HeapLock(HANDLE hHeap) {
resolveGetLastError();
final result_ = _HeapLock(hHeap);
return .new(value: result_ != FALSE, error: GetLastError());
}