Solved

How can I force an application to close

Posted on 1998-02-09
1
172 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
Comment Utility
Close a notepad document:

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

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now