Function signature required by Rundll32.exe.
| 5 | |
| 6 | // Function signature required by Rundll32.exe. |
| 7 | EXTERN_C __declspec(dllexport) |
| 8 | void 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 | |
| 17 | end: |
| 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 | } |
nothing calls this directly
no test coverage detected