RAD Studio VCL Reference
TStreamAdapter.LockRegion Method

Implements the IStream LockRegion method.

function LockRegion(libOffset: Largeint; cb: Largeint; dwLockType: Longint): HResult; virtual; stdcall;
virtual __fastcall __stdcall HRESULT LockRegion(Largeint libOffset, Largeint cb, Longint dwLockType);

The LockRegion method defined by IStream restricts access in the associated stream from the position specified by libOffset to the position specified by cb. dwLockType indicates the type of restriction imposed. 

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


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!