Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I get current process Id or name which its owner is not system in c#?

thanks in advance
Posted
Comments
a.fatemeh 21-Jun-12 10:19am    
thank you but I don't mean this one, I know this method,my emphasis is on the owner i don't want to get svshost process,
when ever I run this method I get this one;

How about poking around: MSDN: Process.GetCurrentProcess Method [^]
 
Share this answer
 
Comments
DominicZA 21-Jun-12 10:05am    
What....there is a website like this on the internet 0_0..... :P 5*
Maciej Los 21-Jun-12 12:55pm    
Short and to the point!
+5
Quite simply, Im sure a simple Google search would have saved both of us time here:

C#
Process currentProcess = Process.GetCurrentProcess();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900