儲存庫 vbox 的更動 35279
- 時間撮記:
- 2010-12-21 下午04:44:39 (14 年 以前)
- svn:sync-xref-src-repo-rev:
- 69128
- 位置:
- trunk/src/VBox
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsExtension.cpp
r35273 r35279 178 178 */ 179 179 QString displayInfo; 180 #ifdef RT_OS_WINDOWS 181 if (pParent) 182 displayInfo.sprintf("hwnd=%#llx", (uint64_t)(uintptr_t)pParent->winId()); 183 #endif 180 184 CProgress progress = extPackFile.Install(fReplaceIt, displayInfo); 181 185 if (extPackFile.isOk()) … … 395 399 /** @todo Refuse this if any VMs are running. */ 396 400 QString displayInfo; 401 #ifdef RT_OS_WINDOWS 402 displayInfo.sprintf("hwnd=%#llx", (uint64_t)(uintptr_t)this->winId()); 403 #endif 397 404 CProgress progress = manager.Uninstall(strSelectedPackageName, false /* forced removal? */, displayInfo); 398 405 if (manager.isOk()) -
trunk/src/VBox/Main/VBoxExtPackHelperApp.cpp
r35273 r35279 92 92 /** @} */ 93 93 94 95 /******************************************************************************* 96 * Global Variables * 97 *******************************************************************************/ 98 #ifdef RT_OS_WINDOWS 99 static HINSTANCE g_hInstance; 100 #endif 94 101 95 102 #ifdef IN_RT_R3 … … 1159 1166 * @param iCmd The command that is being executed. (For 1160 1167 * selecting messages.) 1168 * @param pszDisplayInfoHack Display information hack. Platform specific++. 1161 1169 */ 1162 1170 static RTEXITCODE RelaunchElevatedNative(const char *pszExecPath, const char **papszArgs, int cSuArgs, int cMyArgs, 1163 int iCmd )1171 int iCmd, const char *pszDisplayInfoHack) 1164 1172 { 1165 1173 RTEXITCODE rcExit = RTEXITCODE_FAILURE; … … 1167 1175 NOREF(iCmd); 1168 1176 1177 MSG Msg; 1178 PeekMessage(&Msg, NULL, 0, 0, PM_NOREMOVE); 1169 1179 CoInitializeEx(NULL, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE); 1170 1180 … … 1192 1202 Info.hkeyClass = NULL; 1193 1203 Info.dwHotKey = 0; 1194 Info.h Icon = INVALID_HANDLE_VALUE;1204 Info.hMonitor = NULL; 1195 1205 Info.hProcess = INVALID_HANDLE_VALUE; 1206 1207 #if 0 /* This deadlocks with the GUI because the GUI thread is stuck in the API call :/ */ 1208 /* Apply display hacks. */ 1209 if (pszDisplayInfoHack) 1210 { 1211 const char *pszArg = strstr(pszDisplayInfoHack, "hwnd="); 1212 if (pszArg) 1213 { 1214 uint64_t u64Hwnd; 1215 rc = RTStrToUInt64Ex(pszArg + sizeof("hwnd=") - 1, NULL, 0, &u64Hwnd); 1216 if (RT_SUCCESS(rc)) 1217 { 1218 HWND hwnd = (HWND)(uintptr_t)u64Hwnd; 1219 Info.hwnd = hwnd; 1220 Info.hMonitor = MonitorFromWindow(hwnd, MONITOR_DEFAULTTOPRIMARY); 1221 } 1222 } 1223 } 1224 if (Info.hMonitor == NULL) 1225 { 1226 POINT Pt = {0,0}; 1227 Info.hMonitor = MonitorFromPoint(Pt, MONITOR_DEFAULTTOPRIMARY); 1228 } 1229 if (Info.hMonitor != NULL) 1230 Info.fMask |= SEE_MASK_HMONITOR; 1231 #endif 1196 1232 1197 1233 if (ShellExecuteExW(&Info)) … … 1530 1566 * Do the platform specific process execution (waiting included). 1531 1567 */ 1532 rcExit = RelaunchElevatedNative(szExecPath, papszArgs, cSuArgs, cArgs, iCmd );1568 rcExit = RelaunchElevatedNative(szExecPath, papszArgs, cSuArgs, cArgs, iCmd, pszDisplayInfoHack); 1533 1569 1534 1570 /* … … 1819 1855 extern "C" int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) 1820 1856 { 1821 NOREF(hPrevInstance); NOREF(nShowCmd); NOREF(lpCmdLine); NOREF(hInstance); 1857 g_hInstance = hInstance; 1858 NOREF(hPrevInstance); NOREF(nShowCmd); NOREF(lpCmdLine); 1822 1859 return main(__argc, __argv); 1823 1860 }
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器