ULARGE_INTEGER freeBytesAvailable; ULARGE_INTEGER totalNumberOfBytes; //磁盘总字节 ULARGE_INTEGER totalNumberOfFreeBytes; //空闲字节 GetDiskFreeSpaceEx(L"path", &freeBytesAvailable, &totalNumberOfBytes, &totalNumberOfFreeBytes);//path可以是路径,不必须是盘符 ULONGLONG DiskFreeSpace=totalNumberOfFreeBytes.QuadPart;
标签:Windows,freeBytesAvailable,c++,totalNumberOfFreeBytes,INTEGER,ULARGE,磁盘,path From: https://www.cnblogs.com/banlcer/p/16628891.html