遍历磁盘容量: #include #include void GetDrivesType(const char* lpRootPathName) { UINT uDriverType = GetDriveType(lpRootPathName); switch (uDriverType) { case DRIVE_UNKNOWN:puts("未知磁盘"); break; case DRIVE_NO_ROOT_DIR: puts("路径无效"); break; case DRIVE_REMOVABLE: puts("可移动磁盘");