Click here to Skip to main content
12,403,983 members (69,146 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: Windows Win7 IE9
If I am on a webpage and I go to Tools/Internet Options/Security/Custom Level and make a change, the webpage works fine, I can surf or go to another page.

If I make the change thru programming. The change happens, however; when I try to go to another page I get the message, Window is busy. Why is this? How can I get arounf it? Thank you.
Posted 17-Sep-11 9:28am
Comments
DaveAuld 18-Sep-11 11:44am
   
How are you making the change via programming?
Member 7766180 18-Sep-11 12:54pm
   
Like This....
HKEY hKey; DWORD buffersize = 1024; DWORD dwErr = NO_ERROR;
#define BUFFER_SIZE 1024
dwErr = RegOpenKeyEx (HKEY_CURRENT_USER,"Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3",NULL,KEY_SET_VALUE|KEY_QUERY_VALUE,&hKey);
if(ERROR_SUCCESS == dwErr)
{
BYTE data[BUFFER_SIZE] = {0};
DWORD dwType = REG_NONE;
dwErr = RegQueryValueExW(hKey,L"1803",NULL,&dwType,data,&buffersize);
if(ERROR_SUCCESS == dwErr && REG_DWORD == dwType)
{
*((LPDWORD)data) = 3; //0 is Enable 3 is Disable
dwErr = RegSetValueExW(hKey,L"1803",0,REG_DWORD,data,sizeof(DWORD));
}
RegCloseKey (hKey);
}
DaveAuld 18-Sep-11 13:13pm
   
Have you seen this page which discusses the effects of the settings being set in different places? May have something to do with it.....http://support.microsoft.com/kb/182569
Member 7766180 18-Sep-11 14:08pm
   
Thanks, I had a look and it's not really about the programming.
DaveAuld 18-Sep-11 14:11pm
   
I never said it was, but did you read it? it tells you about additive effects of registry keys depending on where you are setting the IE registry keys. The problem you are having is that the key maybe requires to be set in a couple of places to become effective. The article tells you where the other keys reside, and the additive or overriding effects of each of them. Particularly in the Zones where you are having the problem.
Member 7766180 18-Sep-11 14:57pm
   
OK will re-read! Thank you.
Member 7766180 18-Sep-11 15:04pm
   
OK, I read it again, Sorry. Even my Mother said,"Don't you listen!". It seems that I need to add it to a second place, I will try that and let you know. Once again, Thank You!
Member 7766180 19-Sep-11 12:53pm
   
DaveAuld Put this in as a solution so that I can give you credit, and close this thread. Thank you.
DaveAuld 19-Sep-11 13:09pm
   
Which bit worked? The multi-reg codes?
Member 7766180 19-Sep-11 13:55pm
   
Yes.

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Have you seen this page which discusses the effects of the settings being set in different places? May have something to do with it.....

http://support.microsoft.com/kb/182569[^]

The article tells you where the other keys reside, and the additive or overriding effects of each of them. Particularly in the Zones where you are having the problem.

You may have to set multiple key locations.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 19 Sep 2011
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100