This is the function: (Got it from msdn)
link to code:Code:
But for the handle, how do I do this. Do I use a varible like HANDLE hand = somthing. And how do I get the process handle. I think I can get it but I need to know what it looks like and so on.