Question:
How can I query the login name of a Novell user from VB?
Answer:
Try this:
un$ = space(255)unsize% = len(un$)a = WNetGetUser(un, unsize)MsgBox trim(un)The WNetGetUser API declaration is:
Declare Function WNetGetUser Lib "wfwnet.drv" (ByVal szUser As String, nBufferSize As Integer) As Integer