|
@@ -33,6 +33,9 @@
|
|
|
#ifndef _WIN32_WINNT_WIN7
|
|
|
#define _WIN32_WINNT_WIN7 0x0601
|
|
|
#endif
|
|
|
+#ifndef _WIN32_WINNT_WIN8
|
|
|
+#define _WIN32_WINNT_WIN8 0x0602
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
/* Sets an error message based on an HRESULT */
|
|
@@ -135,6 +138,15 @@ BOOL WIN_IsWindows7OrGreater(void)
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
+BOOL WIN_IsWindows8OrGreater(void)
|
|
|
+{
|
|
|
+#ifdef __WINRT__
|
|
|
+ return TRUE;
|
|
|
+#else
|
|
|
+ return IsWindowsVersionOrGreater(HIBYTE(_WIN32_WINNT_WIN8), LOBYTE(_WIN32_WINNT_WIN8), 0);
|
|
|
+#endif
|
|
|
+}
|
|
|
+
|
|
|
/*
|
|
|
WAVExxxCAPS gives you 31 bytes for the device name, and just truncates if it's
|
|
|
longer. However, since WinXP, you can use the WAVExxxCAPS2 structure, which
|