>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