| |
|
|
|
Description:
AdjustTokenPrivileges position Privilegien in a ‚Access Token’ one (enable/deaktivieren). Privilegien there only in NT-based Systemen. the lever the Token needed In any drop $20 (TOKEN_ADJUST_PRIVILEGES) Accessrechte.
Deklaration:
DEF @AdjustTokenPrivileges(6) !advapi32,AdjustTokenPrivileges
Parameter:
1.Parameter: lever the Token, the The einzustellenden Privilegien contains as LongInt. 2.Parameter: Flag, the angibt, whether any Privilegien deaktiviert go should. => ·1 = any in the Token encompassed Privilegien go deaktiviert and Parameter 3 becomes ignoring. ·0 = The in Parameter 3 angegebenen Privilegien go to whom in Parameter 3 angegebenen Information activate or deaktiviert. 3.Parameter: Structure or Bereichvariable, The The indicated over The Privilegien contains. (on the simplest is it, to Time always only one privilege To Edit.) => ·byte 0-3 = Number of Privilegien ·byte 4-11 = LUID the 1.Privilegs ·byte 12-15 = Flag for the Attribut the Privilegs: $1=Standardmäßig aktiviert; $2=aktiviert; $80000000=Privileg watts for grabbed needed. ·byte 16-23 = LUID the 2.Privilegs ·…usw… 4.Parameter: Size in Bytes the Bereichs in Parameter 5. can 0 his, if Parameter 5 0 is. 5.Parameter:enough dimensionierte Bereichsvariale, The whom previous status the Privilegien receiving. 6.Parameter: 4 byte large Memory-Variable, The The erforderliche Size the Memory-Variables in Parameter 5 in Bytes receiving. this Parameter can 0 his, if Parameter 5 0 is.
Return Value:
1 with success, 0 with failure.
Examples:
[...] [...] |
|
|
| |
|
|