Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows NT Users and Groups
Message
 
To
30/08/2000 23:07:15
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00409329
Message ID:
00411495
Views:
22
I right-clicked on the Network icon on my desktop and under the Identification tab it shows:

Computer Name: Bob
Workgroup: Work1

(Yeah, I know, real creative).

When I use:

oUser = GETOBJECT("WinNT://Bob/Lance,User")

It takes a while the first time, but it eventually works.

When I use:

oUser = GETOBJECT("WinNT://Work1/Bob/Lance,User")

It works immediately.

Then when I did:

oNet = CREATEOBJECT("WScript.NetWork")
lcDomainName = oNet.UserDomain

it set lcDomainName = "Bob", but shouldn't it have set it to "Work1" instead?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform