File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Killing a process by name using WMI in C/C++

karthik deepak
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im trying to kill a process by name. I have used the msdn example code of
killing a process by pid. I wrote a method to get the pid using the name of
the process, and its working fine till i get the pid and store it in a
variable called ProcId.
The problem is how do i include the ProcId in the method call::::::
I have done it like this

and it says error C2110: '+' : cannot add two pointers

It works fine when the pid is harcoded like this:

Here is my code...

I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic