如何区别存储器
编程中如何区别存储器是光驱,硬盘,活动硬盘,磁光盘?
接口可能是IDE SCSI
问题点数:50、回复次数:2Top
1 楼kxy(手举穿肠毒药,怀抱刮骨钢刀)回复于 2000-01-17 02:35:00 得分 30
UINT GetDriveType(
LPCTSTR lpRootPathName // address of root path
);
Parameters
lpRootPathName
Points to a null-terminated string that specifies the root directory of the disk to return information about. If lpRootPathName is NULL, the function uses the root of the current directory.
Return Values
The return value specifies the type of drive. It can be one of the following values:
Value Meaning
0 The drive type cannot be determined.
1 The root directory does not exist.
DRIVE_REMOVABLE The drive can be removed from the drive.
DRIVE_FIXED The disk cannot be removed from the drive.
DRIVE_REMOTE The drive is a remote (network) drive.
DRIVE_CDROM The drive is a CD-ROM drive.
DRIVE_RAMDISK The drive is a RAM disk.
IDE SCSI的不知道可不可以.Top
2 楼herolee()回复于 2000-01-18 01:15:00 得分 20
UINT GetDriveType(
LPCTSTR lpRootPathName // pointer to root path
);
Return Values
The return value specifies the type of drive. It can be one of the following values:
Value Meaning
0 DRIVE_UNKNOWN The drive type cannot be determined.
1 DRIVE_NO_ROOT_DIR The root directory does not exist.
2 DRIVE_REMOVABLE The disk can be removed from the drive.
3 DRIVE_FIXED The disk cannot be removed from the drive.
4 DRIVE_REMOTE The drive is a remote (network) drive.
5 DRIVE_CDROM The drive is a CD-ROM drive.
6 DRIVE_RAMDISK The drive is a RAM disk.
Top




