使用C#或vbnet获取进程句柄 [英] Get process handles using C# or vbnet

查看:200
本文介绍了使用C#或vbnet获取进程句柄的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





如何使用c#或vbnet获取流程句柄列表



喜欢proccess explorer



image: https:// s31。 postimg.org/z5usz1p6z/777.png [ ^ ]



我的尝试:



 对于 每个 p  As  Process  In  Process.GetProcesses 
ListBox1.Items.Add(p.ProcessName.ToString)
下一步

解决方案

嗯...你试过 Process.Handle Property(System.Diagnostics) [ ^ ] ...


< blockquote>是但没有结果:(,只是Process.Handle.Count(作为Int)


Hi,

How do I get the list of handles of process using c# or vbnet

like proccess explorer

image : https://s31.postimg.org/z5usz1p6z/777.png[^]

What I have tried:

For Each p As Process In Process.GetProcesses
    ListBox1.Items.Add(p.ProcessName.ToString)
Next

解决方案

Ummm...have you tried the Process.Handle Property (System.Diagnostics)[^] ...


yes but no result :( , just Process.Handle.Count (As Int)


这篇关于使用C#或vbnet获取进程句柄的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆