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

Retrieving Windows NT login Name 1

Status
Not open for further replies.

vinu77

Programmer
Jan 11, 2001
13
0
0
IN
Hi Buddy, Is it possible to retrieve windows NT login name form client machine in the domain. client os is windows 98. and server is NT server 4.0.

thanx
 
Use the GetUserName API. Here is the declaration . . .

Code:
Private Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long
- Jeff Marler B-)
 
There is a complete example in the FAQ section of the VB 5&6 forum.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top