CFile::UnlockRange

Syntax

virtual void UnlockRange( const DWORD dwPos, const DWORD dwCount )
throw( CFileException );

Parameters

dwPos

The byte offset of the start of the byte range to unlock.

dwCount

The number of bytes in the range to unlock.

Remarks

Unlocks a range of bytes in an open file. See the description of LockRange for details.

Under MS-DOS, you must load SHARE.EXE; otherwise, the function throws a CFileException object.

Note:

This function is not available for the CMemFile-derived class.

Example

extern DWORD dwPos;

extern DWORD dwCount;

extern CFile cfile;

cfile.UnlockRange( dwPos, dwCount );

See Also

CFile::LockRange