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.
Daniel Martín [MVP] wrote:
> 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" <Ed@no.Email> wrote in message
> news:#w6m0pzKKHA.4004@TK2MSFTNGP05.phx.gbl...
>> chas2209 wrote:
>>> "Ed" <Ed@no.Email> wrote in message
>>> news:e27$VuxKKHA.1380@TK2MSFTNGP02.phx.gbl...
>>>> 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.
>
--
Regards/Saludos,
Daniel Martín
Microsoft MVP Windows Desktop Experience
"Ed" <Ed@no.Email> wrote in message
news:#jaUpE9KKHA.4316@TK2MSFTNGP04.phx.gbl...
> Thanks. This is exactly what I was looking for.
>
>
> Daniel Martín [MVP] wrote:
>> 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" <Ed@no.Email> wrote in message
>> news:#w6m0pzKKHA.4004@TK2MSFTNGP05.phx.gbl...
>>> chas2209 wrote:
>>>> "Ed" <Ed@no.Email> wrote in message
>>>> news:e27$VuxKKHA.1380@TK2MSFTNGP02.phx.gbl...
>>>>> 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.
>>