Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to prohibit User to start 2nd time the executable
Message
From
11/01/2002 02:40:04
 
 
To
11/01/2002 02:23:14
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00603363
Message ID:
00603366
Views:
24
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform