Security permissions of Registry Key

How can I in C++ programm change security permissions of Registry Key?
Who is Participating?
rwilson032697Connect With a Mentor Commented:
Look here for a nice piece of sample code...


LONG RegSetKeySecurity(
  HKEY hKey,                                // handle to key
  SECURITY_INFORMATION SecurityInformation, // request
  PSECURITY_DESCRIPTOR pSecurityDescriptor  // SD
MarishaAuthor Commented:
I knew this function. I wanted to recieve answer with example.
For example, how can I give READ permission to OWNER or everyone.
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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
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.

I've used this souce code, and have no problem with saving, load, deleting stuff in the registery give it a try !!!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.