【发布时间】:2012-03-21 16:45:10
【问题描述】:
在 c# 中这样做时
// get the current process
Process currentProcess = System.Diagnostics.Process.GetCurrentProcess();
我可以的
currentProcess.MainModule
c++中有没有类似的函数?
【问题讨论】:
-
你能提供更多关于你需要什么的信息吗?您想获取运行代码的位置,还是启动进程的主 .exe 的位置?