Solved

Edit the Enum Section of the registry

Posted on 2004-04-20
3
370 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
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
  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 …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now