BUG: RegQueryInfoKey Returns Length Div 2 for cbMaxSubKeyLen (193465)
The information in this article applies to:
- Microsoft Win32 Application Programming Interface (API), when used with:
- the operating system: Microsoft Windows 95
- the operating system: Microsoft Windows 98
This article was previously published under Q193465 SYMPTOMS
If a Microsoft Windows 95 or Microsoft 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.
NOTE: Remote registry access is not supported on Windows Millenium Edition.
RESOLUTION
Until this bug is fixed, it is best to allocate a buffer twice as large as
cbMaxSubKeyLen.
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.
REFERENCES
For additional information, please see the following article in the
Microsoft Knowledge Base:
193463 HOWTO: Troubleshoot Remote Registry Access on Windows 95/98
Modification Type: | Major | Last Reviewed: | 4/13/2004 |
---|
Keywords: | kbBug kbKernBase kbnofix kbRegistry KB193465 |
---|
|