|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
What does Process.ProcessName exactly do?Hello,
What exactly does property ProcessName on System.Diagnostics.Process object do? Especially regarding to performance counters? Which performance counters it updates? What if application references libraries which support performance counters but are not loaded into process? eXavier check here ;
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDiagnosticsProcessClassTopic.asp
http://msdn.microsoft.com/netframework/programming/bcl/faq/SystemDiagnosticsProcessFAQ.aspx http://www.gotdotnet.com/team/clr/bcl/TechArticles/techarticles/ProcessFAQ/FAQ.aspx hope these are enogh to make you make it :) -- Show quotePLEASE DO NOT FORGET TO RATE THE ANSWER happy coding Muhanad YOUNIS MCSD.NET / MCT "eXavier" wrote: > Hello, > What exactly does property ProcessName on System.Diagnostics.Process object > do? Especially regarding to performance counters? Which performance counters > it updates? What if application references libraries which support > performance counters but are not loaded into process? > > eXavier Muhanad,
Just wondering, but why are you adding "PLEASE DO NOT FORGET TO RATE THE ANSWER" to your signature? Are you posting from a Web based forum? Just curious... ;-) Show quote "mos2128" <mos2***@discussions.microsoft.com> wrote in message news:4339656C-B1F3-4ED9-A1A5-D1CC139FEC49@microsoft.com... > check here ; > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDiagnosticsProcessClassTopic.asp > > http://msdn.microsoft.com/netframework/programming/bcl/faq/SystemDiagnosticsProcessFAQ.aspx > > http://www.gotdotnet.com/team/clr/bcl/TechArticles/techarticles/ProcessFAQ/FAQ.aspx > > hope these are enogh to make you make it :) > > > -- > PLEASE DO NOT FORGET TO RATE THE ANSWER > happy coding > Muhanad YOUNIS > MCSD.NET / MCT > > > "eXavier" wrote: > >> Hello, >> What exactly does property ProcessName on System.Diagnostics.Process >> object >> do? Especially regarding to performance counters? Which performance >> counters >> it updates? What if application references libraries which support >> performance counters but are not loaded into process? >> >> eXavier CT;
it is and old habit, i realize now that i`m still doning the same :) thanks for reminding me :) -- Show quoteHappy Coding Muhanad YOUNIS MCSD.NET / MCT http://myounis.blogspirit.com Be the first to know visit http://www.jordev.net "mos2128" wrote: > check here ; > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDiagnosticsProcessClassTopic.asp > > http://msdn.microsoft.com/netframework/programming/bcl/faq/SystemDiagnosticsProcessFAQ.aspx > > http://www.gotdotnet.com/team/clr/bcl/TechArticles/techarticles/ProcessFAQ/FAQ.aspx > > hope these are enogh to make you make it :) > > > -- > PLEASE DO NOT FORGET TO RATE THE ANSWER > happy coding > Muhanad YOUNIS > MCSD.NET / MCT > > > "eXavier" wrote: > > > Hello, > > What exactly does property ProcessName on System.Diagnostics.Process object > > do? Especially regarding to performance counters? Which performance counters > > it updates? What if application references libraries which support > > performance counters but are not loaded into process? > > > > eXavier Thanks.
I've already read theese articles. I just got from them the fact that performance counters are handled from Process.ProcessName property. But I still want to know which performance counters. And, of course, how it handles the loading of libraries on which it wants perform performance counters update. eXavier Show quote "mos2128" wrote: > check here ; > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDiagnosticsProcessClassTopic.asp > > http://msdn.microsoft.com/netframework/programming/bcl/faq/SystemDiagnosticsProcessFAQ.aspx > > http://www.gotdotnet.com/team/clr/bcl/TechArticles/techarticles/ProcessFAQ/FAQ.aspx > > hope these are enogh to make you make it :) > > > -- > PLEASE DO NOT FORGET TO RATE THE ANSWER > happy coding > Muhanad YOUNIS > MCSD.NET / MCT > > > "eXavier" wrote: > > > Hello, > > What exactly does property ProcessName on System.Diagnostics.Process object > > do? Especially regarding to performance counters? Which performance counters > > it updates? What if application references libraries which support > > performance counters but are not loaded into process? > > > > eXavier Hi,
Currently I am researching the issue and we will reply here with more information as soon as possible. If you have any more concerns on it, please feel free to post here. Thanks for your understanding! Best regards, Peter Huang Microsoft Online Partner Support Get Secure! - www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights. Hi EXavier,
The call enumerates all registered perf counters on the system. They are loaded into the calling process. Each perf dll's open method is polled. The collect on each counter is polled for what objects it supports. Then the process counter dll is queried for running processes. The perf counters are not 'updated' They are simply opened and queried. Also, if a perf counter is registered properly on the system it is loaded and queried. Any malfunctioning counter or any counter that cannot work in the security context of the host process may exibit problems. This architecture has changed for Framework 2.0. 2.0 does not rely on perf counters for this method. Best regards, Peter Huang Microsoft Online Partner Support Get Secure! - www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights. |
|||||||||||||||||||||||