>>
>>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=0000000427Yes, 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