0

Is there a way to see what programs are using a specific process in C#.

For example, if you're running multiple processes that are reliant upon the javaw process, is there a way to retreive their names?

  • 1
    What does it mean to be reliant on another process? – Hatted Rooster Sep 28 '16 at 10:20
  • You are after a parent process, perhaps? http://stackoverflow.com/questions/394816/how-to-get-parent-process-in-net-in-managed-way – Andez Sep 28 '16 at 10:25
  • Shouldn't be an issue, though may need `Windows Management Instrumentation` APIs. Simply get `All processes`, then the `loaded Dlls` in each process, to know the libraries invoking JVM, else JavaW.exe will be a separate process – Mrinal Kamboj Sep 28 '16 at 10:26
  • Thank you @Andez , your solution worked great! – Cyber Sausage Sep 28 '16 at 11:15

0 Answers0