Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
List Of Win 2000 Users
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00569636
Message ID:
00570032
Vues:
33
>One other question;
>
>Any way to determine the domain name[s] programmatically?
>
>Thanks

Yes, you can create an instance of the NT namespace object and query its members for all domains present.
ons = createobject('WinNTNamespace')
for each ox in ons
	if upper(ox.Class) = "DOMAIN" then
		* add your code here
	endif
endfor
Note: If your system is connected to a WAN with a number of trusted domains spread over a wide geographic area, you will be waiting for a long time. ;-)

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform