 |
 |

05-12-2003, 12:41 PM
|
|
Freshman
|
|
Join Date: May 2003
Location: Lagos , NIGERIA
Posts: 43
|
|
change registry key permissions
|
Hello,
I would like to allow the win2k user accout full control over a registry key my app creates , does any body have any clue
Thanks in advance.
|
|

05-12-2003, 02:32 PM
|
 |
Hell's Angel
Retired Moderator * Guru *
|
|
Join Date: Jul 2001
Location: Yorkshire, UK
Posts: 10,394
|
|
__________________
A wise one man once said "what you talking about dog breath"
|

05-13-2003, 07:28 AM
|
|
Freshman
|
|
Join Date: May 2003
Location: Lagos , NIGERIA
Posts: 43
|
|
Quote: Originally Posted by Banjo What's that then?
Well wind0ws 2000 has six inbuilt account groups
Administrators
Power Users
Back up Operators
Users
. . . . . and
Guest
When u create a new account in windows 2000 , it is placed by default in the User group , so i want members of this group to have "full control" over registry keys created by my app , in HKLM
Somebody please help 
|
|

05-13-2003, 08:39 AM
|
 |
Hell's Angel
Retired Moderator * Guru *
|
|
Join Date: Jul 2001
Location: Yorkshire, UK
Posts: 10,394
|
|
Ah, why didn't you say "user group" instead of "user account" in the first place
In answer to your question, it is possible but requires the use of the security api function. Unfortunately these are some of the more arcance functions in the API. I haven't the time to run up an example for you, however you should use MSDN to check out these functions:
RegSetKeySecurity
SetEntriesInACL
Of course, you need to be able to open the key to set these ACEs so your program will need to be run from an administrative account first in order to set the necessary access.
|
__________________
A wise one man once said "what you talking about dog breath"
|

05-13-2003, 09:14 AM
|
|
Freshman
|
|
Join Date: May 2003
Location: Lagos , NIGERIA
Posts: 43
|
|
Quote: Originally Posted by Banjo Ah, why didn't you say "user group" instead of "user account" in the first place 
In answer to your question, it is possible but requires the use of the security api function. Unfortunately these are some of the more arcance functions in the API. I haven't the time to run up an example for you, however you should use MSDN to check out these functions:
RegSetKeySecurity
SetEntriesInACL
Of course, you need to be able to open the key to set these ACEs so your program will need to be run from an administrative account first in order to set the necessary access.
Thank you.
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
|
|
 |
|