In ASP we can get the user by this:

sUser=Request.ServerVariables("AUTH_USER")

But how do I get the user in VB?

I have used the API Function,

Private Declare Function w32_WNetGetUser Lib "mpr.dll" Alias "WNetGetUserA" (ByVal lpName As String, ByVal lpUserName As String, lpnLength As Long) As Long

but this only gets the user name.

I want the domain and username (<domain>\<username>)

Any suggestions?

Vone