Removes the access restriction on a previously locked range of bytes.
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  | 
| 
 );  | 
Parameters
Return Values
Remarks
ILockBytes::UnlockRegion unlocks a region previously locked with a call to ILockBytes::LockRegion. Each region locked must be explicitly unlocked, using the same values for the libOffset, cb, and dwLockType parameters as in the matching calls to ILockBytes::LockRegion. Two adjacent regions cannot be locked separately and then unlocked with a single unlock call.
See Also
ILockBytes::LockRegion, LOCKTYPE, ILockBytes&emdash;File-Based Implementation, ILockBytes&emdash;Global Memory Implementation