Solved

Security permissions of Registry Key

Posted on 2000-03-05
6
253 Views
Last Modified: 2010-04-02
How can I in C++ programm change security permissions of Registry Key?
0
Comment
Question by:Marisha
6 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 2584642
LONG RegSetKeySecurity(
  HKEY hKey,                                // handle to key
  SECURITY_INFORMATION SecurityInformation, // request
  PSECURITY_DESCRIPTOR pSecurityDescriptor  // SD
);
0
 

Author Comment

by:Marisha
ID: 2584750
I knew this function. I wanted to recieve answer with example.
For example, how can I give READ permission to OWNER or everyone.
0
 
LVL 1

Expert Comment

by:ntdragon
ID: 2585467
i don't know but it probably i writen anywhere
i mean the seurity opentions are probably writen in the registry for each file so you try to find it and modify it
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 32

Expert Comment

by:jhance
ID: 2585568
50 points means YOU say this is an easy question.  You get a quick and simple answer.

100 points means it's moderate.  You get a snippet of code or possibly more indepth explanation.

200 points or more gets you a full sample.

0
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 50 total points
ID: 2585635
Look here for a nice piece of sample code...

http://support.microsoft.com/support/kb/articles/Q146/9/06.asp

Cheers,

Raymond.
0
 
LVL 2

Expert Comment

by:KAbbott
ID: 2587712
I've used this souce code, and have no problem with saving, load, deleting stuff in the registery give it a try !!!

http://www.codeguru.com/system/registry_ult.shtml
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 how to clear a vector as well as how to detect empty vectors in C++.

910 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

20 Experts available now in Live!

Get 1:1 Help Now