Manage User Privileges Programmatically

ciuly0_at_gmail.com
Date: 10/21/05

  • Next message: Steven L Umbach: "Re: make my Security Log more understandable"
    Date: 21 Oct 2005 06:06:00 -0700
    
    

    Hi all,

    I am trying to translate the code from the following article into
    delphi. I mostly succedded but I cannot seem to find the definition of
    3 constants. I looked in the latest platform sdk and they are simply
    not there.

    the article in question:
    http://support.microsoft.com/default.aspx?scid=kb;en-us;132958

    the constants:
    ACCOUNT_ADJUST_SYSTEM_ACCESS
    ACCOUNT_VIEW
    ACCOUNT_ADJUST_PRIVILEGES

    I did found a file NTSecApi.h but it deosn't contain those definitions.
    I think that since the article relates to win nt and 2000 maybe those
    definitions are present in the nt or 2000 platform sdk. I couldn't get
    a copy of any of the 2 and that is why I am asking for your help.

    I also looked into the reactOS and wine sources, but with no luck.

    If the above is not possible, then I would like another way of
    programatically manage a users privilege.
    What I am trying to do is programatically grant the "Logon as a
    service" right to a newly created user. I need something that will work
    at least on winxp, and it will be better if it will run on all windows
    nt platforms.

    Thanks in advance for your help.


  • Next message: Steven L Umbach: "Re: make my Security Log more understandable"