From 9c835700e5553d5b6c5123a244c177faf08afbcf Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Fri, 16 Apr 2010 00:03:57 +0100 Subject: [INTERNAL - NOT FOR RELEASE] added 2003/XP64 support (EXPERIMENTAL) --- libusb/os/poll_windows.h | 1 + libusb/os/windows_usb.c | 2 ++ 2 files changed, 3 insertions(+) (limited to 'libusb') diff --git a/libusb/os/poll_windows.h b/libusb/os/poll_windows.h index d6d887b..99f386f 100644 --- a/libusb/os/poll_windows.h +++ b/libusb/os/poll_windows.h @@ -41,6 +41,7 @@ enum windows_version { WINDOWS_UNSUPPORTED, WINDOWS_XP, + WINDOWS_2003, // also includes XP 64 WINDOWS_VISTA_AND_LATER, }; extern enum windows_version windows_version; diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c index 251d162..b6fa222 100644 --- a/libusb/os/windows_usb.c +++ b/libusb/os/windows_usb.c @@ -433,6 +433,8 @@ static int windows_init(struct libusb_context *ctx) if ((GetVersionEx(&os_version) != 0) && (os_version.dwPlatformId == VER_PLATFORM_WIN32_NT)) { if ((os_version.dwMajorVersion == 5) && (os_version.dwMinorVersion == 1)) { windows_version = WINDOWS_XP; + } else if ((os_version.dwMajorVersion == 5) && (os_version.dwMinorVersion == 2)) { + windows_version = WINDOWS_2003; // also includes XP 64 } else if (os_version.dwMajorVersion >= 6) { windows_version = WINDOWS_VISTA_AND_LATER; } -- cgit v1.2.1