실행중인 프로세스 가져오기

Imports System.Diagnostics

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Dim plist() As Process = Process.GetProcesses()

        For Each prs As Process In plist

            ListBox1.Items.Add(prs.ProcessName + "         (" + prs.PrivateMemorySize64.ToString() + ")")

            'ListBox1.Items.Add(prs.MainWindowTitle + "  /     (" + prs.PrivateMemorySize64.ToString() + ")")

        Next

    End Sub

End Class

이 게시물을

공유하기

SEARCH

MENU NAVIGATION