Solved

How can I force an application to close

Posted on 1998-02-09
1
175 Views
Last Modified: 2011-04-14
I am working on some kind of kiosk program which gives access to MS Office.  When the time runs out, I want to close all applications. How can I kill an app no matter what ? Even if there are dialog boxes, etc... I tried WM_Destroy but it generates DR Watson errors.
0
Comment
Question by:ymailhot
1 Comment
 
LVL 5

Accepted Solution

by:
ronit051397 earned 50 total points
ID: 1358814
Close a notepad document:

SendMessage(FindWindow('notepad', nil), wm_Destroy, 0, 0);
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question