Get the current PID program under windows

Use getpid () on the line in the POSIX, the Baidu search to know how to use, but in Windows Meizhe.

In Windows To use int _getpid ( void);

Of course, the need to include header file #include <process.h>

 

 

Guess you like

Origin www.cnblogs.com/castor-xu/p/11972925.html