This method of the ILockBytes interface removes the access restriction on a previously locked range of bytes.
public void UnlockRegion(long libOffset, long cb, int dwLockType);
S_OK -- the byte range was unlocked.
STG_E_INVALIDFUNCTION -- locking is not supported at all or the specific type of lock requested is not supported.
STG_E_LOCKVIOLATION -- the requested unlock cannot be granted.
[in] libOffset | Specifies the byte offset for the beginning of the range. |
[in] cb | Specifies, in bytes, the length of the range that is restricted. |
[in] dwLockType | Specifies the type of access restrictions previously placed on the range. |