| | |
Read windows registry in c??
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Apr 2008
Posts: 293
Reputation:
Solved Threads: 11
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??
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??
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.
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.
![]() |
Similar Threads
- Lost Windows XP user password (Windows NT / 2000 / XP)
- Editing Windows Registry (C++)
- How do you read a .ini file? (Visual Basic 4 / 5 / 6)
- Error trapping while reading windows XP registry entries (Python)
- Cant read IO.SYS (Windows NT / 2000 / XP)
- windows 2000 IE 6. need help to remove spyware (Viruses, Spyware and other Nasties)
- Browser popup windows (Viruses, Spyware and other Nasties)
Other Threads in the C++ Forum
- Previous Thread: Byte to KILOBYTE conversion in c++
- Next Thread: Combobox connecting problem!
| Thread Tools | Search this Thread |
api array based binary c++ c/c++ calculator char char* class classes code coding compile console conversion count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news number numbertoword output parameter pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock wordfrequency wxwidgets






