Home All Groups Group Topic Archive Search About

Monitor process creation

Author
1 Jul 2005 7:25 AM
Nikolay Petrov
How to monitor the startup of processes and eventualy stop them to run?

TIA

Author
1 Jul 2005 7:43 AM
Ken Tucker [MVP]
Hi,

        You will need to create a windows hook for that.
http://msdn.microsoft.com/msdnmag/issues/02/10/CuttingEdge/

Ken
-------------------
"Nikolay Petrov" <johnt***@mail.bg> wrote in message
news:1120202754.946445.254530@g49g2000cwa.googlegroups.com...
How to monitor the startup of processes and eventualy stop them to run?

TIA
Author
1 Jul 2005 8:34 AM
Nikolay Petrov
Thanks Ken
One porblem, the sample code is in C# and i have dificulties to convert
it to VB .NET
Author
1 Jul 2005 8:59 AM
Herfried K. Wagner [MVP]
"Nikolay Petrov" <johnt***@mail.bg> schrieb:
> One porblem, the sample code is in C# and i have dificulties to convert
> it to VB .NET

Converting code between .NET programming languages
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=languageconverters&lang=en>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
1 Jul 2005 1:34 PM
Nikolay Petrov
Ok, thanks Herfried
Author
1 Jul 2005 1:41 PM
Nikolay Petrov
Herfried,
According to this:
http://support.microsoft.com/default.aspx?scid=kb;en-us;319524#3
I can't use global hooks, correct?
I guess I need global hook to monitor process startup, right?
So this is not possible .NET?
Any workarounds?
Author
1 Jul 2005 1:50 PM
Herfried K. Wagner [MVP]
"Nikolay Petrov" <johnt***@mail.bg> schrieb:
> According to this:
> http://support.microsoft.com/default.aspx?scid=kb;en-us;319524#3
> I can't use global hooks, correct?
> I guess I need global hook to monitor process startup, right?
> So this is not possible .NET?

You are right.  I suggest to use VC++ to implement the hook.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>