Hi Kevin,
Every time I ask this question, I get the same answer. There is a program you can run, but you must have Network Administrator rights to have access to the data. If you are trying to write this for a user, the only way I know of is to use semiphore tracking. Write the user ID to a table when he logs on and remove it when he exits.
Find the user by
declare integer GetUserName in advapi32 String@, Integer@
lcusername = replicate(chr(0),255)
lres = getusername(@lcusername,255)
If lres #0 Then
messagebox( left(lcusername,at(chr(0),lcusername) -1))
EndIf
HTH
Ron Seidl
Independent Developer
VFP
"I'm playing in life's theater in anticipation of a great cast party!"