通过WMI列出Windows系统进程(VB.net)

类别:.NET开发 点击:0 评论:0 推荐:

        Dim cmicWmi As New System.Management.ManagementObjectSearcher("SELECT * FROM Win32_Process")

 

        For Each cmicWmiObj As ManagementObject In cmicWmi.Get

            ListBox1.Items.Add("Service: " + cmicWmiObj("Name") + " FilePath: " + cmicWmiObj("ExecutablePath"))

        Next

本文地址:http://com.8s8s.com/it/it43708.htm