The information in this article applies to:
SYMPTOMSWhen you are accessing a remote registry key and you pass NULL as the second parameter to RegQueryValueEx, the function might fail. RegQueryValueEx returns 14:
RESOLUTIONPass the NULL string ("") as the second parameter to RegQueryValueEx(). STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATIONIn the VC++ 4.2 Help documentation, the entry for the 2nd parameter passed to RegQueryValueEx reads: lpszValueName Points to a null-terminated string specifying the name of the subkey of hkey for which a text string is retrieved. If lpszValueName is NULL or points to an empty string, RegQueryValueEx retrieves the value of hkey.The VC++ 5.0 documentation does not mention anything about passing NULL or "" as the second parameter to RegQueryValueEx(). Steps to Reproduce the Behavior
Additional query words:
Keywords : kbKernBase kbRegistry |
Last Reviewed: January 13, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |