File Access Time
C / C++ / MFC
3
Posts
3
Posters
0
Views
1
Watching
-
Use the
CreateFile
Windows API function to get a handle to the file you wish to retrieve the date/time. Then use this function:BOOL GetFileTime(
HANDLE hFile, // handle to the file
LPFILETIME lpCreationTime, // address of creation time
LPFILETIME lpLastAccessTime, // address of last access time
LPFILETIME lpLastWriteTime // address of last write time
);Hope that helps :-D -Dominik
_outp(0x64, 0xAD);
and__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? ;) -
CFileStatus status; CFile::GetStatus("C:\\config.sys", status); CTime tm = status.m_mtime;