Auldfart's How To Guides

 

Regedit Explained

 On most of the registry tweaks on this site you will have to use Regedit. Here is what Regedit is and a note on how to use it.

 

When you run the Registry Editor you will see the following expandable Registry subtrees listed under "My computer"

HKEY_CLASSES_ROOT - This contains all of your file association types, OLE information and shortcut data. 

                    HKEY_CURRENT_USER - This  links to the section of HKEY_USERS for the user currently logged onto the PC.                    

Sub keys

+ “App Events” - Assigned system and applications sound events settings

+ “Control Panel”- Control panel settings

+ “Identities”- Created and used by MS Outlook Express and its address book.

+ “InstallLocationsMRU” - Installation and Startup folders paths.

+ “Keyboard” – Current keyboard layout

+ “Network” - Network connection settings.

+ “RemoteAccess” Current log on location settings, if using DUN.

+ “Software” - Software configuration settings for he currently logged on user.

                       HKEY_LOCAL_MACHINE - This  contains specific information about the type of hardware, software, and other preferences on the PC, this information is used for all users who log onto this computer.            

Sub keys

+ “Config” - System and software configuration

+ “Drivers” – Stores the loaded drivers.

+ “Enum” - Hardware devices info and settings.

+ “Hardware” - Serial communication port(s) info and settings

+ “Security” - Network security info and settings.

+ “SOFTWARE” - Software specific info and settings

+ “System” - System startup, device driver and operating system info and settings.

 

                        HKEY_USERS – User independent hardware and software machine specific information: bus type, device drivers, keyboard layout etc.

 HKEY_CURRENT_CONFIG – Information about the current hardware profile used by the computer at startup, pointing to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\Current.  

                          HKEY_DYN_DATA - Virtual key (exists only in memory) created every time Windows 9x/ME initializes: dynamic configuration data about installed PnP devices. Changes constantly when hardware devices are added,swapped or removed on-the-fly.

Sub keys

+ “Config Manager” - Hardware problem codes and status.

+ ”PerfStats” - System and network performance statistics.  

 

This is the complete list of supported Registry Value types

 

Value Type API Code Description
 
REG_ERROR -1 Error request value
REG_NONE 0 Null value
REG_SZ 1 Null terminated Unicode string value
REG_EXPAND_SZ 2 Null terminated unexpanded Unicode/ANSI environment string value
REG_BINARY 3 Binary value of any form/length
REG_DWORD 4 32-bit numerical value
REG_DWORD_LITTLE_ENDIAN 4 32-bit numerical value
REG_DWORD_BIG_ENDIAN 5 32-bit reversed numerical value
REG_LINK 6 Symbolic Unicode link string value
REG_MULTI_SZ 7 Array of multiple Unicode strings separated/ended by null characters
REG_RESOURCE_LIST 8 Device driver list of resources in Resource Map
REG_FULL_RESOURCE_DESCRIPTOR 9 List of hardware resources in Hardware Description
REG_RESOURCE_REQUIREMENTS_LIST 10 Device driver list of resource requirements in Resource Map

 
Regedit Command Line Options 

                       Regedit has a number of command line options to help automate it's use in either batch files or from the command prompt. Listed below are some of the options, please note the some of the functions are operating system specific. 
regedit.exe [options] [filename]

filename Import .reg file into the registry
/s Silent, i.e. hide confirmation box when importing files
/e Export registry file
e.g. regedit /e file.reg HKEY_USERS\.DEFAULT
/L:system Specify the location of the system.dat to use
/R:user Specify the location of the user.dat to use
/C Compress [filename] (Windows 98)