MCPcopy Create free account
hub / github.com/MicrosoftEdge/WebView2Browser / tryLaunchWindow

Function tryLaunchWindow

WebViewBrowserApp.cpp:48–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void tryLaunchWindow(HINSTANCE hInstance, int nCmdShow)
49{
50 BOOL launched = BrowserWindow::LaunchWindow(hInstance, nCmdShow);
51 if (!launched)
52 {
53 int msgboxID = MessageBox(NULL, L"Could not launch the browser", L"Error", MB_RETRYCANCEL);
54
55 switch (msgboxID)
56 {
57 case IDRETRY:
58 tryLaunchWindow(hInstance, nCmdShow);
59 break;
60 case IDCANCEL:
61 default:
62 PostQuitMessage(0);
63 }
64 }
65}

Callers 1

wWinMainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected