Метод | Описание | |
---|---|---|
AddLogonAsServicePrivilege ( string account ) : void |
Add the privilege for the given account to logon as service.
|
|
AddPrivilege ( string account, string privilege ) : void |
Add privileges for the given account
|
|
Dispose ( ) : void |
Release all unmanaged resources.
|
|
LocalSecurityPolicy ( ) : System |
Constructor for LocalSecurityPolicy
|
|
LocalSecurityPolicy ( string systemName ) : System |
Constructor for LocalSecurityPolicy
|
Метод | Описание | |
---|---|---|
FreeSid ( |
||
GetLastError ( ) : int | ||
GetSIDInformation ( string account ) : |
||
InitLsaString ( string s ) : LSA_UNICODE_STRING | ||
IsValidSid ( |
||
LookupAccountName ( string lpSystemName, string lpAccountName, |
||
LsaAddAccountRights ( |
||
LsaClose ( |
||
LsaNtStatusToWinError ( long status ) : long | ||
LsaOpenPolicy ( LSA_UNICODE_STRING &SystemName, LSA_OBJECT_ATTRIBUTES &ObjectAttributes, |
public AddLogonAsServicePrivilege ( string account ) : void | ||
account | string | The account name (domain\userName) |
Результат | void |
public AddPrivilege ( string account, string privilege ) : void | ||
account | string | The account name (domain\userName) |
privilege | string | The name of the privilege to add |
Результат | void |
public LocalSecurityPolicy ( string systemName ) : System | ||
systemName | string | local system if systemName is null |
Результат | System |