Link to home
Start Free TrialLog in
Avatar of Smout
Smout

asked on

Program Not Responding

I'd like my program to check whether my other Program is Not Responding
How can I do this ?
Avatar of jaywalk
jaywalk

You could send a message to it, and see if it responds.

How to do that? (slightly trickier)

1. Save the hWnd property of your main window in the registry.
2. use SendMessage(hWnd, <Some message>,0,0)
3. get it to send a message back.

I'm afraid I don't actually know how to do this, but I know it is possible (which is why this is a comment rather than an answer)
Avatar of Smout

ASKER

does findwindow work on a not responding app ?
ASKER CERTIFIED SOLUTION
Avatar of SiriusP
SiriusP

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Smout

ASKER

tricky, but it works just fine, tnx