Security permissions of Registry Key

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

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

Cheers,

Raymond.
0
 
jhanceCommented:
LONG RegSetKeySecurity(
  HKEY hKey,                                // handle to key
  SECURITY_INFORMATION SecurityInformation, // request
  PSECURITY_DESCRIPTOR pSecurityDescriptor  // SD
);
0
 
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.
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
ntdragonCommented:
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
 
jhanceCommented:
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
 
KAbbottCommented:
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
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.