Related to disabling SmartScreen, this is how I did it in C++ with help from Claude, in case this helps anyone. I could not reply to the other topic as it was closed.
Set the OnMapInitialized handler:

Populate the handler with equivalent C++ code as the Pascal example from @Pieter :
void __fastcall TfrmGPSandMAPs64::TMSFNCMaps1MapInitialized(TObject *Sender)
{
using namespace Vcl::Tmsfncwebbrowser::Win;
_di_ICoreWebView2Controller controller(static_cast<ICoreWebView2Controller*>(TMSFNCMaps1->NativeBrowser()));
if (!controller)
return;
_di_ICoreWebView2 webView;
if (controller->get_CoreWebView2(webView) != S_OK || !webView)
return;
_di_ICoreWebView2Settings settings;
if (webView->get_Settings(settings) == S_OK && settings)
{
ICoreWebView2Settings8* rawSettings8 = nullptr;
if (settings->QueryInterface(IID_ICoreWebView2Settings8, reinterpret_cast<void**>(&rawSettings8)) == S_OK && rawSettings8)
{
rawSettings8->set_IsReputationCheckingRequired(FALSE);
rawSettings8->Release();
}
}
}