Directly use the versionInfo obtained from GetAvailableCoreWebView2BrowserVersionString with input, channel information is ignored. Returns E_INVALIDARG if it fails to parse any of the version strings or any input parameter is null. Sets the value of result to -1, 0 or 1 if version1 is less than, equal or greater than version2 respectively. Use it to determine whether to use webview2 or certain feature based upon version. Public STDAPI CompareBrowserVersions(PCWSTR version1, PCWSTR version2, int * result) Get the browser version info including channel name if it is not the WebView2 Runtime. GetAvailableCoreWebView2BrowserVersionString This method is for anyone want to compare version correctly to determine which version is newer, older or same.Ĭreates an evergreen WebView2 Environment using the installed WebView2 Runtime version.ĭLL export to create a WebView2 environment with a custom version of WebView2 Runtime, user data folder, and with or without additional options. For the latest API reference, see WebView2 API Reference. This reference is no longer being maintained.
0 Comments
Leave a Reply. |