PRB: Trouble Enumerating a Remote Server's Ports in Windows 95 (150522)



The information in this article applies to:

  • Microsoft Win32 Application Programming Interface (API), when used with:
    • Microsoft Windows 95

This article was previously published under Q150522

SYMPTOMS

In Windows 95, when a valid remote server name is specified in the first parameter, the EnumPorts API fails and GetLastError reports error 0x87 (Invalid Parameter). The EnumPorts API succeeds in enumerating local ports when NULL is passed as the first parameter.

CAUSE

By design, the built-in print providers in Windows 95 do not support remote enumeration of ports.

RESOLUTION

Alternate print providers can be installed that do support remote enumeration of ports. For information on creation and installation of print providers in Windows 95, see the Windows 95 DDK.

STATUS

This behavior is by design.

This behavior is by design.

Modification Type:MinorLast Reviewed:3/21/2005
Keywords:kbgraphic kbprb KB150522