Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows NT Users and Groups
Message
 
À
30/08/2000 23:07:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00409329
Message ID:
00411495
Vues:
23
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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform