#include int W32GetLogicalDrives_C(void) { return GetLogicalDrives(); } int W32GetDriveType_C(const char *root) { switch(GetDriveType(root)) { case DRIVE_UNKNOWN: return 0; case DRIVE_NO_ROOT_DIR: return 1; case DRIVE_REMOVABLE: return 2; case DRIVE_FIXED: return 3; case DRIVE_REMOTE: return 4; case DRIVE_CDROM: return 5; case DRIVE_RAMDISK: return 6; default: return 0; } }