Function KillTask
Parameter tcWindowName

  Declare Integer FindWindow in Win32Api Integer, String
  Declare Integer PostMessage in Win32Api Integer, Integer, Integer, Integer

  #Define WM_CLOSE     16

  Local lnHwnd
  lnHwnd = FindWindow(0, tcWindowName)
  If lnHwnd = 0
    Return
  Endif
  PostMessage( m.lnHwnd, WM_CLOSE, 0, 0 )  

Return



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/d6610c2c57a944148aedd7974ec4b...@fpl5
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to