Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Discovering user name on NT network from FPW 2.5
Message
De
20/01/2001 02:32:05
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00465233
Message ID:
00466120
Vues:
12
>>All of our current users are running Win9x.
>
>Do your users log into Win9X or do they bypass user security?
>
>>
>>I guess I was wondering if there is a third party product I could purchase or perhaps an existing API I could call from within FPW.
>
>I don't think you can call API functions from FPW because of the difference in the 16 vs 32 bit. There may be an FLL converter for this but I'm not aware of of one. As for third-party products, since MS stopped supported FPW a year ago, if a vendor had one, my guess would be it would be out of production now and probably not available to the general public.
>
>Another suggestion would be to go to the DOS prompt and type SET to see all the environment variables. Check if there is one that contains the current user name. If so, use the GETENV() function to retrieve that value.

You can probably reach GetUserName() and GetComputerName() or GetNetworkParams() using FoxTools, but I have no idea what the FoxTools declaration would look like or the Win16 behavior.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform