How to get the instance of a running process ?
-
I want to get an instance of a running process and thruogh that instance I want to call its members in my application. Noor
-
I want to get an instance of a running process and thruogh that instance I want to call its members in my application. Noor
Play with System.Diagnostics i think you will get from this namespace
Thanks and Regards Sandeep
-
I want to get an instance of a running process and thruogh that instance I want to call its members in my application. Noor
You could use the mutex object. An example to check if you have already running an instance of your application can be found here : http://blog.svencipido.be/Blog/PermaLink,guid,49328c9e-45d5-4dc2-be61-081f13bf4f95.aspx
-
I want to get an instance of a running process and thruogh that instance I want to call its members in my application. Noor
You can get the instance of currently running thread through System.Threading.Thread.CurrentThread but i dont think you can call its members a thread may contain several classes, functions etc. So i am not very much optimistic. You can dig deeper into that... Regards, Wasif Ehsan.
-
I want to get an instance of a running process and thruogh that instance I want to call its members in my application. Noor
Hello!
wrote:
I want to get an instance of a running process
using System.Diagnostics; Your process would be: Process myprocess = Process.GetCurrentProcess() Process where you know the name: Process[] someprocesspername = Process.GetProcessesByName("xxx");
wrote:
and thruogh that instance I want to call its members in my application
Don't think this is posible that way! All the best, Martin