Microsoft SDK for Java

UnlockRegion

This method of the ILockBytes interface removes the access restriction on a previously locked range of bytes.

Syntax

public void UnlockRegion(long libOffset, long cb, int dwLockType);



Return Values

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.

Parameters

[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.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.