PyHANDLE = LogonUser(Username, Domain , Password , LogonType , LogonProvider )
Attempts to log a user on to the local computer, that is, to the computer from which LogonUser was called. You cannot use LogonUser to log on to a remote computer.
CommentsAccepts keyword args
On Windows 2000 and earlier, the calling process must have SE_TCB_NAME privilege.