all groups > dotnet distributed apps > october 2006 >
You're in the

dotnet distributed apps

group:

Need to get notified when processes start.



Need to get notified when processes start. Ehsan
10/6/2006 9:26:01 AM
dotnet distributed apps: I have an application written in .NET that needs to know when programs are
started by Windows- in a system wide manner.

I tried WMI but that is not as reliable as Microsoft boasts. Sometimes it
doesn't work temporarily, and doesn't work at all on some PCs!

I then turned to Windows Hooks using SetWindowsHookEx function but it seems
that in .NET, it is only possible to hook to keyboard and mouse, and not
other kinds of functions! (is that true?)

Can anybody here provide any alternatives to these approaches, or can
anybody show me how I can use windows hooks for this purpose? I prefer not to
be forced to turn to WMI again.

RE: Need to get notified when processes start. Prabakar Samiyappan
11/8/2006 1:56:02 AM
Hi Ehsan,

Write a Windows Services -which will keep track of the application we can
make it to send a message when ever anybody start the application .Insatll
this service while instlling the application itself

Regards
Prabakar

[quoted text, click to view]
AddThis Social Bookmark Button