Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Edit the Enum Section of the registry

Posted on 2004-04-20
3
Medium Priority
?
399 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
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…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

618 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