locked
Get All Process Description RRS feed

  • Question

  • Hello,

    I need to get description of all running processes. I am using this code

     

     For Each p As Process In Process.GetProcesses
    
          Try
    
            Dim ProcessFile = FileVersionInfo.GetVersionInfo(p.MainModule.FileName)
    
    
    
            ListBox1.Items.Add(ProcessFile.FileDescription)
            '
          Catch ex As System.ComponentModel.Win32Exception
    
            If ex.Message = "Access is denied" Then
    
            Else
    
              'error handling
    
            End If
    
          End Try
    
        Next
    

    but it gives me only part of processes - I need to get all process descriptions from all users.

     

    how can I do this?

     

     

    Thursday, March 17, 2011 8:53 PM

Answers

All replies