This article was previously published under Q115828
On This Page
SUMMARY
To get the media type(s) supported by a floppy drive, it is necessary to
call CreateFile() to get a handle to the drive and then DeviceIoControl()
to get the information. However, if there is no floppy disk in the floppy
drive, the following message box may appear when CreateFile() is called for
drive A (\\.\a:):
There is no disk in the drive. Please insert a disk into drive A:
When calling CreateFile(), be sure to use 0 for the access mode and
FILE_SHARE_READ for the share mode so that the user will not be prompted to
insert a floppy disk:
The following sample code is based on the code in the FLOPPY SDK sample,
but it simply displays the media type(s) supported by floppy drive A. The
code demonstrates one way to retrieve the supported media without requiring
you to insert a floppy disk in the drive.
Need More Help? Contact a Support professional by Email, Online or Phone.
Customer Service For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
Newsgroups Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.