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

Last reviewed: March 31, 1997
Article ID: Q150522

The information in this article applies to:
  • Microsoft Win32 Application Programming Interface (API) included with Microsoft Windows 95

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.


Additional query words: remote network list port permission
Keywords : GdiPrn kbgraphic
Version : 4.0
Platform : WINDOWS
Issue type : kbprb


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 31, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.