Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-02-2001, 03:50 PM
gpdsoft gpdsoft is offline
Senior Member
 
Join Date: Jan 2001
Posts: 108
Default How to Kill AnyOther Programs with Delphi?

How can I do to put off anyother program with Delphi? Please Help me!
Reply With Quote
  #2  
Old 01-02-2001, 04:04 PM
douglas douglas is offline
Senior Member
 
Join Date: Jul 2001
Posts: 7,695
Default RE: How to Kill AnyOther Programs with Delphi?

Find the handle of the window using FindWindow or EnumWindows and use
PostMessage(ProgramHandle, WM_CLOSE, 0, 0);

I have not tried it, but it should work fine.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 05:31 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2018, vBulletin Solutions, Inc.