Getting loggedin username for a terminal server session.

  • Thread starter Thread starter RD
  • Start date Start date
R

RD

How do you retrieve the username in vb .net managed code for a user that is
currently using your application in a terminal server session?

Thanks for any help.

Bob
 
Have you tried Environment.Username?

I'd imagine that works, but if not, you may have to use the unmanaged WTS
API functions.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Chaos, Panic, Disorder, my work here is done"


: How do you retrieve the username in vb .net managed code for a user that
is
: currently using your application in a terminal server session?
:
: Thanks for any help.
:
: Bob
:
:
 
Back
Top