winaccessibility: remove IsXPOrLater
XP is the baseline already so no need to check for it. Change-Id: I5737213d647d1aea9b9fa918d87b712d3a920156
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user