How can I capture all application / window messages from the beginning of the process?

I am trying to figure out how I can capture all the window messages of a process / window since it started in C #. This process would not be my own, so I would have to use some kind of hook. My goal is to start collecting all messages in real time from the moment the original window was created until the applications exit and all messages are displayed in a text box or file. So, basically since application execution.

Since I want to capture it from the moment it starts, I probably won’t have a window handle, as it will not be processed yet. Therefore, I believe that this can be difficult.

Is their an app that does this that I can use for reference? I want all messages to come in the application.

+2
source share
1 answer

My goal is to start collecting all messages in real time with the initial creation of a window, to exit applications and display all messages in a text field or file.

It looks like you want Real-Time to track the activity of the registry, file system, process, etc.

Process Monitor does all this already, and you can connect to it using EasyHook

Since I want to capture it from the moment it is launched, I probably won’t have a window handle since they aren’t there yet. So I can be difficult.

Code Project , , . , . http://www.codeproject.com/Articles/11985/Hooking-the-native-API-and-controlling-process-cre

, Dll.

+1

Source: https://habr.com/ru/post/1655844/


All Articles