From 8a661752eefd670c32e9122ac60a70ceeb701b4a Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 16 Oct 2005 12:49:25 +0000 Subject: Added win32 module --- win32.mod/noddybox.win32.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 win32.mod/noddybox.win32.c (limited to 'win32.mod/noddybox.win32.c') diff --git a/win32.mod/noddybox.win32.c b/win32.mod/noddybox.win32.c new file mode 100644 index 0000000..5968416 --- /dev/null +++ b/win32.mod/noddybox.win32.c @@ -0,0 +1,29 @@ +#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; + } +} -- cgit v1.2.3