>>>>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