Serial Framework C++ Edition

◆ LockRegion()

virtual HRESULT STDMETHODCALLTYPE LockRegion ( ULARGE_INTEGER  libOffset,
ULARGE_INTEGER  cb,
DWORD  dwLockType 
)
overridevirtual

The method restricts access to a specified range of bytes in the stream. Supporting this functionality is optional since some file systems do not provide it.

Parameters
libOffsetInteger that specifies the byte offset for the beginning of the range.
cbInteger that specifies the length of the range, in bytes, to be restricted.
dwLockTypeSpecifies the restrictions being requested on accessing the range.
Returns
S_OK if operation completed with success.