Getting Network Login ID

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
Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: