C# Class CloudInit.LSAHelper

Mostra file Open project: bwight/CloudInit.NET

Public Methods

Method Description
AddPrivileges ( String accountName, String privilegeName ) : long

Adds a privilege to an account

Private Methods

Method Description
FreeSid ( IntPtr pSid ) : void
GetLastError ( ) : int
IsValidSid ( IntPtr pSid ) : bool
LookupAccountName ( string lpSystemName, string lpAccountName, IntPtr psid, int &cbsid, StringBuilder domainName, int &cbdomainLength, int &use ) : bool
LsaAddAccountRights ( IntPtr PolicyHandle, IntPtr AccountSid, LSA_UNICODE_STRING UserRights, long CountOfRights ) : long
LsaClose ( IntPtr ObjectHandle ) : long
LsaNtStatusToWinError ( long status ) : long
LsaOpenPolicy ( LSA_UNICODE_STRING &SystemName, LSA_OBJECT_ATTRIBUTES &ObjectAttributes, Int32 DesiredAccess, IntPtr &PolicyHandle ) : UInt32

Method Details

AddPrivileges() public static method

Adds a privilege to an account
public static AddPrivileges ( String accountName, String privilegeName ) : long
accountName String Name of an account - "domain\account" or only "account"
privilegeName String Name ofthe privilege
return long