I’m using this code to get a list of current proccess.
For Each Proc As Process In ProcessList
Dim ProcessList As List(Of Process) = Process.GetProcesses.ToList
Dim Name As String = Proc.ProcessName
Dim Path As String = Proc.MainModule.FileName
Dim Icon As System.Drawing.Image = System.Drawing.Icon.ExtractAssociatedIcon(Path).ToBitmap
next
but I get an error on Dim Path As String = Proc.MainModule.FileName)
which I think is because I’m using 64bit OS.
Thanks in advance