Home All Groups Group Topic Archive Search About

What does Process.ProcessName exactly do?

Author
5 Nov 2005 9:09 PM
eXavier
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

Author
5 Nov 2005 11:26 PM
mos2128
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


Show quote
"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
Author
6 Nov 2005 11:15 AM
CT
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... ;-)

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk

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
Author
6 Nov 2005 4:41 PM
mos2128
CT;
it is and old habit, i realize now that i`m still doning the same :) thanks
for reminding me :)
--
Happy Coding
Muhanad YOUNIS
MCSD.NET / MCT
http://myounis.blogspirit.com

Be the first to know visit http://www.jordev.net


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
Author
6 Nov 2005 5:03 PM
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
Author
8 Nov 2005 9:11 AM
Peter Huang" [MSFT]
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.
Author
9 Nov 2005 1:39 AM
Peter Huang" [MSFT]
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.

AddThis Social Bookmark Button