HTFC Forums

H.T.F.C.

How To Fix Computers





Go Back   HTFC Forums > Software Newsgroups > Windows Vista

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-01-2009, 04:47 PM
Ed
Guest
 
Posts: n/a
Default Registry problem

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
Reply With Quote
Sponsored Links
Fix your Windows Problems - FAST.
FREE Safe Scan Registry Check. Locate & Fix Errors in Minutes!
  #2  
Old 09-02-2009, 02:27 PM
Ed
Guest
 
Posts: n/a
Default Re: Registry problem

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.

>

Reply With Quote
  #3  
Old 09-02-2009, 10:16 PM
Daniel Martín [MVP]
Guest
 
Posts: n/a
Default Re: Registry problem

You're welcome, Ed.

--
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.

>>

Reply With Quote
Sponsored Links
Fix your Windows Problems - FAST.
FREE Safe Scan Registry Check. Locate & Fix Errors in Minutes!
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Registry Problem! anthocology Windows Vista 1 01-22-2009 11:13 AM
Registry Problem Power_Dr Windows XP Installation 2 01-30-2008 02:25 AM
Registry problem Len Cuff Windows Vista 12 12-26-2007 07:37 PM
registry problem richard Windows Vista 3 12-09-2007 05:44 PM
Registry problem ysva Windows XP 5 05-28-2007 06:36 PM


All times are GMT. The time now is 06:37 AM.


Powered by vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
© 2004 - 2007 Web-S-Sense Pty. Ltd. Usenet and forums posts © their respective authors.
Ad Management by RedTyger