Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to prohibit User to start 2nd time the executable
Message
De
11/01/2002 02:40:04
 
 
À
11/01/2002 02:23:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00603363
Message ID:
00603366
Vues:
25
Here it goes, Petros
Local lnWinHandle
Declare Integer FindWindow In Win32API Integer, String 

lnWinHandle = FindWindow( 0, "Caption_of_your_App" )

If lnWinHandle # 0 
  =Messagebox( "Your app is alreay in use!", 16 )
  Cancel
Endif
HTH
Claudio Lassala
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform