Microsoft SDK for Java

LockRegion

This method of the IStream Interface restricts access to a range of bytes in the stream.

Syntax

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

Parameters

libOffset The offset of the current seek pointer (measured in bytes) that indicates where to start the restriction.
cb The number of bytes to restrict.
dwLocktype A flag that indicates the type of restriction that is placed; the value must be LOCK_WRITE, LOCK_EXCLUSIVE, or LOCK_ONLYONCE.

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