VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Get the User Name of a person logged into a particular machine in Windows NT

by Kamlesh Santani (5 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Tue 5th December 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Get the User Name of a person logged into a particular machine in Windows NT

API Declarations



Dim counter As Long, s As String
Dim dl As Long

Rate Get the User Name of a person logged into a particular machine in Windows NT



s = String(counter, 0)

dl = GetComputerName(s, counter)
Text1.Text = Left(s, counter)     'gets the name of the user in a textbox 


Download this snippet    Add to My Saved Code

Get the User Name of a person logged into a particular machine in Windows NT Comments

No comments have been posted about Get the User Name of a person logged into a particular machine in Windows NT. Why not be the first to post a comment about Get the User Name of a person logged into a particular machine in Windows NT.

Post your comment

Subject:
Message:
0/1000 characters