?
Solved

Edit the Enum Section of the registry

Posted on 2004-04-20
3
Medium Priority
?
401 Views
Last Modified: 2012-06-21
Hi all, I need to enter a value in HKLM\CurrentControlSet\Enum\<device-type>\<vendor-id>\<sub-value> key (I want to load a filter driver for a device using my program, so I need to add a LowerFilters entry here). I'm using RegSetValueEx() but it is returning error 5. AFAIR this is for ERROR_ACCESS_DENIED. I can enable write permission on the key from regedt32, but I want to implement this in my program. How do I get the permission? I'm assuming I have to use RegSetKeySecurity() but I'm new to windows security and am confused with the 2nd and 3rd parameter. Any suggestions/pointers any1? Thanks in advance.
0
Comment
Question by:tareqsiraj
2 Comments
 

Author Comment

by:tareqsiraj
ID: 10879364
Ok... found it myself using SetupDiSetDeviceRegistryProperty().
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
ID: 11227180
PAQed, with points refunded (200)

GhostMod
Community Support Moderator
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question