If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

The problem is that when I call CoCreateInstance(), I get a return value of -2147221008. When that happens pSecurityMgr is pointing to null and the SetZoneMapping() results in a null pointer exception.

I need to do pretty much same thing in a installer for an application. Installer and the application is designed to work on a per-machine basis, so I need an API that add the URL for all users? How can we do that?

Secondly, there is check for require https://. I think this is check is accessible/editable via registry:

Re: Programmatically adding sites to the "Trusted" Zone in IE

PLEASE IGNORE MY ABOVE COMMENT^^^^

I sussed out that this was because it was not a valid URL address.
I am now stuck on my next problem. How can I make it so that the 'L "http://*.mydomain.com"' is text of my input. so the user gets asked for their input i.e. http://www.example.com. This will be saved into a string? ? and then output this where 'http://*.mydomain.com'