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
NetServerEnumPlatform SDK: Network Management
NetServerEnumhttp://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!