Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble with LogonUser
Message
From
29/03/2001 12:27:45
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00489684
Message ID:
00489943
Views:
21
>>>I can't seem to get LogonUser to work properly. I am using the following code:
>>>
>>>
>>>DECLARE INTEGER LogonUser in WIN32API ;
>>>       String lcUser,;
>>>       String lcServer,;
>>>       String lcPassword,;
>>>       INTEGER dwLogonType,;
>>>       Integer dwProvider,;
>>>       Integer @dwToken
>>>
>>>lnToken = 0
>>>lnResult = LogonUser(lcUsername,lcDomain,lcPassword,;
>>>                     3,LOGON32_PROVIDER_DEFAULT,@lnToken)
>>>
>>>
>>>I use my username, password and domain from my network NT account yet the result is always 0. I am running Win 2K Pro. Any help would be greatly appreciated.
>>>
>>>Jake
>>
>>What does GetLastError() return?
>
>127 ??
>
>Any ideas? According to msdn this means procedure not found.
>
>Jake

Er, I played a bit more and now get 1314 over and over.

Jake
Wine is sunlight, held together by water - Galileo Galilei
Un jour sans vin est comme un jour sans soleil - Louis Pasteur
Water separates the people of the world; wine unites them - anonymous
Wine is the most civilized thing in the world - Ernest Hemingway
Wine makes daily living easier, less hurried, with fewer tensions and more tolerance - Benjamin Franklin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform