C++ – ms c++ get pid of current process

cpidprocesswindows

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

Best Answer

The GetCurrentProcessId function will do this.