CFileStatus

This structure is used by the CFile::GetStatus method to retrieve status information about a file.

struct CFileStatus
{
   CTime m_ctime;          // creation date/time of file
   CTime m_mtime;          // last modification date/time of file
   CTime m_atime;          // last access date/time of file
   LONG m_size;            // logical size of file in bytes
   BYTE m_attribute;       // logical OR of CFile::Attribute enum values
   BYTE _m_padding;        // pad the structure to a WORD
   TCHAR m_szFullName[_MAX_PATH];  // absolute path name

#ifdef _DEBUG
   void Dump(CDumpContext& dc ) const;
#endif
}; 

Parameters

m_ctime
Specifies the date and time the file was created.
m_mtime
Specifies the date and time the file was last modified.
m_atime
Specifies the date and time the file was last accessed.
m_size
Specifies the logical size of the file in bytes, as reported by the DIR command.
m_attribute
Specifies the attribute byte of the file. This is the logical OR of the following enumerated values:
enum Attribute {
    normal,
   readOnly,
   hidden,
   system,
   volume,
   directory,
   archive
};
_m_padding
Pads the structure to a WORD
m_szFullName
Specifies the absolute path name.

Requirements

  Windows CE versions: 1.0 and later  
  Header file: Declared in Afx.h

See Also

CFile::GetStatus

表示: