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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!