RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStreamAdapter.LockRegion Method

Implements the IStream LockRegion method.

Pascal
function LockRegion(libOffset: Largeint; cb: Largeint; dwLockType: Longint): HResult; virtual; stdcall;
C++
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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!