Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
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.

1 solution

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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900