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

Function LaunchUpdateSite

LegacyUpdate/LaunchUpdateSite.cpp:7–25  ·  view source on GitHub ↗

Function signature required by Rundll32.exe.

Source from the content-addressed store, hash-verified

5
6// Function signature required by Rundll32.exe.
7EXTERN_C __declspec(dllexport)
8void CALLBACK LaunchUpdateSite(HWND hwnd, HINSTANCE hInstance, LPSTR lpszCmdLine, int nCmdShow) {
9 HRESULT hr = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
10 if (!SUCCEEDED(hr)) {
11 goto end;
12 }
13
14 // This just calls LegacyUpdate.exe now for backwards compatibility.
15 hr = StartLauncher(L"/launch", TRUE);
16
17end:
18 if (!SUCCEEDED(hr)) {
19 LPWSTR message = GetMessageForHresult(hr);
20 MessageBox(NULL, message, L"Legacy Update", MB_OK | MB_ICONERROR);
21 LocalFree(message);
22 }
23
24 CoUninitialize();
25}

Callers

nothing calls this directly

Calls 2

StartLauncherFunction · 0.85
GetMessageForHresultFunction · 0.85

Tested by

no test coverage detected