unsigned _int64 DiskFreeSpace(char* pszRoot) { ULARGE_INTEGER liFreeBytes, liTotalBytes, liTotalFreeBytes; if(!GetDiskFreeSpaceEx(pszRoot, &liFreeBytes, &liTotalBytes, &liTotalFreeBytes)) return 0; return (unsigned _int64) liTotalFreeBytes.QuadPart; }
voir aussi GetVolumeInformation().
ciao... BruNews, Admin CS, MVP VC++
|