Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple Occurances
Message
De
14/05/1997 01:49:13
 
 
À
13/05/1997 23:02:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00032103
Message ID:
00032121
Vues:
43
>How do I eliminate the ability of a user to start multiple instances of my distributed foxpro program?
>Thanks
>Larry

This is my code
... Coming From VFUG NEWSLETTER ...


FUNCTION IsOpenApplication
**** Prévention de multiples appels de l'application
ENDIF
FUNCTION IsWindowOpen
LPARAMETER tcExeName
LOCAL lhWhandle,lIsYetOpen
DECLARE INTEGER FindWindow IN Win32Api STRING,STRING

lhWhandle=FindWindow(NULL,tcExeName)
IF lhWhandle#0
lIsYetOpen=.T.
ELSE
lIsYetOpen=.F.
ENDIF
RETURN lIsYetOpen

Hope this help
Michel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform