CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2010
    Posts
    4

    Determining Permission of Registry Key

    How would I determine if the currently logged-in user has permissions to write to a registry key?

    For example, I am writing an applet that allows the user to change the registered owner and organization for Windows. Since this is a system-wide setting, only administrators can change it.

    What I would like to do is determine if the current user has write permissions on these registry entries, so if they don't, the program would gray out the text boxes where they enter these values.

  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    Re: Determining Permission of Registry Key


  3. #3
    Join Date
    Mar 2010
    Posts
    4

    RegGetKeySecurity

    Thanks for the link. While going through it, I did run across the RegGetKeySecurity function. Is this what I would want to use?

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