Solved

Edit the Enum Section of the registry

Posted on 2004-04-20
3
387 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

734 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