System.Classes.TStreamAdapter.UnlockRegion

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function UnlockRegion(libOffset: LargeUInt; cb: LargeUInt; dwLockType: DWORD): HResult; virtual; stdcall;

C++

virtual HRESULT __stdcall UnlockRegion(unsigned __int64 libOffset, unsigned __int64 cb, unsigned dwLockType);

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes TStreamAdapter

Description

Implements the IStream UnlockRegion method.

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.

See Also