Take a look at this blog entry:
Registering ATL Performance Counters on Vista and Server 2008
http://blogs.msdn.com/patricka/archi...rver-2008.aspx
--
Regards/Saludos,
Daniel Martín
Microsoft MVP Windows User Experience
"Ed" <> wrote in message
news:#...
> chas2209 wrote:
>> "Ed" <> wrote in message
>> news:e27$...
>>> Our software modifies HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
>>> NT\CurrentVersion\Perflib\009\Counter and help to add performance
>>> monitor counters. It has been working for years on XP. It does not work
>>> on Vista. To test, I tried to add a key to Perflib\009 but I got "Cannot
>>> to registry" dialog box. I tried to modify the permission and got
>>> "Invalid handle". I can add key to \Perflib but not \Perflib\009. I am
>>> logged in under administrator account.
>>>
>>> What's wrong and what's the solution?
>>>
>>> Thanks
>>
>>
>> Contact your software Author
>>
>> chas2209
>>
>>
>>
>
> Thanks but I am the software author and trying to debug it. The sforware
> (a DLL) gets invalid handle when writing to the registry but can read it
> fine. I try to add a test key under Perflib\009 using regedit but it gave
> me "Cannot write to regsitry". Trying to change the permission of
> Perflib\009 in regedit, gives Inavlid handle. I tried it with several
> other keys (including \Perflib itself) and all worked fine. What can be
> different with 009? All the permissions seem to be the same as any other.