RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStreamAdapter.UnlockRegion Method

Implements the IStream UnlockRegion method.

Pascal
function UnlockRegion(libOffset: Largeint; cb: Largeint; dwLockType: Longint): HResult; virtual; stdcall;
C++
virtual __fastcall __stdcall HRESULT UnlockRegion(Largeint libOffset, Largeint cb, Longint dwLockType);

The UnlockRegion method defined by IStream re-enables access in the associated stream that was previously restricted by a call to LockRegion. The region runs from the position specified by libOffset to the position specified by cb. dwLockType indicates the type of restriction to be released. 

TStreamAdapter does not support locking of regions, so UnlockRegion returns STG_E_INVALIDFUNCTION. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!