BOOL LogonUser( LPTSTR lpszUsername, // string that specifies the user name LPTSTR lpszDomain, // string that specifies the domain or server LPTSTR lpszPassword, // string that specifies the password DWORD dwLogonType, // specifies the type of logon operation DWORD dwLogonProvider, // specifies the logon provider PHANDLE phToken // pointer to variable to receive token handle );
LPTSTR lpszDomain, // string that specifies the domain or server
LPTSTR lpszPassword, // string that specifies the password
DWORD dwLogonType, // specifies the type of logon operation
DWORD dwLogonProvider, // specifies the logon provider
PHANDLE phToken // pointer to variable to receive token handle
);