Jim,
It's been a long time, but IIRC, the WNetGetUser API is the one you need:
Public Declare Function WNetGetUser Lib "mpr.dll" Alias "WNetGetUserA"
(ByVal lpName As String, ByVal lpUserName As String, lpnLength As Long) As
Long
When the call returns, the lpUserName will contain the user ID in the
following form: 'CN=USER'. All you need to do is strip out the 'CN=' part.
--
. . . . . . . . . . . . . . . . . . . . . .
Klaus H. Probst, MVP
http://www.vbbox.com/
Please post/reply to the newsgroup(s)
Quote:
> Hello......
> can anyone assist me in determining how to capture a users ID in a Netware
> 3.12 environment from within VB?
> Is it even possible?
> Thanks for your assistance in advance.
> Jim Longo