Read windows registry in c??

Reply

Join Date: Apr 2008
Posts: 290
Reputation: Aamit has a little shameless behaviour in the past 
Solved Threads: 11
Aamit Aamit is offline Offline
Posting Whiz in Training

Read windows registry in c??

 
-1
  #1
Apr 23rd, 2008
I want to read the registry of usb

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR

in this

Name Type Data
start REG_DWORD 0x00000003(3)

when double click it gives value in Hex 3

How to read this value 3 or data 0x00000003(3)

How to create this code in c language??? How to do it guys
If any sample code to read registry plz give me??
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 290
Reputation: Aamit has a little shameless behaviour in the past 
Solved Threads: 11
Aamit Aamit is offline Offline
Posting Whiz in Training

Re: Read windows registry in c??

 
0
  #2
Apr 23rd, 2008
Plz anybody tell me How to read the registry file....
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,158
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1437
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is online now Online
Most Valuable Poster

Re: Read windows registry in c??

 
0
  #3
Apr 23rd, 2008
It's a bit like how to read a file, but you're going to read the windows registry. First you have to call RegOpenKey() to get a handle to the registry key entry, and then RegQueryValueEx() to acaully read the key entry, finally RegCloseKey(). You can find all those functions, and others too, from here

If you want examples, then just use google and you will find lots of them.
Last edited by Ancient Dragon; Apr 23rd, 2008 at 9:36 am.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 1
Reputation: dipakdesaid is an unknown quantity at this point 
Solved Threads: 0
dipakdesaid dipakdesaid is offline Offline
Newbie Poster
 
0
  #4
26 Days Ago
I want to know more about registry, may you have any material then reply it
desaidiapk.d@gmail.com
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC