-1

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

3
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by dipakdesaid
0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.