C# Class IntelleSoft.Services.AccountRights

Show file Open project: diamondhat/cordisproject Class Usage Examples

Public Methods

Method Description
SetRights ( string accountName, string privilegeName, bool enable ) : void

Private Methods

Method Description
LookupAccountName ( string lpSystemName, string lpAccountName, IntPtr pSid, int &cbSid, StringBuilder domainName, int &cbDomain, int &peUse ) : bool
LsaAddAccountRights ( IntPtr PolicyHandle, IntPtr AccountSid, Array UserRights, int CountOfRights ) : int
LsaClose ( IntPtr ObjectHandle ) : int
LsaNtStatusToWinError ( int Status ) : int
LsaOpenPolicy ( c_LSA_UNICODE_STRING SystemName, c_LSA_OBJECT_ATTRIBUTES ObjectAttributes, uint DesiredAccess, IntPtr &PolicyHandle ) : int
LsaRemoveAccountRights ( IntPtr PolicyHandle, IntPtr AccountSid, byte AllRights, Array UserRights, int CountOfRights ) : int

Method Details

SetRights() public static method

public static SetRights ( string accountName, string privilegeName, bool enable ) : void
accountName string
privilegeName string
enable bool
return void