C# Class YetAnotherRelogger.Helpers.Tools.UserAccount

Exibir arquivo Open project: sinterlkaas/YetAnotherRelogger

Public Methods

Method Description
Create ( string name, string password, string fullName = "", bool isAdmin = false ) : bool

Creates a new user account

Exists ( string username ) : bool

Lookup username on localhost

ExistsAsAdmin ( string username ) : bool

Lookup admin on localhost

ImpersonateStartInfo ( ProcessStartInfo startinfo, BotClass bot ) : ProcessStartInfo

Method Details

Create() public static method

Creates a new user account
public static Create ( string name, string password, string fullName = "", bool isAdmin = false ) : bool
name string User login name
password string User password
fullName string User full name
isAdmin bool flag as admin
return bool

Exists() public static method

Lookup username on localhost
public static Exists ( string username ) : bool
username string username to lookup
return bool

ExistsAsAdmin() public static method

Lookup admin on localhost
public static ExistsAsAdmin ( string username ) : bool
username string username to lookup
return bool

ImpersonateStartInfo() public static method

public static ImpersonateStartInfo ( ProcessStartInfo startinfo, BotClass bot ) : ProcessStartInfo
startinfo System.Diagnostics.ProcessStartInfo
bot BotClass
return System.Diagnostics.ProcessStartInfo