Поделиться через


CAtlFile::Seek

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

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

Параметры

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

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

Возвращаемое значение

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

Заметки

Calls SetFilePointer to move the file pointer.

Требования

Header: atlfile.h

См. также

Основные понятия

CAtlFile Class

CAtlFile Members