Detect Application Launch
-
I have a requirement to detect when an application is launched and to determine if the application was launched by an existing application. For example, when you create a new mail message in Outlook, Outlook actually launches a new application to allow you to edit & send the message. I can detect that a new application has been launched but there doesn't appear to be any way of determing that the application was launched by Outlook. Any suggestions? :confused:
-
I have a requirement to detect when an application is launched and to determine if the application was launched by an existing application. For example, when you create a new mail message in Outlook, Outlook actually launches a new application to allow you to edit & send the message. I can detect that a new application has been launched but there doesn't appear to be any way of determing that the application was launched by Outlook. Any suggestions? :confused:
Only undocumented solutions. MS don't provide us with documented solutions to this kind of "advanced" programming. My "best guess" is that you'd have to hook CreateProcess. Check out e.g. winternals for possible solutions (you won't like the effort needed).