467,144 Members | 1,173 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,144 developers. It's quick & easy.

Getting Internet Explorer Security Settings

jd
Hi, I have an application that uses embedded IE windows, which doesn't
work if the user has set their IE security settings to high. Is there
any way to programmatically obtain the security settings for Internet
Explorer for the current user?

I had a brief look through the registry but by comparing the
exported .reg files before and after making changes to the IE
settings, I was not able to locate them specifically.

Any help at all would be greatly appreciated.

TIA

JD
Dec 10 '07 #1
  • viewed: 3091
Share:
5 Replies
You can display an error message and let the user decide to trust your
program or not. Visual Studio 2005 once asked me wether to trust Visual
Studio 2005 or not when i was using a Visual C++ wizard (see
http://jiangsheng.spaces.live.com/blog/cns!1BE894DEAF296E0A!539.entry). I
had to trust Visual Studio 2005 to continue working.

--
Sheng Jiang
Microsoft MVP in VC++
"jd" <jd*********@hotmail.comwrote in message
news:c2**********************************@t1g2000p ra.googlegroups.com...
Hi, I have an application that uses embedded IE windows, which doesn't
work if the user has set their IE security settings to high. Is there
any way to programmatically obtain the security settings for Internet
Explorer for the current user?

I had a brief look through the registry but by comparing the
exported .reg files before and after making changes to the IE
settings, I was not able to locate them specifically.

Any help at all would be greatly appreciated.

TIA

JD

Dec 10 '07 #2
jd
On Dec 10, 7:45 pm, "Sheng Jiang[MVP]"
<sheng_ji...@hotmail.com.discusswrote:
You can display an error message and let the user decide to trust your
program or not. Visual Studio 2005 once asked me wether to trust Visual
Studio 2005 or not when i was using a Visual C++ wizard (seehttp://jiangsheng.spaces.live.com/blog/cns!1BE894DEAF296E0A!539.entry). I
had to trust Visual Studio 2005 to continue working.
I understand that, but IE doesn't produce a nice security warning for
this issue, it simply seems to prevent the application from working.
(Something to do with the localhost connection from the browser
instance to the locally running application.)

Because IE doesn't produce a nice warning message I'd like to detect
whether they have their security restrictions set to 'high', and if
so, warn them on startup.
Dec 10 '07 #3
Since the user can custom the security levels, your need to find out the
status of individual permissions.

--
Sheng Jiang
Microsoft MVP in VC++
"jd" <jd*********@hotmail.comwrote in message
news:46**********************************@d27g2000 prf.googlegroups.com...
On Dec 10, 7:45 pm, "Sheng Jiang[MVP]"
<sheng_ji...@hotmail.com.discusswrote:
You can display an error message and let the user decide to trust your
program or not. Visual Studio 2005 once asked me wether to trust Visual
Studio 2005 or not when i was using a Visual C++ wizard
(seehttp://jiangsheng.spaces.live.com/blog/cns!1BE894DEAF296E0A!539.entry).
I
had to trust Visual Studio 2005 to continue working.

I understand that, but IE doesn't produce a nice security warning for
this issue, it simply seems to prevent the application from working.
(Something to do with the localhost connection from the browser
instance to the locally running application.)

Because IE doesn't produce a nice warning message I'd like to detect
whether they have their security restrictions set to 'high', and if
so, warn them on startup.

Dec 10 '07 #4
You probably need localhost added to the "intranet settings" so IE sees it as
a trusted site. This KB will help determine some of the registry settings:
http://support.microsoft.com/kb/182569
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com
"jd" wrote:
On Dec 10, 7:45 pm, "Sheng Jiang[MVP]"
<sheng_ji...@hotmail.com.discusswrote:
You can display an error message and let the user decide to trust your
program or not. Visual Studio 2005 once asked me wether to trust Visual
Studio 2005 or not when i was using a Visual C++ wizard (seehttp://jiangsheng.spaces.live.com/blog/cns!1BE894DEAF296E0A!539.entry). I
had to trust Visual Studio 2005 to continue working.

I understand that, but IE doesn't produce a nice security warning for
this issue, it simply seems to prevent the application from working.
(Something to do with the localhost connection from the browser
instance to the locally running application.)

Because IE doesn't produce a nice warning message I'd like to detect
whether they have their security restrictions set to 'high', and if
so, warn them on startup.
Dec 10 '07 #5
Hello,

If your application is using embedded MSHTML windows for its interface, you
can choose which security context they will be running in. You can thus force
the “trusted sites” zone for your content (if it's safe indeed).

If you need MSHTML for presenting some rich UI, you might want to use .NET
3 instead, which has build-in managed classes for doing basically the same
things, it's just that they're not HTML-based.

(H) Serge
Dec 11 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by #Hai | last post: by
11 posts views Thread by Doug van Vianen | last post: by
9 posts views Thread by Etayki | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.