Partager via


CAtlTemporaryFile::Seek

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

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

Parameters

  • nOffset
    The offset, in bytes, 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 CAtlFile::Seek. To obtain the current file pointer position, call CAtlTemporaryFile::GetPosition.

Example

See the example for CAtlTemporaryFile::CAtlTemporaryFile.

Requirements

Header: atlfile.h

See Also

Reference

CAtlTemporaryFile Class

CAtlTemporaryFile::Read

Other Resources

CAtlTemporaryFile Members