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.
source share