Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stopping a process
Message
 
 
To
03/08/2010 12:45:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01029879
Message ID:
01475006
Views:
44
>>
>>Looks like you have something I can try to utilize for my purpose.
>
>
>This is another flavour - you need the hwnd of the top level window - or you can use FindWindow() if you know its caption - or part of the caption
>
>http://www.atoutfox.org/articles.asp?ACTION=FCONSULTER&ID=0000000427

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?
#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)
	
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform