Hi I have legacy ActiveX (ATL), that works properly if loaded from the Trusted Sites security zone. I want to add verification in code, the be sure that customer added the host of activeX to the trusted sites and if not just give a warning.
What API should I use ? (browser is IE7 and UP).
Thank you
You can map an url to a zone in native code using IInternetSecurityManager::MapUrlToZone.
The sample code from MSDN: