Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Computers ID on a network
Message
From
24/01/2002 10:42:57
 
 
To
24/01/2002 06:43:15
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00609576
Message ID:
00609763
Views:
13
Check whether you can use the VFP function ANETRESOURCES() (it returns shared drives and printers, not the workstations).

-or-
better see the Platform SDK (WinAPI) function NetServerEnum

Platform SDK: Network Management
NetServerEnum

http://msdn.microsoft.com/library/en-us/netmgmt/ntlmapi2_1vl9.asp
...
servertype 
[in] Specifies a value that filters the server entries to return from the
enumeration. This parameter can be one or more of the following values.
Value                        Meaning 
SV_TYPE_WORKSTATION          All workstations 
...
(SV_TYPE_WORKSTATION is equal to 1)

If you have troubles with Platform SDK structures, there are many Classes you can use for creating the WinAPI structure string in VFP. (This includes our own PSDK.VCX - it is not like the other ones free)

Kind Regards
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Previous
Reply
Map
View

Click here to load this message in the networking platform