CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2000
    Location
    Romania, Cluj-Napoca
    Posts
    57

    SETTING PERMISSIONS IN WIN NT

    I need to set the permissions for a folder or for a specific registry key (for example to grant full access to a key or folder to a specific user).
    I want to do this programatically but I've found no solution till now.
    Okay, I know about the NetUserxxxx functions but actually they are useless for me cause I do not want to change the group for a user that want to gain access to a certain folder or registry key.

    Does anyone have a clue about this ???
    Which API I should use, or give me a link to documentation.

    Any useful answer will be rated.
    10x in advance


  2. #2
    Join Date
    Apr 2000
    Location
    Paris, France
    Posts
    154

    Re: SETTING PERMISSIONS IN WIN NT

    Hi,

    Use the following APIs: GetSecurityInfo(), SetNamedSecurityInfo(), etc.

    Details in MSDN Library->Platform SDK->Base Services->Security

    Regards,
    Claudiu

    Brainbench MVP for C++
    Make sure you rate the post if helped ! This encourage people to respond.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured