| 566 | } |
| 567 | |
| 568 | STDMETHODIMP CLegacyUpdateCtrl::OpenWindowsUpdateSettings(void) { |
| 569 | DoIsPermittedCheck(); |
| 570 | |
| 571 | HRESULT hr = StartLauncher(L"/options", FALSE); |
| 572 | if (!SUCCEEDED(hr)) { |
| 573 | CHECK_HR(L"OpenWindowsUpdateSettings() failed, falling back"); |
| 574 | |
| 575 | // Might happen if the site isn't trusted, and the user rejected the IE medium integrity prompt. |
| 576 | // Use the basic Automatic Updates dialog directly from COM. |
| 577 | CComPtr<IAutomaticUpdates> automaticUpdates; |
| 578 | hr = automaticUpdates.CoCreateInstance(CLSID_AutomaticUpdates, NULL, CLSCTX_INPROC_SERVER); |
| 579 | CHECK_HR_OR_RETURN(L"CoCreateInstance CLSID_AutomaticUpdates"); |
| 580 | |
| 581 | hr = automaticUpdates->ShowSettingsDialog(); |
| 582 | CHECK_HR_OR_RETURN(L"ShowSettingsDialog"); |
| 583 | } |
| 584 | |
| 585 | return hr; |
| 586 | } |
| 587 | |
| 588 | STDMETHODIMP CLegacyUpdateCtrl::get_IsUsingWsusServer(VARIANT_BOOL *retval) { |
| 589 | DoIsPermittedCheck(); |
nothing calls this directly
no test coverage detected