-#define _WIN32_WINNT 0x0601
+#define _WIN32_WINNT 0x0601 // Windows 7
#include "window.h"
#include "window_private.h"
#include <windowsx.h>
+#include <versionhelpers.h>
#include <msp/core/application.h>
#include <msp/core/systemerror.h>
void Window::platform_set_touch_input()
{
- WORD winver = LOWORD(GetVersion);
- if(winver<_WIN32_WINNT)
+ if(!IsWindows7OrGreater())
{
touch_input = false;
throw runtime_error("no touch support");