c# - Who connected remotely? -
we have ten user-names software , due licensing issues, need 10 separate machines (10 different ips). multiple users can remotely access machine @ same time, 1 user can using program on machine. okay, here deal. developing simple application in c# visual shows whether instance of program running on machines (a simple table). works well. thought of adding table column 'owner' - running instance of program on particular machine. can somehow track ip of person remotely logged in , started process? there 1 account on each machine.
thanks.
what want display owner of respective process, i.e. user name can seen e.g. using task manager or process explorer.
one option retrieve owner of process use wmi. e.g. decribed in related question:
if additionally want retrieve user in rdp session might want have @ cassia library, e.g. using code following:
new terminalservicesmanager().currentsession.clientname to client's host name, or
new terminalservicesmanager().currentsession.username to user name.
Comments
Post a Comment