Forum     

Go Back   Digit Technology Discussion Forum > Community > Tutorials
Register FAQ Calendar Mark Forums Read

Tutorials This section offers tutorials and How to's on just about anything related to computers and IT. Note: All tutorials are courtesy the posters and not verified by Digit


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 07-11-2007, 06:33 PM   #1 (permalink)
TechFreakiez.com
 
Abhishek Dwivedi's Avatar
 
Join Date: Sep 2006
Location: New Delhi
Posts: 621
Arrow The Windows Registry: beginning


UPDATED:



Windows Registry has been one of the most fascinating part. Each Operating system has its own way of storing important data related to User accounts, System Configuration and information related to the Software’s installed. In the old times when DOS was one of the main Operating system, it used to store its important data in file named CONFIG.SYS.

With the beginning of the Windows era, a stronger method was required to store the System related Data. Windows had a configuration file named SYSTEM.INI (initialization files) and WIN.INI and mostly every application had its own INI file.
The drawback of INI files was that they had a limited file size of 64KB only and each program could have only one INI file, making it a lot difficult to store settings for different users and hence Microsoft introduced Windows Registry in Windows 95 and since then Windows have always had its backbone, it Registry. Here I’ve described the basics of the Windows registry.
THE WINDOWS REGISTRY- beginning

The Structure: Windows Registry can be viewed and edited through the Registry Editor provided with the windows. To open the editor:
1)win key+r or start>run
2)type “regedit.exe” or “regedit” (without quotes)
Apart from the Windows Registry Editor there are a lot of third party editors but I prefer the Windows Registry Editor.
When you open the Windows Registry Editor, it shows you the Windows Registry in a Tree form, which is very similar to folder and sub-folder structure. The registry is divided into 6 hives or branches or Root keys and each Root key holds information of a special class.

Important: Microsoft assigned a maximum size of 1MB of any object stored in a key in registry and if the data has to more than 1MB than it is stored in a separate file and a pointer is made in the registry which points to that file. This is what makes the registry small in size (mine is 131kb in size). But in Windows XP, both system and application software’s store data into the same registry and hence making the size of registry larger and as the size increases, the time required to find data in registry increases and hence the speed of system decreases.

The Root Keys: As I told there are 6 Root keys in Windows Registry and they are:


3)HKEY_CLASSES_ROOT: This branch hold information related to the file types and the actions which can be performed on them and installed software components. I read is a book:
“it is a mirror of the corresponding sub-branch of HKEY_LOCAL_MACHINE which is made accessible by itself as a root key for compatibility reasons”
n Windows XP, it is a compilation of the information present in HKEY_CURRENT_USER\Software\Classes and HKEY_LOCAL_MACHINE\Software\Classes”-Fast Track to Windows Registry.

2) HKEY_LOCAL_MACHINE: It holds information related to the System i.e. information related to installed drivers, software, configuration table of software’s etc.
I read in a book:
“Also stored here is information about software components installed in the computer. Windows supports an object-based architecture that allows software components to be used by any application. This technology has evolved since it was introduced in Windows 3 and has been known as Object Linking and Embedding (OLE), ActiveX and Component Object Model (COM). Components installed on the computer are registered in the Registry so that other programs know they are there and are able to make use of them. An example of this is Internet Explorer, whose browser component can be used by any program that needs to display web pages or other HTML-formatted data.”

3) HKEY_CURRENT_USER: This branch holds the information about the currently logged in user which includes desktop settings and other personalised information about the users settings.

4)HKEY_USER: It contains the user configuration data which realted the system users but mostly, all the applications access the users settings throught HKEY_CURRENT_USER. Each user is identified via SID i.e security identifier (SIDs differ even when two users have\had the same name)

5)HKEY_CURRENT_CONFIG: It holds all the information collected at system boot and hence this key is regenerated every time the system boots ot reboots.

6)HKEY_DYN_DATA: This branch is not found in Windows XP and Windows Vista® Home Basic and most probably other versions also(I have not yet got my hands on other Vista version’s). It holds the information related to performance and status information of different components of system. The data shown here is not stored in any file and keeps on refreshing and updated mostly by Windows Kernel or software driver. For example: when you open task manager, you can find the CPU usage, memory usage (RAM usage), Network Adapter etc and all this is fetched from this Key and displayed in Graphical form by the Task Manager. It also holds the information related to plug-n-play devices. For Windows XP and Windows Vista®, the plug-n-play data is directely merged in the main registry.


Value Types: Each Root Key in Windows Registry has sub-keys and these sub-keys have data stored in them. The Data which is stored in these keys and sub-keys is different than the normal type of Data. The data in these keys and sub-keys is stored in Binary, String and DWORD form.

1)DWORD (32 bit): It is a Four Byte to Eight Byte(16 bit to 32 bit) ranging data type generally used for BOOLEAN VALUE. Each service or component has its own default DWORD value set but mostly ‘0’ means to STOP or DISABLE and ‘1’ means to CONTINUE or START or ENABLE.
2)QWORD (64 bit): It is nothing but the DWORD value with 16 byte(64 bit) data type and was first introduced in Windows 2000.
3)STRING: It is used to store normal text.
4)BINARY: It is used to store the Binary data and used mostly for hardware components. If you have used a HEX EDITOR then you will easily understand how the data is stored in Binary form here.
5)MULTI-STRING VALUE: It is used to store a list of data seperated by ‘\0’ or null character. If you have used array in C++ or other programing language, you can understand the concept behind it. It is mostly used to store list of similar data which have to be fetched from a single place.
6)EXPANDABLE STRING VALUSE: It is used to stored data variable which can be replaced by their value as assigned by the application using it.





hope this little article (now updated) come handy...sorry for the formating as am using dial up and hence the posting panel didnt load up completely...
__________________
Personal Log | Star date 05.04.2009: TDF Meet Kanpur was Awesome :D
www.TechFreakiez.com

Last edited by Abhishek Dwivedi; 08-11-2007 at 07:40 PM.
Abhishek Dwivedi is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 07-11-2007, 06:35 PM   #2 (permalink)
Dreamweaver
 
Gigacore's Avatar
 
Join Date: Aug 2006
Location: Bangalore
Posts: 3,904
Default Re: The Windows Registry: beginning

Well another good post from you.... Keep it up!
__________________
Today's noobs are tomorrow's geeks. Don't make fun of them.. encourage them. - Gigacore

Follow me on twitter.com/gigacore
Gigacore is offline  
Old 07-11-2007, 06:55 PM   #3 (permalink)
TechFreakiez.com
 
Abhishek Dwivedi's Avatar
 
Join Date: Sep 2006
Location: New Delhi
Posts: 621
Default Re: The Windows Registry: beginning

thx gigacore...
__________________
Personal Log | Star date 05.04.2009: TDF Meet Kanpur was Awesome :D
www.TechFreakiez.com
Abhishek Dwivedi is offline  
Old 07-11-2007, 06:56 PM   #4 (permalink)
-----ATi-----
 
nvidia's Avatar
 
Join Date: May 2007
Location: Bangalore
Posts: 2,322
Default Re: The Windows Registry: beginning

Hey nice post dude.. Thanx. I was always wondering what they all meant
__________________
http://twitter.com/akshayms
nvidia is offline  
Old 07-11-2007, 07:03 PM   #5 (permalink)
TechFreakiez.com
 
Abhishek Dwivedi's Avatar
 
Join Date: Sep 2006
Location: New Delhi
Posts: 621
Default Re: The Windows Registry: beginning

lol...i too dont know a lot...just compilted all what i knew...
__________________
Personal Log | Star date 05.04.2009: TDF Meet Kanpur was Awesome :D
www.TechFreakiez.com
Abhishek Dwivedi is offline  
Old 07-11-2007, 08:00 PM   #6 (permalink)
vaibhavtek
Guest
 
Posts: n/a
Default Re: The Windows Registry: beginning

another good post.
keep them coming.
 
Old 07-11-2007, 08:30 PM   #7 (permalink)
101101
 
Join Date: Nov 2006
Location: 10110
Posts: 139
Default Re: The Windows Registry: beginning

Good job mate...
__________________
Finding answers is simple, all you need to do is come up with the correct questions.
crystal_pup is offline  
Old 08-11-2007, 07:44 PM   #8 (permalink)
TechFreakiez.com
 
Abhishek Dwivedi's Avatar
 
Join Date: Sep 2006
Location: New Delhi
Posts: 621
Default Re: The Windows Registry: beginning

thx for da sweet comments guys...thx a lot...

updated...
__________________
Personal Log | Star date 05.04.2009: TDF Meet Kanpur was Awesome :D
www.TechFreakiez.com

Last edited by Abhishek Dwivedi; 08-11-2007 at 07:44 PM. Reason: Automerged Doublepost
Abhishek Dwivedi is offline  
Old 08-11-2007, 08:10 PM   #9 (permalink)
TheSaint
 
NucleusKore's Avatar
 
Join Date: Jun 2004
Location: Antigua
Posts: 3,447
Default Re: The Windows Registry: beginning

Good post.
NucleusKore is offline  
Old 08-11-2007, 09:33 PM   #10 (permalink)
Rubik's Uncle!!
 
Charan's Avatar
 
Join Date: Sep 2004
Location: ಬೆಂಗಳೂರು (Bengaluru)
Posts: 3,791
Default Re: The Windows Registry: beginning

Good work abhishek, I bet this will be printed in Digit soon.
__________________
i5 2400 | DH67BL | G.Skill Ripjaw 4 GB | FSP SAGA II 500W | CM 430 Black Elite | MSI R6850 Cyclone PE/OC | XBox 360 Controller | 21.5" Samsung Sync Master 2233 | 4 Mbps @75GB FUP :)
Battlefield 3 Multiplayer Discussion | Battlefield 3 Low Latency Servers List
Charan is offline  
Old 09-11-2007, 02:03 PM   #11 (permalink)
TechFreakiez.com
 
Abhishek Dwivedi's Avatar
 
Join Date: Sep 2006
Location: New Delhi
Posts: 621
Default Re: The Windows Registry: beginning

@charan: yar don't talk like dat...it makes me excited....he he he...neways i'd luv it if digit print it..
__________________
Personal Log | Star date 05.04.2009: TDF Meet Kanpur was Awesome :D
www.TechFreakiez.com
Abhishek Dwivedi is offline  
Old 09-11-2007, 06:11 PM   #12 (permalink)
Dreamweaver
 
Gigacore's Avatar
 
Join Date: Aug 2006
Location: Bangalore
Posts: 3,904
Default Re: The Windows Registry: beginning

^ Yeah... charan may be right. It might get featured in "Tutor of the month in forum" section, WHO KNOWs ?
__________________
Today's noobs are tomorrow's geeks. Don't make fun of them.. encourage them. - Gigacore

Follow me on twitter.com/gigacore
Gigacore is offline  
Old 10-11-2007, 02:49 PM   #13 (permalink)
TechFreakiez.com
 
Abhishek Dwivedi's Avatar
 
Join Date: Sep 2006
Location: New Delhi
Posts: 621
Default Re: The Windows Registry: beginning

lolz...yar i'd really love to c it on hardcopy... ...lolz...ne ways thx for all ur gr8 comments...
__________________
Personal Log | Star date 05.04.2009: TDF Meet Kanpur was Awesome :D
www.TechFreakiez.com
Abhishek Dwivedi is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Which Windows API fuiction create GUID for Windows Registry nandip Tutorials 1 31-10-2006 05:24 PM
Mandrake 10.1 and FC4 hangs in the beginning of installation jnpandya Open Source 6 29-09-2005 11:47 AM
Vista Beta Screenshots New from the Beginning to End!! neerajvohra Software Q&A 2 23-08-2005 02:45 AM
WINDOWS REGISTRY techpro_bunty Software Q&A 2 17-01-2005 07:34 PM

 
Latest Threads
- by Who
- by Krow
- by clmlbx
- by Tech&ME
- by icebags

Advertisement




All times are GMT +5.5. The time now is 09:07 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2