DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   Read windows registry in c?? (http://www.daniweb.com/forums/thread120572.html)

Aamit Apr 23rd, 2008 9:08 am
Read windows registry in c??
 
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??

Aamit Apr 23rd, 2008 9:14 am
Re: Read windows registry in c??
 
Plz anybody tell me How to read the registry file....

Ancient Dragon Apr 23rd, 2008 9:34 am
Re: Read windows registry in c??
 
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.

dipakdesaid Oct 15th, 2009 8:21 am
I want to know more about registry, may you have any material then reply it
desaidiapk.d@gmail.com


All times are GMT -4. The time now is 1:13 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC