ms c++ 获取当前进程的pid [英] ms c++ get pid of current process
本文介绍了ms c++ 获取当前进程的pid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的应用程序的一部分在 windows 下使用 C++.我需要当前进程的进程 ID.有什么想法吗?
Parts of my application are in C++ under windows. I need the process id for the current process. Any thoughts?
推荐答案
GetCurrentProcessId
函数将执行此操作.
The GetCurrentProcessId
function will do this.
这篇关于ms c++ 获取当前进程的pid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文