How do you expect us to tell you how to fix it when you don't show us anything you're doing?
This is like calling a car mechanic on the phone and saying "My car doesn't work. How do I fix it?" How could you expect him to know without more info or being able to see the car?
We shouldn't have to pull your teeth to get basic information about the problem out of you.
That is a strange error, alright. I don't know why it's not finding GetProcessId.
You're using GetProcessId wrong anyway. You pass it a handle, not a filename. This should be giving you a compiler error (but I would think it'd be a different error than the one you're getting -- so I don't really know what's going on with that)
If you want to look up another process by its name you have to find its handle first. Here's a page I found which seems to show how to do that: