Change user authentication settings type from registry
I already change the value of the registry (using a c# windows application) (HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Lockdown_Zones\1) "1A00" to "30000"(Hexa) equivalent to "Prompt for username and password ", and the change is done. but when i try to return the key value to the previous value "20000"(Hexa) equivalent to "Automatic logon only in intranet zone", in the settings table->customLevel->user authentication ->Logon the change is done , but when i open a new IE window the user authentication form is appear. Can some one help me ? thanks.
The proper way to set an URLAction is to use the SetZoneActionPolicy API. Writing the registry directly is not supported.
You shouldn't be doing this for the entire system if you want the behavior only in your application, however, you should instead implement an IInternetSecurityManager and attach it to your web browser control.
One of the problems you're likely having is that you're writing to the Lockdown Zones, which is very likely not what you really want.