正文的一部分来源于书籍和官方网站的网络摘录。
GetCurrentProcess ()方法获取“新的Process组件”并将其与“当前活动”进程相关联。
返回到流程
anewprocesscomponentassociatedwiththeprocessresourcethatisrunningthecallingapplication .与由APP应用程序调用的正在运行的流程资源相关联的PPP
usethismethodtocreateanewprocessinstanceandassociateitwiththeprocessresourceonthelocalcomputer。
使用此方法创建新的Process类实例,并将其与本地计算机上的进程资源相关联。
但是,GetCurrentProcess ()方法本身不会“启动”或调用被查询进程资源的进程。
GetCurrentProcess ()方法主要用于“获取在本地计算机上运行的进程的进程资源”。
如果不想获取在所有计算机上运行的进程