Removes the access restriction on a range of bytes previously restricted with IStream::LockRegion.
HRESULT UnlockRegion(
ULARGE_INTEGER libOffset,
//Specifies the byte offset for the beginning
// of the range
ULARGE_INTEGER cb, //Specifies the length of the range in bytes
DWORD dwLockType //Specifies the access restriction previously
// placed on the range
);
IStream::UnlockRegion unlocks a region previously locked with the IStream::LockRegion method. Locked regions must later be explicitly unlocked by calling IStream::UnlockRegion with exactly the same values for the libOffset, cb, and dwLockType parameters. The region must be unlocked before the stream is released. Two adjacent regions cannot be locked separately and then unlocked with a single unlock call.
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in objidl.h.
IStream - Compound File Implementation, LOCKTYPE, IStream::LockRegion