怎么 根据pid取得程序窗体句柄
vb.net吧
全部回复
仅看楼主
level 2
suolong01 楼主
pid = Shell(TextBox1.Text)
新手 求帮助
找了好久无解啊!!!!
2014年12月21日 05点12分 1
level 12
'获取进程pid
Dim p As Integer = Shell(TextBox1.Text)
'获取进程id对应的句柄
Dim h As IntPtr = System.Diagnostics.Process.GetProcessById(p).Handle
'显示进程id和对应的句柄
Debug.Print(p)
Debug.Print(h.ToString)
2014年12月22日 01点12分 2
感谢[大拇指]
2014年12月22日 11点12分
level 12
mark下,有时间看一下。
2014年12月22日 12点12分 3
1