unlockRegion method

void unlockRegion(
  1. int libOffset,
  2. int cb,
  3. int dwLockType
)

Removes the access restriction on a range of bytes previously restricted with IStream.lockRegion.

Throws a WindowsException on failure.

To learn more, see learn.microsoft.com/windows/win32/api/objidl/nf-objidl-istream-unlockregion.

Implementation

@pragma('vm:prefer-inline')
void unlockRegion(int libOffset, int cb, int dwLockType) {
  final hr$ = HRESULT(_UnlockRegionFn(ptr, libOffset, cb, dwLockType));
  if (hr$.isError) throw WindowsException(hr$);
}