Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stopping a process
Message
De
03/08/2010 12:52:43
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01029879
Message ID:
01475007
Vues:
49
>
>Yes, I did it - but it seems like it behaves the same as close in the right corner of the screen, as my question - do you want to close application, is now asked.
>
>In other words, what exactly does this code simulate?

It sends a WM_CLOSE as if you wanted to close the app with the closebox

Why all the hassle ? Bypass your question for the tests - or better - click via taskbar - no code needed

>
>#define PROCESS_ALL_ACCESS (0x000F0000 + 0x00100000 + 0x0FFF)
>
>#define WM_CLOSE                  0x0010
>
>DECLARE INTEGER FindWindow ;
>IN WIN32API STRING cNull, STRING cWinName
>
>	declare integer PostMessage in user32.dll long, long, long, long
>	
>
>LOCAL lnHwnd
>lnHwnd = FindWindow(0,'SysManager 9.0.00')	
>	
>=PostMessage(lnHWnd, WM_CLOSE, 0, 0)
>	
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform