Getting Network Login ID

Getting Network Login ID

How can I query the login name of a Novell user from VB?

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

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist