Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CAtlFile Class

This class provides a thin wrapper around the Windows file-handling API.

Important note Important

This class and its members cannot be used in applications that execute in the Windows Runtime.

class CAtlFile : public CHandle

Name

Description

CAtlFile::CAtlFile

The constructor.

Name

Description

CAtlFile::Create

Call this method to create or open a file.

CAtlFile::Flush

Call this method to clear the buffers for the file and cause all buffered data to be written to the file.

CAtlFile::GetOverlappedResult

Call this method to get the results of an overlapped operation on the file.

CAtlFile::GetPosition

Call this method to get the current file pointer position from the file.

CAtlFile::GetSize

Call this method to get the size in bytes of the file.

CAtlFile::LockRange

Call this method to lock a region in the file to prevent other processes from accessing it.

CAtlFile::Read

Call this method to read data from a file starting at the position indicated by the file pointer.

CAtlFile::Seek

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

CAtlFile::SetSize

Call this method to set the size of the file.

CAtlFile::UnlockRange

Call this method to unlock a region of the file.

CAtlFile::Write

Call this method to write data to the file starting at the position indicated by the file pointer.

Name

Description

CAtlFile::m_pTM

Pointer to CAtlTransactionManager object

Use this class when file-handling needs are relatively simple, but more abstraction than the Windows API provides is required, without including MFC dependencies.

Header: atlfile.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.