Relative Content

Tag Archive for c++winapimicrosoft-edgewebview2

How to close webView2 window without crashing?

I am new to win32 C++ app . Even you can say I have never done any coding in win32 .Now I am trying to create win32 app , which will use webview2 to launch browser , do some authentication , and fetch token . Here , once I fetched my token in add_WebResourceResponseReceived , I am closing the browser window from my code . but it crashes in DispatchMessage.Here is my code ,