HKEY_PERFORMANCE_DATA

2003-08-14 Thread Jeffrey Altman
In case someone has time to look at RAND_poll().

Here is a new KB article describing restrictions which can be placed on 
Performance Data:

  http://support.microsoft.com/default.aspx?scid=kb;en-us;146906

--

This KB article explains why using performance data on NT4 SP6 would 
hang plus a workaround (use the Unicode version instead of the ANSI 
version):

  http://support.microsoft.com/default.aspx?scid=kb;en-us;226371

Therefore the call to RegQueryValueEx() must be replaced with 
RegQueryValueExW() and TEXT("Global") should be replaced with L"Global".

--

This KB article explains why exceptions may be thrown or why the data 
returned from a performance data call would be invalid:

  http://support.microsoft.com/default.aspx?scid=kb;en-us;178887

We may need to wrap calls probing HKEY_PERFORMANCE_DATA in an exception 
handling block.

Jeffrey Altman



smime.p7s
Description: S/MIME Cryptographic Signature


Re: HKEY_PERFORMANCE_DATA

2003-08-14 Thread Martin Kochanski
If we're going to try exception handling then I suppose that CreateToolhelp32Snapshot 
could be wrapped in a handler as well... although I'd still be worried that some 
internal bit of Windows could be left in a state as a result of the exception.


At 14:40 08/08/03 -0400, you wrote:
>In case someone has time to look at RAND_poll().
>
>
>Here is a new KB article describing restrictions which can be placed on 
>Performance Data:
>
>   http://support.microsoft.com/default.aspx?scid=kb;en-us;146906
>
>--
>
>This KB article explains why using performance data on NT4 SP6 would 
>hang plus a workaround (use the Unicode version instead of the ANSI 
>version):
>
>   http://support.microsoft.com/default.aspx?scid=kb;en-us;226371
>
>Therefore the call to RegQueryValueEx() must be replaced with 
>RegQueryValueExW() and TEXT("Global") should be replaced with L"Global".
>
>--
>
>This KB article explains why exceptions may be thrown or why the data 
>returned from a performance data call would be invalid:
>
>   http://support.microsoft.com/default.aspx?scid=kb;en-us;178887
>
>We may need to wrap calls probing HKEY_PERFORMANCE_DATA in an exception 
>handling block.
>
>Jeffrey Altman
>
>
>Attachment Converted: "D:\EudoraM\ATTACH\smime.p7s"
>
__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]


Re: HKEY_PERFORMANCE_DATA

2003-08-14 Thread Jeffrey Altman
If you read the knowledge base article you will see that the exceptions 
are caught properly on Win2000 and above.  However, on NT4 third party 
devices which plug-in to the performance engine did not always do the 
right thing and let exceptions slip out.  I think this is what is 
causing the crashes on some servers and not others.

There is still an issue of dependence on the COM engine.  Services 
employing OpenSSL must be loaded after the DCOM service has started.

Jeffrey Altman

Martin Kochanski wrote:

If we're going to try exception handling then I suppose that CreateToolhelp32Snapshot 
could be wrapped in a handler as well... although I'd still be worried that some 
> internal bit of Windows could be left in a state as a result of the 
exception.



smime.p7s
Description: S/MIME Cryptographic Signature