The information in this article applies to:
SYMPTOMSIf a Windows 95 or Windows 98 computer is connected to a remote Windows 95 or Windows 98 registry and hKey is a handle to an open key in that remote registry, RegQueryInfoKey( hKey, ..., &cbMaxSubKeyLen, ... ) returns only half the actual length of the longest subkey of hKey. RESOLUTIONUntil this bug is fixed, it is best to allocate a buffer twice as large as cbMaxSubKeyLen. 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 INFORMATIONSteps to Reproduce BehaviorBefore reproducing this problem, you must make sure that the Remote Administration Services is installed on both Windows 95 or Windows 98 computers. Verify that Microsoft Remote Registry is installed by selecting Network from the Control Panel and scrolling through the list of installed components. For additional information, please see the following article in the Microsoft Knowledge Base:Q141460 HOWTO: Install Remote Administration ServicesCompile and run the following program from a command prompt on a Windows 95 or Windows 98 computer and pass a parameter identifying another Windows 95 or Windows 98 computer. The reported length of the longest subkey will be half the actual length of that subkey. Sample Code
REFERENCESFor additional information, please see the following article in the Microsoft Knowledge Base: Q193463 HOWTO: Troubleshoot Remote Registry Access on Windows 95/98 Additional query words:
Keywords : kbKernBase kbRegistry kbWinOS95bug kbWinOS98bug |
Last Reviewed: January 10, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |