diff options
author | Jesús Corrius <jesus@softcatala.org> | 2012-05-23 22:06:44 +0200 |
---|---|---|
committer | Jesús Corrius <jesus@softcatala.org> | 2012-05-24 08:38:12 +0200 |
commit | 776db316d271d14e653426e21e66b983ec52100a (patch) | |
tree | 711b39f03067749e2c9b63c81b2451d7c902a915 /desktop/win32/source/applauncher/launcher.cxx | |
parent | eadcfa4e276aad610c674dd3eabc0956cb669d9b (diff) |
set explicit Application User Models IDs in the native Windows launchers
Change-Id: Ib60a2a4f0d28a53d997731eb34b118cc9b9f822d
Diffstat (limited to 'desktop/win32/source/applauncher/launcher.cxx')
-rw-r--r-- | desktop/win32/source/applauncher/launcher.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/desktop/win32/source/applauncher/launcher.cxx b/desktop/win32/source/applauncher/launcher.cxx index 96b94bbbfd7d..8ba9cb6ee046 100644 --- a/desktop/win32/source/applauncher/launcher.cxx +++ b/desktop/win32/source/applauncher/launcher.cxx @@ -28,6 +28,7 @@ #include "launcher.hxx" +#include "appusermodelid.hxx" #ifndef _WINDOWS_ @@ -53,6 +54,10 @@ extern "C" int APIENTRY WinMain( HINSTANCE, HINSTANCE, LPSTR, int ) extern "C" int APIENTRY _tWinMain( HINSTANCE, HINSTANCE, LPTSTR, int ) #endif { + // Set an explicit Application User Model ID for the process + + SetExplicitAppUserModelID(APPUSERMODELID); + // Retreive startup info STARTUPINFO aStartupInfo; @@ -86,6 +91,7 @@ extern "C" int APIENTRY _tWinMain( HINSTANCE, HINSTANCE, LPTSTR, int ) _tsplitpath( szApplicationName, szDrive, szDir, szFileName, szExt ); _tmakepath( szApplicationName, szDrive, szDir, OFFICE_IMAGE_NAME, _T(".exe") ); + PROCESS_INFORMATION aProcessInfo; BOOL fSuccess = CreateProcess( |