is there a way to find out if a drive can be ejected and removed (since it is a drive connected via USB) programatically?
If yes: how can this be done?
is there a way to find out if a drive can be ejected and removed (since it is a drive connected via USB) programatically?
If yes: how can this be done?
Based on this MSDN documentation: http://msdn.microsoft.com/en-us/library/windows/desktop/aa364939%28v=vs.85%29.aspx
GetDriveType
[..] determines whether a disk drive is a removable, fixed, CD-ROM, RAM disk, or network drive.