How to Determine if a User is Connected to a Server
Keywords: mapped drives
Question:
Can you determine if you are connected ( and as who ) to a Novell server using the 32 bit Network extender?Answer:
It's easier with the Novell Extender - but then you have to be running the Novell Client.With the 32 bit Extender you can do it. The basic process is:
- Use DiskScan to get list of attached network drives.
- Using ItemCount and ItemExtract and a for look extract each drive on at a time.
- Use netGetCon to see what it is attached to. Use NetGetUser to see as who.
For example:
AddExtender("wwwnt34I.dll") ;for NT ;or AddExtender("www9534I.dll") ; for 95/98 netdrives=DiskScan(4) Count=ItemCount(netdrives,@tab) for xx=1 to count thisdrive=ItemExtract(xx,netdrives,@tab) map=wntGetCon(thisadrive) ; for NT ;OR map=w95GetCon(thisdrive) ; for 95/98 Message(thisdrive,map) nextQuestion (thread continued):
What if you are just connected to the Novell server with NO drives mapped? How can I figure out if the user is connected to a particular server but not necessarily have a drive mapped?Answer:
Probably with the w95Resources of the wntResources2 function you can determine what you need to know.
Article ID: W13529Filename: Determine if a User is Connected to a Server.txt