RAD Studio VCL Reference
TStreamAdapter.UnlockRegion Method

Implements the IStream UnlockRegion method.

function UnlockRegion(libOffset: Largeint; cb: Largeint; dwLockType: Longint): HResult; virtual; stdcall;
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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!