Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List Of Win 2000 Users
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00569636
Message ID:
00570032
Views:
34
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform