BUG: RegQueryValueEx() Fails When lpValueName Is NULL
Article ID: 189782
Article Last Modified on 11/21/2006
APPLIES TO
- Microsoft Win32 Application Programming Interface, when used with:
- Microsoft Windows 98 Standard Edition
This article was previously published under Q189782
SYMPTOMS
When you are accessing a remote registry key and you pass NULL as the
second parameter to RegQueryValueEx, the function might fail.
RegQueryValueEx returns 14:
Not enough storage is available to complete this operation.
NOTE: Remote registry access is not supported on Windows Millennium (Me) Edition.
RESOLUTION
Pass the NULL string ("") as the second parameter to RegQueryValueEx().
STATUS
Microsoft 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.
Keywords: kbbug kbkernbase kbnofix kbregistry KB189782