How do I detect that a drive is internal or connected to a USB port?
For example I now the letter of a partition from that drive. If I use GetDriveType on one connected to USB it says that it is fixed not removable.
I found some code with witch you can get informations from registry when such a device is connected to the computer. But it doesn't help me if the device is already connected when the program starts.
It is doable because there are programs (like WinSetupFromUsb) which detects them correctly.
Thank you in advance for any help.