Solved

Security permissions of Registry Key

Posted on 2000-03-05
6
252 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
Comment Utility
LONG RegSetKeySecurity(
  HKEY hKey,                                // handle to key
  SECURITY_INFORMATION SecurityInformation, // request
  PSECURITY_DESCRIPTOR pSecurityDescriptor  // SD
);
0
 

Author Comment

by:Marisha
Comment Utility
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
Comment Utility
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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 32

Expert Comment

by:jhance
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

772 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

16 Experts available now in Live!

Get 1:1 Help Now