一。指定磁盘大小的获取可以用函数GetDiskFreeSpaceEx()实现,原型为BOOLGetDiskFreeSpaceEx( LPCTSTR lpDirectoryName, // pointer to the directory name PULARGE_INTEGERlpFreeBytesAvailableToCaller, //receives the number of bytes on // disk available to the caller PULARGE_INTEGERlpTotalNumberOfBytes, //receives the number of bytes on disk PULARGE_INTEGERlpTotalNumberOfFreeBytes //receives the free bytes on disk );