473,503 Members | 10,660 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
5 3357
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5737
by: Mohan | last post by:
Hi All, I am using web browser control in a VB 6.0 client server application to print reports. I am writing the report into a HTML file and displays the report to the user using the code,...
1
3378
by: John H. | last post by:
I installed the Microsoft Script Debugger and set the "Enable Script Debug" flag on in IIS. Also, I made sure that the "Disable Script Debug" flag was off in Internet Explorer. Everything ran...
6
7902
by: harry | last post by:
Hi, I have a program that runs on multiple client pc's. Occasionally one or more of those pc's use VPN to connect to another corporate network. When using VPN they need to set proxy server in...
5
2620
by: Edward Mitchell | last post by:
Is there a way that I can repair MS Internet Explorer? I seem to have broken it somewhere. I have been developing a .NET app. Three days ago I saw a message box in a web site that I visit saying...
1
3188
by: #Hai | last post by:
Hi, I want Internet Explorer to use localhost server (127.0.0.1) as proxy server instead of connect directly to the ISP. How to do this (by programming) ? Thanks
5
1330
by: | last post by:
I'm having difficulty embedding a managed C++ control in Internet Explorer. I'm using the same object syntax in the html as I would for a c# control, but IE doesn't seem to find the control in the...
11
13374
by: Doug van Vianen | last post by:
Hi, I often like to include some JavaScript coding in my web pages to make them more interesting. Unfortunately, even when this coding is as simple as a check to see what the display width is in...
9
7712
by: Etayki | last post by:
Hi! I am new to VB.net and I am using the Visual Basic 2005 Express Edition I have two questions: 1. I am trying to write an application that will automate Internet Explorer and store data...
9
9137
by: c83 | last post by:
I want programaticaly to change the IE security settings for Intrante Sites. IE Menu: Tools->Internet options->security(Tab)->Local Intranet ->sites i found out that IE stores data in Registry at ...
0
7207
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7294
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5602
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4693
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1523
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
749
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
403
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.