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??

Recommended Answers

All 3 Replies

Plz anybody tell me How to read the registry file....

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.