Partager via


CAtlFile::Seek

Call this method to move the file pointer of the file.

HRESULT Seek( 
   LONGLONG nOffset, 
   DWORD dwFrom = FILE_CURRENT 
) throw( );

Parameters

  • nOffset
    The offset from the starting point given by dwFrom.

  • dwFrom
    The starting point (FILE_BEGIN, FILE_CURRENT, or FILE_END).

Return Value

Returns S_OK on success, or an error HRESULT on failure.

Remarks

Calls SetFilePointer to move the file pointer.

Requirements

Header: atlfile.h

See Also

Reference

CAtlFile Class