views:

3141

answers:

2

Part of my application is in C++ under windows. I need the process id for the current process. Any thoughts?

+9  A: 

The GetCurrentProcessId function will do this.

Greg Hewgill
yup, that did it; funny how obscure this information is...
Bogdan Gavril
A: 

Why don't you use Google or MSDN for a such obvious thing like GetCurrentProcessId() ?!

this *is* what comes up when I google it
herbrandson