###User Defined Function###
_Security__AdjustTokenPrivileges

###Description###
Enables or disables privileges in the specified access token

###Syntax###
#include <Security.au3>
_Security__AdjustTokenPrivileges ( $hToken, $fDisableAll, $pNewState, $iBufferLen [, $pPrevState = 0 [, $pRequired = 0]] )


###Parameters###
@@ParamTable@@
$hToken
	Handle to the access token that contains privileges to be modified
$fDisableAll
	If True, the function disables all privileges and ignores the NewState parameter.
	If False, the function modifies privileges based on the information pointed to by the $pNewState parameter.
$pNewState
	Pointer to a $tagTOKEN_PRIVILEGES structure that contains the privilege and it's attributes
$iBufferLen
	Size, in bytes, of the buffer pointed to by $pNewState
$pPrevState
	[optional] Pointer to a $tagTOKEN_PRIVILEGES structure that specifies the previous state of the privilege that the function modified. This can be 0.
$pRequired
	[optional] Pointer to a variable that receives the required size, in bytes, of the buffer pointed to by $pPrevState.
	This parameter can be 0 if $pPrevState is 0.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	True.
Failure:	False.
@@End@@


###Remarks###
This function cannot add new privileges to an access token. It can only enable or disable the token's existing privileges.


###Related###
$tagTOKEN_PRIVILEGES


###See Also###
@@MsdnLink@@ AdjustTokenPrivileges


###Example###
@@IncludeExample@@
