Using this code, I get a '0' result. I am running NT Wks4
and am a Domain Admin on a network (strictly NT Servers).
DECLARE INTEGER LogonUser IN WIN32API;
STRING lpszUserName, ;
STRING lpszDomain, ;
STRING lpszPassword, ;
INTEGER dwLogonType, ;
INTEGER dwLogonProvider, ;
INTEGER @ phToken
cUser = 'user1'
cDomain = 'MyDomain'
cPasswd = 'xyzzy'
nLogonType = 2 && LOGON32_LOGON_INTERACTIVE (see WINBASE.H)
nProvider = 0 && LOGON32_PROVIDER_DEFAULT (see WINBASE.H)
nToken = 0
nResult = LogonUser(cUser, cDomain, cPasswd, nLogonType, nProvider, @nToken)
? nResult
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only