Iâ??ve found some contradictory information regarding how a physical drive
should be opened and volume(s) locked. In this case Iâ??m trying to get
exclusive control of a floppy, which apparently behaves different than other
drives.
CreateFile docs claim that for opening a physical disk or volume
administrator privileges are required. This seems to be wrong, at least it is
definitely wrong for floppies under XP and Win 2K.
Docs also note that it should be opened with FILE_SHARE_WRITE and in other
docs both FILE_SHARE_READ and FILE_SHARE_WRITE are mentioned. I tried opening
without any sharing and it works fine. Is opening with sharing required, why?
Lastly, how exactly the system considers a handle to a floppy device? It is
a physical drive handle, a volume handle, both?
Thanks,