Results 1 to 3 of 3
  1. #1
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Reg Key Permissions (Any)

    I know I'm probably off to the API bin for this one, but maybe somebody can save me some time. How can I programmatically check the persmissions on a specific registry key?
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  2. #2
    2 Star Lounger
    Join Date
    Nov 2001
    Location
    London, UK, England
    Posts
    116
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Reg Key Permissions (Any)

    Kevin,

    Pure API for this one, there's quite a good article on MSDN that should help you...

    http://msdn.microsoft.com/library/default....regapi_9zoz.asp

    You'll need to use the GetNamedSecurityInfo or GetSecurityInfo APIs to return the security descriptor associated with the key.

    Thanks

    Edited by Rory to make link live.

  3. #3
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Reg Key Permissions (Any)

    Dylan, Thanks for pointing me in the right direction.

    Rory, Thanks for fixing the link.
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

Posting Permissions

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