Method System.LogonUser()
- Method
LogonUser
LogonUser(UserTokenstringusername,string|zerodomain,string|zeropassword,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 (if required).
- 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
UserTokenobject on success, and zero on failure.- Note
This function is only available on some Win32 systems.