michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #undef WINVER michael@0: #undef _WIN32_WINNT michael@0: #define WINVER 0x602 michael@0: #define _WIN32_WINNT 0x602 michael@0: michael@0: #include michael@0: #include michael@0: #include michael@0: michael@0: //#define SHOW_CONSOLE 1 michael@0: extern HANDLE sCon; michael@0: michael@0: void Log(const wchar_t *fmt, ...); michael@0: michael@0: #if defined(SHOW_CONSOLE) michael@0: void SetupConsole(); michael@0: #endif michael@0: michael@0: AHE_TYPE GetLastAHE(); michael@0: bool SetLastAHE(AHE_TYPE ahe); michael@0: bool IsDX10Available(); michael@0: bool GetDWORDRegKey(LPCWSTR name, DWORD &value); michael@0: bool SetDWORDRegKey(LPCWSTR name, DWORD value); michael@0: bool IsImmersiveProcessDynamic(HANDLE process); michael@0: bool IsMetroProcessRunning(); michael@0: bool IsDesktopProcessRunning();