Solved

NT 4.0 - status of an application in running in background

Posted on 1998-10-22
6
131 Views
Last Modified: 2010-05-18
Hi

I have an annoying application on my windows nt 4.0 workstation running in the background. So now I am looking for an easy way to dedect an change in the state of this application (i.e. a new dialog, but unfortunately does not position himself to the visible front) within my own application (programmed with delphi 4.0).

Any hint is welcome.

Greetings, Rolf

0
Comment
Question by:rjufer
6 Comments
 
LVL 20

Expert Comment

by:Madshi
ID: 1343889
You could use SetWindowsHookEx(CBT_HOOK,...). But you'll have to put this into a DLL.   :-(

Regards, Madshi.
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1343890
sorry, don't understand q'n
0
 
LVL 8

Accepted Solution

by:
ZifNab earned 500 total points
ID: 1343891
rjufer,

Reject this if I'm wrong, but isn't this what you need?

It's a proces viewer, and I think that the status of a proces is stored in the proces information block... Isn't it?

http://www.wilsonc.demon.co.uk/Delphi%20Components/pviewer/pviewer.zip

Regards, Zif.

ps. nice other components for NT on this page too!
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 12

Expert Comment

by:rwilson032697
ID: 1343892
Did you write the other application. If so you could get it to send a windows message to your own application to tell it about the vhange in state.

0
 

Author Comment

by:rjufer
ID: 1343893
Thanks. I try it!

Rolf
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1343894
wwowowow Rolf,

 I didn't tried it out! As I said, 'reject if I'm wrong'. Why didn't you tried it out before answering this q'n....But normally you should be able to get the process state from the PIB.

Ok, still if it's not right, we'll ask Linda to get your points back.

Zif.
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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
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…

758 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

17 Experts available now in Live!

Get 1:1 Help Now