Solved

Catch ANY windows message...

Posted on 1998-09-01
1
142 Views
Last Modified: 2010-04-04
How can I catch ANY windows message (whit a delphi application of course)??? not just the messages sent to the delphi app., i need it for catch all the active app. in the system!.

For examplem how to catch the message sent from Windows to MS. Word to close his window (WM_QUIT)
0
Comment
Question by:migue77
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
BoRiS earned 70 total points
ID: 1338419
migue77

Use the SetWindowsHookEx API call

example
SetWindowsHookEx(WH_CALLWNDPROC, somedll.dll, nil, 0);

this isn't a working example but the hook procedure.....
check the win32 help file for mre details

Later
BoRiS
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Intraweb download file link ? 1 168
Microsoft Access 97 and Delphi XE2 9 74
Firemonkey Queue list 1 32
SQL Server Express automatically execute SQL or SP 8 37
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 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