Is there a Windows message that I can connect with when the application starts?

I want to know when any application will start. Is there a Windows message where I can set the hook to know exactly when this will happen?

+4
source share
2 answers

If the survey is not a problem, you can use one of the approaches described in the answers to the corresponding question:

C # Process Monitor

The proposed solutions use the WMI or Windows process tracking mechanism.

+2
source

The first message sent to new windows is WM_NCCREATE . But this has nothing to do with the process itself, what do I suspect you are asking? By definition, โ€œwindow messagesโ€ will only begin to arrive after the window is created (using CreateWindowEx or something else), but this can happen after the process starts.

You do not say which language / frame you are using. In VC ++, etc. You can simply use any gaps for the WinMain function. For VB, this would be the Main function in the module.

+1
source

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


All Articles