Results 1 to 2 of 2
  1. #1
    Lounger
    Join Date
    Jan 2001
    Posts
    47
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Writing registry security descriptors (VBA / O97 / W2K)

    My Application features some user definable options. As these values shall be the same for all users, I decided to store them in the HKLMSoftware key. But with W2K I experienced that normal users do not have write access to this key. I know how to manually set the appropriate security attributes, but I would like the application to do it by itself when run with admin rights.

    I Started diggin' in MSDN about security descriptors and API calls, but this seems to be quite intricate. Maybe someone can help me out with some sample code or a link to a good description of how to do this?

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

    Re: Writing registry security descriptors (VBA / O97 / W2K)

    Why not use HKLMCurrent User instead? They'll have to be set for every user, but that's no big deal.
    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
  •