Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple Occurances
Message
From
14/05/1997 01:49:13
 
 
To
13/05/1997 23:02:08
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00032103
Message ID:
00032121
Views:
45
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform