Jump to content

Beginner question about Security Management


Go to solution Solved by ddeerr,

Recommended Posts

Posted

Hi all,

It seems that in the security functions it is possible to edit Permissions on registry Keys, i said "it seems" because i cannot test most of them due to a lack of uderstanding.

For example :

_Security__AdjustTokenPrivileges($hToken, $fDisableAll, $pNewState, $iBufferLen[, $pPrevState = 0[, $pRequired = 0]])

I don't understand where to get $hToken and $tagtagTOKEN_PRIVILEGES ($pNewState in definition) and i know that's because i don't know what is it, i suppose it's some kind of link to registry, or system access ?

Same in _Security__LookupPrivilegeValue($sSystem, $sName) as i don't know exactly what is it it tried :

_Security__LookupPrivilegeValue("", "Full Control"); for registry on default system ?

or

_Security__LookupPrivilegeValue("", "Read"); for file(s) on default system ?

i know it's incorrect because it's always 0 for result.

I found no help in forum or AutoIt help about that, is there someone that can quickly explain to me about that ?

thanks

:)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...