Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How many users are on the system?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00198357
Message ID:
00200350
Vues:
11
>Stacy,
>
>A similar method but better I believe if you have the possibility of the same user name logging in at more than one workstations is to use the MachineName from the Registry for the network machine. Since you will be using Win 95/98/NT they all have to have a unique name on the network so therefore you won't have any user name collisions. Plus if the machine crashes it can quickly find the record in the INUSE.DBF table quickly using a locate. I license by the workstation and not by the user since it is unprobable that the user will be running two apps on the same machine. Record the MachineName into the INUSE.DBF table and then do a LOCATE to see if they are already logged in. When you exit you can FLAG the Record for Deletion. If the user crashed and comes back in they can find their record and then you will have a chance to know if they crashed or not. You could also set a flag in the registry for checking for crashes as well such as Windows does when not shut down properly.

The place that this fails is when multiple instances of the application are running from a single system.
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