Netware 3.12 user id 
Author Message
 Netware 3.12 user id

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



Sat, 29 May 2004 05:47:00 GMT  
 Netware 3.12 user id
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




Sat, 29 May 2004 14:25:47 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Users Long Name in netware 3.12

2. Users Full-Name in Netware 3.12

3. Help with VB 4-16bit/Access 2 on Netware 3.12

4. Jet database and novell netware 3.12

5. Netware 3.12 and VB4 drive logging problems

6. VB3 Netware 3.12 print queues and high school students

7. DDE over a Netware 3.12 Network

8. NetWare 3.12 userlist command - VB3 equivalent

9. Access DB On Netware 3.12

10. login with netware 3.12 and vb 3.0

11. Attach to a NetWare 3.12 server / Mapping network drives

12. User Login ID with NetWare

 

 
Powered by phpBB® Forum Software