How do you retrieve the current username in a vb.net-application? (windows login username) In vb6 you declare this function in a module:
Declare Function Wnetgetuser Lib "mpr" Alias "WNetGetUserA" (ByVal lpName As String, ByVal lpUserName As String, lpnLength As Long) As Long
..and then you just call that function from your code, but I guess it doesn't work that way in vb.net
// Hugo
Declare Function Wnetgetuser Lib "mpr" Alias "WNetGetUserA" (ByVal lpName As String, ByVal lpUserName As String, lpnLength As Long) As Long
..and then you just call that function from your code, but I guess it doesn't work that way in vb.net
// Hugo