#include <objbase.h>
#include "wrl/implements.h"
#include "webview2.h"
Go to the source code of this file.
◆ CORE_WEBVIEW_TARGET_PRODUCT_VERSION
#define CORE_WEBVIEW_TARGET_PRODUCT_VERSION L"118.0.2088.41" |
◆ COREWEBVIEW2ENVIRONMENTOPTIONS_BOOL_PROPERTY
#define COREWEBVIEW2ENVIRONMENTOPTIONS_BOOL_PROPERTY |
( |
|
p, |
|
|
|
defPVal |
|
) |
| |
Value:\
public: \
HRESULT STDMETHODCALLTYPE get_##p(BOOL* value) override \
{ \
if (!value) \
return E_POINTER; \
*value = m_##p; \
return S_OK; \
} \
HRESULT STDMETHODCALLTYPE put_##p(BOOL value) override \
{ \
m_##p = value; \
return S_OK; \
} \
\
protected: \
BOOL m_##p = defPVal ? TRUE : FALSE;
◆ COREWEBVIEW2ENVIRONMENTOPTIONS_STRING_PROPERTY
#define COREWEBVIEW2ENVIRONMENTOPTIONS_STRING_PROPERTY |
( |
|
p | ) |
|
Value:\
public: \
HRESULT STDMETHODCALLTYPE get_##p(LPWSTR* value) override \
{ \
if (!value) \
return E_POINTER; \
*value = m_##p.Copy(); \
if ((*value == nullptr) && (m_##p.Get() != nullptr)) \
return HRESULT_FROM_WIN32(GetLastError()); \
return S_OK; \
} \
HRESULT STDMETHODCALLTYPE put_##p(LPCWSTR value) override \
{ \
LPCWSTR result = m_##p.Set(value); \
if ((result == nullptr) && (value != nullptr)) \
return HRESULT_FROM_WIN32(GetLastError()); \
return S_OK; \
} \
\
protected: \
AutoCoMemString m_##p;
◆ DEFINE_AUTO_COMEM_STRING
#define DEFINE_AUTO_COMEM_STRING |
( |
| ) |
|
◆ CoreWebView2CustomSchemeRegistration
◆ CoreWebView2EnvironmentOptions