Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AARRGH!! How to get NETWORK GROUP info for your WIN95 pc
Message
De
20/05/1999 15:56:58
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00221098
Message ID:
00221132
Vues:
15
>Compadres,
>
>OK. You can use NetWkstaGetInfo in WIN32 API to get the
>network group for your pc. This works great on an NT Workstation pc.
>BUT running this on a WIN95 pc DOESN'T WORK.
>
>A similar call in FoxPro yields only the username. We still
>can't get the network group name.
>
>What API function or other FoxPro functions can be used to retrieve the network group info for an NT Workstation pc?
>
>How can I retrieve the lan group name?
>Sure, WKSTA_USER_INFO_1 data can be retrieved from an
>NT Workstation... but how the heck does WIN 95
>know what NT Server lan group it belongs to?
>

Groups. The user can be a member of multiple groups.

>Have been searching the MSDN where I get lots of ideas that
>ONLY WORK ON NT workstations...............but NEVER on
>WIN 95!!!!! AARRGH!
>

I'd try looking at the ADSI ActiveX components from Microsoft; I haven't tried to get the information via an API call from a Win9x station. You might also consider creating a COM object that runs on the server that you can talk to, but coding this isn't going to be trivial, since you'll likely need to use impersonation to get the group info unless the COM object runs in the context of an admin account.

>Ed Hill, Quest Telecom, Atlanta, edhill@bellsouth.net
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform