Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine that the User has Admin privileges
Message
From
02/09/2003 09:55:20
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00824487
Message ID:
00825293
Views:
27
It still doesnt work, gives the same error.
Is there any way other than SYS(2600) to retrieve the contents from that buffer?
Thanx,
Hitendra
>Try to add CHR(0) to the end of the strings you pass to a function.
>
lcUserName = STRCONV(tcUser,5) + CHR(0)
>
>>It didnt work. It gives errorcode 2221.
>>I work on a Win 2000 connected to Domain Controller. I changed code to pass the Unicode converted Domain Controller Name as the Servername parameter. This time the errorcode was 0 ( no error ) but the lcBuffer returned by SYS(2600, ) call was empty ie 0 length.
>>BTW, the Shell32 API call IsUserAnAdmin gives "invalid entry point in DLL" error.
>>Any suggestions on what I must do now?
>>Thanx,
>>Hitendra
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform