Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

See whos running the app?

Status
Not open for further replies.

kovas

Technical User
Aug 6, 2002
88
0
0
US
I have a small program on a server which a few people use, i was wondering if it was possible to see who is running the application? Like get computer name, login name and other info of everyone running the program

thank you
 
You could write out to a log file when the program starts up , writing out the username and machine, etc.

or you could do a similar thing to a database. Using a database you could see who is using it 'now' by removing their info from the table when they close the app.

Hope it helps

Matt
 
this function returns the username of the currently logged in user:

Declare Function GetUserName Lib "advapi32.dll" Alias _
"GetUserNameA" (ByVal lpBuffer As String, nSize as Long) _
As Long

lpBuffer is the user name.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top