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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Who's logged on?

Status
Not open for further replies.

dds82

Programmer
Jun 5, 2002
251
US
If I have the name of a computer on the local network, can I find out who's currently logged on to that computer? All the computers run Windows NT Workstation 4.0.
 
You didn't mention which language you were writting in, I'll give it to you in C and if it's Delphi or VB you can get the example from my web site:


==========================================================
char ipBuffer[32];
unsigned long nSize = 100;
BOOL check = false;
//Gets the current user name, must include <winbase.h>
check = GetUserName(ipBuffer, &nSize);

//ipBuffer will contain the name

==========================================================
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top