Method System.LogonUser()
- Method LogonUser
 objectLogonUser(stringusername,string|int(0..0)domain,stringpassword,int|voidlogon_type,int|voidlogon_provider)- Description
 Logon a user.
- Parameter 
username User name of the user to login.
- Parameter 
domain Domain to login on, or zero if local logon.
- Parameter 
password Password to login with.
- Parameter 
logon_type One of the following values:
LOGON32_LOGON_BATCHLOGON32_LOGON_INTERACTIVELOGON32_LOGON_SERVICELOGON32_LOGON_NETWORKThis is the default.
- Parameter 
logon_provider One of the following values:
LOGON32_PROVIDER_DEFAULTThis is the default.
- Returns
 Returns a login token object on success, and zero on failure.
- Note
 This function is only available on some Win32 systems.