patch by Jack Zhou and Henry Tung to fix alt tab not working on windows 8 (Issue# 3338).

This commit is contained in:
jerry 2013-10-30 13:49:40 +00:00
parent fd6844d521
commit a610012fb4
1 changed files with 6 additions and 0 deletions

View File

@ -266,6 +266,12 @@ CMSWindowsWatchdog::startProcess()
HANDLE userToken = getUserToken(&sa);
// patch by Jack Zhou and Henry Tung
// set UIAccess to fix Windows 8 GUI interaction
// http://synergy-foss.org/spit/issues/details/3338/#c70
DWORD uiAccess = 1;
SetTokenInformation(userToken, TokenUIAccess, &uiAccess, sizeof(DWORD));
// clear, as we're reusing process info struct
ZeroMemory(&m_processInfo, sizeof(PROCESS_INFORMATION));