smn
August 11th, 1999, 09:02 AM
|
Click to See Complete Forum and Search --> : How to know whether the current drive is CD-ROM or not? smn August 11th, 1999, 09:02 AM Dmitriy August 11th, 1999, 09:11 AM 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 codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |