Microsoft KB Archive/175333

{| The information in this article applies to:
 * width="100%"|
 * Microsoft Win32 Application Programming Interface (API) included with: - Microsoft Windows 95

SYMPTOMS
In certain circumstances, namely when you are accessing a remote registry key, passing NULL as the second parameter to RegQueryValueEx may cause that function to fail. In this case, GetLastError will return error 14:

Not enough storage is available to complete this operation

RESOLUTION
To workaround this, 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.

Steps to Reproduce Behavior
 Install Windows 95 on the client computer. Install Windows NT 4.0 on the server.  Enable the Remote Registry Service on the Windows 95 client. Please see the following Knowledge Base article for further information: ARTICLE-ID: Q141460 TITLE    : How to Install Remote Administration Services  Invoke RegConnectRegistry on the Windows 95 client computer to obtain a handle to a top-level key on the remote computer. Open a subkey via a call to RegOpenKeyEx. Attempt to read the default value of this key by passing NULL as the second parameter to RegQueryValueEx.

Results: RegQueryValueEx fails. GetLastError returns 14.
 * }

-

Last reviewed: October 20, 1997

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.