Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Usuario logueado desde el Active directory
Message
De
18/11/2011 10:23:24
 
 
À
18/11/2011 10:20:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01529213
Message ID:
01529224
Vues:
32
>>>>Hola a todos.
>>>>Alguien me podria decir como hago para saber el nombre del usuario logueado en el DA desde VFP ?
>>>>
>>>>Gracias.
>>>
>>>
>>>Hola,
>>>
>>>
>>>La secunda parte de sys(0) contiene el usario
>>>
>>>Para el nombre, ver Re: User name and description Thread #1529202 Message #1529211
>>
>>Even though I can figure out the gist of the question based on your answer, it may help if you translate the question.
>
>
>>>>Alguien me podria decir como hago para saber el nombre del usuario logueado en el DA desde VFP ?
>
>Could someone tell me how to get the name of the logged-on user in the Active Directory (in vfp)

FUNCTION username
LOCAL lcusername,lres
declare integer GetUserName in advapi32 String@, Integer@
lcusername = replicate(chr(0),255)
lres = getusername(@lcusername,255)

if lres # 0
lcusername = left(lcusername,at(chr(0),lcusername)-1)
ELSE
lcusername = ""
ENDIF
RETURN lcusername
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform