Internet Explorer is the most widely used browser on the Windows platform, but the Internet Explorer provided by Microsoft is so simple that it has no special features. How can we modify Internet Explorer using programs, what about creating IE with its own characteristics? After thinking, I found the method for modifying IE through the registry. Next I will introduce this method to you.
First, familiarize yourself with the methods and functions for modifying the Registry in C. The Registry class and RegistryKey class are provided in VC # To perform Registry operations. The Registry class encapsulates the seven basic keys of the Registry:
Registry. ClassesRoot corresponds to the HKEY_CLASSES_ROOT primary key
Registry. CurrentUser corresponds to the HKEY_CURRENT_USER primary key
Registry. LocalMachine corresponds to the HKEY_LOCAL_MACHINE primary key
Registry. User corresponds to the HKEY_USER primary key
Registry. CurrentConfig corresponds to the primary key of HEKY_CURRENT_CONFIG
Registry. DynDa corresponds to the HKEY_DYN_DATA primary key
Registry. PerformanceData corresponds to the HKEY_PERFORMANCE_DATA primary key.
The RegistryKey class encapsulates basic operations on the registry, including reading, writing, and deleting. The main functions are as follows:
OpenSubKey (string name) is used to open a specified subkey.
The GetSubKeyNames () method is used to obtain the names of all subkeys under the primary key. The returned value is a string array.
The GetValueNames () method is used to obtain all the key names in the current subkey, and its return value is also a string array.
The GetValue (string name) method specifies the key value of a key.
The written functions include:
The CreateSubKey (string name) method adds a subkey.
SetValue (string name, string value) is used to set the key value of a key.
Deleted functions:
DeleteSubKey () method: deletes a specified subkey.
DeleteSubKeyTree () method:
This method completely deletes the specified sub-Key Directory, that is, deleting the sub-key and all sub-keys below the sub-key.