MCPcopy Create free account
hub / github.com/LegacyUpdate/LegacyUpdate / ViewLog

Method ViewLog

LegacyUpdate/LegacyUpdateCtrl.cpp:547–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545};
546
547STDMETHODIMP CLegacyUpdateCtrl::ViewLog(ViewLogType logType) {
548 DoIsPermittedCheck();
549
550 if (logType < 0 || logType >= ARRAYSIZE(logTypeParams)) {
551 return E_INVALIDARG;
552 }
553
554 HRESULT hr = StartLauncher(logTypeParams[logType], FALSE);
555 if (!SUCCEEDED(hr)) {
556 // Try directly
557 hr = ::ViewLog((LogAction)logType, SW_SHOWDEFAULT, TRUE);
558 }
559
560 CHECK_HR_OR_RETURN(L"ViewLog");
561 return hr;
562}
563
564STDMETHODIMP CLegacyUpdateCtrl::ViewWindowsUpdateLog(void) {
565 return ViewLog(e_windowsUpdate);

Callers

nothing calls this directly

Calls 2

StartLauncherFunction · 0.85
ViewLogFunction · 0.85

Tested by

no test coverage detected