How to detect the presence of floppy in the drive

Discussion in 'Win32' started by unmeshjoshi, Apr 1, 2010.

  1. unmeshjoshi

    unmeshjoshi New Member

    Joined:
    Mar 17, 2010
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    Hello,
    how can we check whether there is floppy present in the floppy drive?
    Using Win32 APIs?
    I tried using DeviceIoControl() function, but could not guess which IOCTL_XXX constant would help me?

    Or is there another way? plz help.
     
  2. NewsBot

    NewsBot New Member

    Joined:
    Dec 2, 2008
    Messages:
    1,267
    Likes Received:
    2
    Trophy Points:
    0
    I am not sure that will help you to detect the media but I think you should give a read file and if there is an error catch it to judge its not present.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice