Please go through the below link:
http://stackoverflow.com/questions/34065/how-to-read-a-value-from-the-windows-registry

cheers!!!
vatsa
www.objectiveprogramming.com