Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using LogonUser()
Message
From
25/04/2000 10:32:59
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00362854
Message ID:
00363147
Views:
25
>It's overwhelmingly likely that while the account may be granted the privilege, you need to set the process token set using AdjustTokenPrivilege() API call. The following is cut from the MSDN docs ...(snip)

Hi Ed,

I went back and read the LogonUser() function in the MSDN carefully and it indicates in the Remarks section that "The privilege does not need to be enabled. The LogonUser function enables the privilege as necessary." In light of this, do you think the enabling code you posted should be necessary to run the function? If not, any other idea on why the function would fail with the privilege granted?

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform