MFC64bitFix.h 1.0 KB

1234567891011121314151617181920212223
  1. //---------------------------------------------------------------------------
  2. #ifndef MFC64bitFixH
  3. #define MFC64bitFixH
  4. //---------------------------------------------------------------------------
  5. __int64 GetLength64(CFile & file);
  6. BOOL GetLength64(CString filename, _int64 & size);
  7. //---------------------------------------------------------------------------
  8. struct CFileStatus64
  9. {
  10. bool m_has_ctime;
  11. bool m_has_mtime;
  12. bool m_has_atime;
  13. CTime m_ctime; // creation date/time of file
  14. CTime m_mtime; // last modification date/time of file
  15. CTime m_atime; // last access date/time of file
  16. _int64 m_size; // logical size of file in bytes
  17. BYTE m_attribute; // logical OR of CFile::Attribute enum values
  18. BYTE _m_padding; // pad the structure to a WORD
  19. };
  20. //---------------------------------------------------------------------------
  21. BOOL PASCAL GetStatus64(LPCTSTR lpszFileName, CFileStatus64 & rStatus);
  22. //---------------------------------------------------------------------------
  23. #endif // MFC64bitFixH