CompareBrowserVersions

This method is for anyone want to compare version correctly to determine which version is newer, older or same. Use it to determine whether to use webview2 or certain feature based upon version. Sets the value of result to -1, 0 or 1 if version1 is less than, equal or greater than version2 respectively. Returns E_INVALIDARG if it fails to parse any of the version strings or any input parameter is null. Directly use the versionInfo obtained from GetAvailableCoreWebView2BrowserVersionString with input, channel information is ignored.

version(Windows && inline_webview2_bindings && all)
extern (Windows)
HRESULT
CompareBrowserVersions
(
PCWSTR version1
,
PCWSTR version2
,
int* result
)

Meta