|
Prev: What's PATH?
Next: _WIN32_WINNT define WTS function
From: Nuno on 6 May 2008 12:48 Hello, I'm trying to obtain the last write time on a usb drive (example e:\) with a FAT file system, i'm using the GetFileTime(...) function, example: FILETIME ftCreate, ftAccess, ftWrite; //reset the default return value: ftWrite.dwHighDateTime=0; ftWrite.dwLowDateTime=0; HANDLE hFile = CreateFile(_T("e:\\"), GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, NULL); // Retrieve the file times for the file. BOOL bRet = GetFileTime(hFile, &ftCreate, &ftAccess, &ftWrite); CloseHandle(hFile); The more strange is that neither the CreateFile or the GetFileTime fails, but the ftWrite.dwHighDateTime and the ftWrite.dwLowDateTime are equal to 0 (zero). Why is this? can i obtain the last write time of a FAT usb drive? If yes how i can do this? Thanks
|
Pages: 1 Prev: What's PATH? Next: _WIN32_WINNT define WTS function |