diff -r 000000000000 -r 6474c204b198 browser/metro/shell/commandexecutehandler/CEHHelper.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/browser/metro/shell/commandexecutehandler/CEHHelper.h Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,31 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#undef WINVER +#undef _WIN32_WINNT +#define WINVER 0x602 +#define _WIN32_WINNT 0x602 + +#include +#include +#include + +//#define SHOW_CONSOLE 1 +extern HANDLE sCon; + +void Log(const wchar_t *fmt, ...); + +#if defined(SHOW_CONSOLE) +void SetupConsole(); +#endif + +AHE_TYPE GetLastAHE(); +bool SetLastAHE(AHE_TYPE ahe); +bool IsDX10Available(); +bool GetDWORDRegKey(LPCWSTR name, DWORD &value); +bool SetDWORDRegKey(LPCWSTR name, DWORD value); +bool IsImmersiveProcessDynamic(HANDLE process); +bool IsMetroProcessRunning(); +bool IsDesktopProcessRunning();