|
-
August 11th, 1999, 09:02 AM
#1
How to know whether the current drive is CD-ROM or not?
-
August 11th, 1999, 09:11 AM
#2
Re: How to know whether the current drive is CD-ROM or not?
char szDrives[0x200];
char* lpszDrive=(char*) &szDrives;
GetLogicalDriveStrings(0x1FF,(char*) &szDrives);//retrieve string with drivenames
//check type of the drive
while(*(lpszDrive))
{
if (DRIVE_CDROM==(GetDriveType(lpszDrive)))
{
//your code
}
// next drive
lpszDrive+=4;
}
Dmitriy, MCSE
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|