Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CAtlTemporaryFile::Seek

 

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


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

nOffset

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

Example

Requirements

Header: atlfile.h

Show: