winaccessibility: remove IsXPOrLater

XP is the baseline already so no need to check for it.

Change-Id: I5737213d647d1aea9b9fa918d87b712d3a920156
This commit is contained in:
Michael Stahl
2013-11-20 01:33:42 +01:00
parent a47b9828f9
commit 18f37ebc69
-19
View File
@@ -24,27 +24,11 @@
#include <tchar.h>
static bool IsXPOrLater()
{
OSVERSIONINFO osvi;
ZeroMemory(&osvi, sizeof(OSVERSIONINFO));
osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
GetVersionEx(&osvi);
return ((osvi.dwMajorVersion > 5) ||
((osvi.dwMajorVersion == 5) && (osvi.dwMinorVersion >= 1)));
}
static HANDLE pActCtx = INVALID_HANDLE_VALUE;
static ULONG_PTR lpCookie;
static bool ActivateActContext()
{
if(!IsXPOrLater())
return false;
ACTCTX actctx;
ZeroMemory(&actctx, sizeof(actctx));
@@ -76,9 +60,6 @@ static bool ActivateActContext()
static void DeactivateActContext()
{
if(!IsXPOrLater())
return;
if(lpCookie)
DeactivateActCtx(0, lpCookie);