Added checks for Windows SDK version.

This commit is contained in:
LoRd_MuldeR 2012-11-17 19:22:56 +01:00
parent 9dc61d0454
commit c180306e85
2 changed files with 16 additions and 1 deletions

View File

@ -831,7 +831,7 @@ static unsigned int __stdcall lamexp_debug_thread_proc(LPVOID lpParameter)
{ {
while(!lamexp_check_for_debugger()) while(!lamexp_check_for_debugger())
{ {
Sleep(32); Sleep(250);
} }
if(HANDLE thrd = OpenThread(THREAD_TERMINATE, FALSE, g_main_thread_id)) if(HANDLE thrd = OpenThread(THREAD_TERMINATE, FALSE, g_main_thread_id))
{ {

View File

@ -21,6 +21,21 @@
#pragma once #pragma once
// Check Windows SDK version
// We currently do NOT support the Windows SDK 8.0, because it broke Windows XP support!
// Also the minimum required Windows SDK version to build LameXP currently is 6.0A
#include <ntverp.h>
#if !defined(VER_PRODUCTMAJORVERSION) || !defined(VER_PRODUCTMINORVERSION)
#error Windows SDK version is NOT defined !!!
#endif
#if (VER_PRODUCTMAJORVERSION < 6)
#error Your Windows SDK is too old (unsupported), please build LameXP with Windows SDK version 7.1! (6.0A or 7.0A should work too)
#endif
#if (VER_PRODUCTMAJORVERSION > 6) || ((VER_PRODUCTMAJORVERSION == 6) && (VER_PRODUCTMINORVERSION > 1))
#error Your Windows SDK is too new (unsupported), please build LameXP with Windows SDK version 7.1! (6.0A or 7.0A should work too)
#endif
// The following macros define the minimum required platform. The minimum required platform // The following macros define the minimum required platform. The minimum required platform
// is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run // is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run
// your application. The macros work by enabling all features available on platform versions up to and // your application. The macros work by enabling all features available on platform versions up to and