Group: File System - Library: kernel32
Retrieving list of available disk drives
Disconnecting USB Mass Storage Device programmatically
DWORD GetLogicalDrives(VOID);
DECLARE INTEGER GetLogicalDrives IN kernel32
This function has no parameters
If the function succeeds, the return value is a bitmask representing the currently available disk drives. Bit position 0 (the least-significant bit) is drive A, bit position 1 is drive B, bit position 2 is drive C, and so on