Search code examples
c++windowsprocesspid

ms c++ get pid of current process


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


Solution

  • The GetCurrentProcessId function will do this.