Are there any built in commands for hooking changes in processes in .NET?

  • Thread starter Christian Blackburn
  • Start date
C

Christian Blackburn

Hi Gang,
I would like to be able to hook the OS to return when a new processes is
created or destroyed and when a process changes priority levels. Does
someone know if there's an easy to do that in .NET or whether I should just
use the Windows API instead?
Thanks in Advance,
Christian Blackburn
 
H

Herfried K. Wagner [MVP]

* "Christian Blackburn said:
I would like to be able to hook the OS to return when a new processes is
created or destroyed and when a process changes priority levels. Does
someone know if there's an easy to do that in .NET or whether I should just
use the Windows API instead?

You will have to use pinvoke. A sample for setting up a global keyboard
hook can be found here:

<http://www.developer.com/net/net/article.php/11087_2193301_1>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top