Security permissions of Registry Key

Posted on 2000-03-05
Last Modified: 2010-04-02
How can I in C++ programm change security permissions of Registry Key?
Question by:Marisha
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
LVL 32

Expert Comment

ID: 2584642
LONG RegSetKeySecurity(
  HKEY hKey,                                // handle to key
  SECURITY_INFORMATION SecurityInformation, // request
  PSECURITY_DESCRIPTOR pSecurityDescriptor  // SD

Author Comment

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.

Expert Comment

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
Technology Partners: 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!

LVL 32

Expert Comment

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.

LVL 12

Accepted Solution

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



Expert Comment

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

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

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…
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 viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
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.

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