Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Computers ID on a network
Message
De
24/01/2002 10:42:57
 
 
À
24/01/2002 06:43:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00609576
Message ID:
00609763
Vues:
12
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!

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform