CAtlFile Class
This class provides a thin wrapper around the Windows file-handling API.
重要
This class and its members cannot be used in applications that execute in the Windows Runtime.
class CAtlFile : public CHandle
Name |
Description |
---|---|
The constructor. |
Name |
Description |
---|---|
Call this method to create or open a file. |
|
Call this method to clear the buffers for the file and cause all buffered data to be written to the file. |
|
Call this method to get the results of an overlapped operation on the file. |
|
Call this method to get the current file pointer position from the file. |
|
Call this method to get the size in bytes of the file. |
|
Call this method to lock a region in the file to prevent other processes from accessing it. |
|
Call this method to read data from a file starting at the position indicated by the file pointer. |
|
Call this method to move the file pointer of the file. |
|
Call this method to set the size of the file. |
|
Call this method to unlock a region of the file. |
|
Call this method to write data to the file starting at the position indicated by the file pointer. |
Name |
Description |
---|---|
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.
CAtlFile
Header: atlfile.h