Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I get a list of computer names on a LAN
Message
 
To
21/06/1999 17:42:06
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00232181
Message ID:
00232424
Views:
15
>Wayne,
>
>Thanks for the info... I did give anetresources a try but I can't seem to get it to work. Here is the test code I used:
>
>*!* compname.prg
>DECLARE laNames [4,4]
>lnReturnCode=ANETRESOURCES(laNames,"\\workgroup",1)
>? lnReturnCode
>? laNames[1,1]
>
>
>It keeps setting lnReturnCode to 0 (no network resources found). The only thing I can think is that the second parameter ("\\workgroup") is incorrect. I used the workgroup name specified in network properties under the identification tab (WIN95) . Have you used anetresources successfully? TIA

Yes... but I gave it a Netware server name - it returned the SYS and VOL1 for the server.


Wayne
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform