How To Troubleshoot Remote Registry Access on Windows 95/98

Article translations Article translations
Article ID: 193463 - View products that this article applies to.
This article was previously published under Q193463
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

On This Page

SYMPTOMS

This article describes several problems that can occur with remote registry access when one or more of the computers involved is running Microsoft Windows 95 or Microsoft Windows 98.

NOTE: Remote registry access is not supported on Windows Millenium Edition.

MORE INFORMATION

RegConnectRegistry() Fails with ERROR_ACCESS_DENIED

To troubleshoot this problem:
  1. Make sure that the Remote Administration Services are installed on each of the Windows 95 or Windows 98 computers involved. For additional information, please see the following article in the Microsoft Knowledge Base:
    141460 How to Install Remote Administration Services
  2. On the remote machine that you are trying to connect to, make sure that remote administration is enabled. To check this, go to the Control Panel, open the Passwords dialog box, click the Remote Administration tab, and make sure the Enable Remote Administration check box is selected.
  3. If the remote computer that you are trying to connect to is configured for user-level security, make sure that you are listed as a remote administrator. To check this, go to the Control Panel, open the Passwords dialog box, click the Remote Administration tab, and make sure you are listed in the Administrators list box.

RegConnectRegistry() Fails with ERROR_BAD_NETPATH

To troubleshoot this problem:
  1. Make sure that the Remote Administration Services are installed on each of the Windows 95 or Windows 98 computers involved. For additional information, please see the following article in the Microsoft Knowledge Base:
    141460 How to Install Remote Administration Services
  2. On the remote computer that you are trying to connect to, make sure that remote administration is enabled. To check this, go to the Control Panel, open the Passwords dialog box, click the Remote Administration tab, and make sure the Enable Remote Administration check box is selected.
  3. Make sure the computers are communicating through the same network protocol (for example, TCP/IP).
  4. If you fail to connect to a remote Windows 9x registry after connecting to a remote Windows NT registry, try installing the IPX/SPX network protocol alongside the TCP/IP protocol, please see the following article in the Microsoft Knowledge Base:
    193464 BUG: Windows 95/98 Fails to Connect to other Win 95/98 Registry

RegQueryInfoKey() returns incorrect data

To troubleshoot this problem:
  1. You should allocate a buffer twice as large as cbMaxSubKeyLen when accessing a remote Windows 95 or Windows 98 registry. When connected to a remote Windows 95 or Windows 98 registry, the cbMaxSubKeyLen parameter receives only half the actual length of the longest subkey of hKey. For additional information, please see the following article in the Microsoft Knowledge Base:
    193465 BUG: RegQueryInfoKey Returns Length Div 2 for cbMaxSubKeyLen
  2. When connected to a remote Windows NT registry, the size returned in cbMaxSubKeyLen includes the final NULL character, even though the API reference says it does not. This should not cause any serious problems, because it usually means that the allocated buffer is one byte too large. It can be a problem if strings are being compared based solely on buffer size.
NOTE: Item number two was a documentation error. The API behaves in this manner by design on Windows 95. The documents will be updated to reflect this in future releases of Visual Studio.

Properties

Article ID: 193463 - Last Review: October 10, 2013 - Revision: 3.2
APPLIES TO
  • Microsoft Win32 Application Programming Interface, when used with:
    • Microsoft Windows 95
    • Microsoft Windows 98 Standard Edition
Keywords: 
kbnosurvey kbarchive kbhowto kbkernbase kbregistry KB193463

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com