Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine that the User has Admin privileges
Message
De
02/09/2003 09:55:20
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00824487
Message ID:
00825293
Vues:
26
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
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform