列舉所有process

        For Each p As Process In Process.GetProcesses()
            If p.ProcessName = "程式名稱" Then
                hProcessID = p.Id.ToString()
            End If
        Next

創作者介紹
創作者 隨心記憶 的頭像
小幻 微風

隨心記憶

小幻 微風 發表在 痞客邦 留言(0) 人氣( 20 )