CreateCoreWebView2Environmentfunction
Creates an evergreen WebView2 Environment using the installed Edge version.
Syntax
FUNCTION CreateCoreWebView2Environment (BYVAL environment_created_handler AS Afx_ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler PTR) AS HRESULT
Parameters
| Name | Description | |
|---|---|---|
environment_created_handler | [in] Pointer to an implemented Afx_ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler callback interface. |
Description
Creates an evergreen WebView2 Environment using the installed Edge version. This is equivalent to calling CreateCoreWebView2EnvironmentWithOptions with nullptr for browserExecutableFolder, userDataFolder, additionalBrowserArguments.
Reference
- Defined in AfxNova/AfxWebView2.bi:1086
- Documented in WebView/CWebWiew2 Class.md
- Topic: CWebView2 Class