Win32 process notification
Win32 process notification
(OP)
I need to be able to fire a specified event based on the results of new processes starting on the system.
I suppose the real question is whether I can intercept new processes to determine if they meet certain criteria, so I can execute other commands based on the result.
Is this clear?????
TIA...
I suppose the real question is whether I can intercept new processes to determine if they meet certain criteria, so I can execute other commands based on the result.
Is this clear?????
TIA...





RE: Win32 process notification
RE: Win32 process notification
How?
What I want to do is create a simple process that will intercept all calls to the O/S to execute a program. Then, if the program being executed meets certain criteria execute a given command.
Example:
OnNewProcess(PID)
{
If (PID = "this process")
{
DoThisCommand();
}
}
RE: Win32 process notification
{
If (PID = "this process")
{
// send a user message to the class where you want
// DoThisCommand to be carried out
}
}
check out the MSDN document about WM_USER and how to use it.