GetProcessByName WinXP problem...

R

Roger Meike

Hello,

I have a customer who is having problems running one of our applications.
It appears that it is failing on a call to GetProcessByName. The error is
"Process performance counter is disabled, so the requested operation cannot
be performed."
I have seen this discussed here and tried the fix described at
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q248993, but he has
no registry keys matching "Disable Performance Counters."

Is there another way that these counters could be disabled? How can we
re-enable it?

Thanks in advance,

-roger
 
T

Tian Min Huang

Hi Roger,

Thanks for your post. Since the Process Performance Counters are enable in
registry, based on my experience, another issue that will also cause this
problem is the missing of Counter and Help registry values in the registry
key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\009

The system shows the Counter registry value information extracted from
%SystemRoot%\system32\perfc009.dat file for English language. Similarly,
the system shows the Help registry value information extracted from
%SystemRoot%\system32\perfh009.dat file for English language.

If the perfc009.dat and perfh009.dat files are missing in
%SystemRoot%\system32 folder, then the above symptom can also be reproduced.

To resolve this symptom, either you could Export 009 registry key from a
good system that has the identical Operating System/Service Pack Level and
Import it into the bad system.

The following knowledge base article documents how to build performance
counter/help information from scratch, if the system is badly affected.

Q300956 - How to Manually Rebuild Performance Counter Library Values
http://support.microsoft.com/?id=300956

Please let me know the result.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
R

Roger Meike

Hello HuangTM.

Thank you for the information.

That procedure is pretty hairy to walk a customer through over the phone. I
was very uncomfortable suggesting that we do it at all. Thankfully, in the
process of trying to figure out if we wanted to try it or not, we discovered
that he was missing the perfc009.dat and perfh009.dat files. He did have
files named perfd009.dat and perfi009.dat... We just restored perfc009.dat
and perfh009.dat and everything started working fine. Any idea how those
can get deleted?? Any implications to our fix method?

Thanks again for the information. It looks as if we are up and running for
now.

Cheers,

-roger
 
T

Tian Min Huang

Hi Roger,

Thanks for yur response. I am very glad to hear that the problem was
resolved.
I am afraid that these files may be deleted by mistake or by a third-party
application.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top