apiGetUserName
I'm very new to asp, so bear with me. I'm beginning to create a department web site for my work using dreamweaver and asp 3.0
I also create access databases. I use this bit of code in my access database to obtain the user's login ID from their machine.
Function fOSUserName() As String
' Returns the network login name
Dim lngLen As Long, lngX As Long
Dim strUserName As String
strUserName = String$(254, 0)
lngLen = 255
lngX = apiGetUserName(strUserName, lngLen)
If (lngX > 0) Then
fOSUserName = Left$(strUserName, lngLen - 1)
Else
fOSUserName = vbNullString
End If
End Function
Is there a similar function available for asp 3.0?
|