• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 143
  • Last Modified:

NT 4.0 - status of an application in running in background

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
rjufer
Asked:
rjufer
1 Solution
 
MadshiCommented:
You could use SetWindowsHookEx(CBT_HOOK,...). But you'll have to put this into a DLL.   :-(

Regards, Madshi.
0
 
ZifNabCommented:
sorry, don't understand q'n
0
 
ZifNabCommented:
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
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
rwilson032697Commented:
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
 
rjuferAuthor Commented:
Thanks. I try it!

Rolf
0
 
ZifNabCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now