PRB: Cannot Specify Multiple Port Names Under Windows 95

Last reviewed: November 6, 1996
Article ID: Q158361
The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK) for Windows 95, version 4.0

SYMPTOMS

SetPrinter fails when pPortName is set to multiple ports under Windows 95.

CAUSE

The use of multiple ports (printer pooling) is not supported under Windows 95.

WORKAROUND

If printer pooling is desired, Windows NT should be used. Otherwise, a single port should be specified under Windows 95.

STATUS

This behavior is by design.

MORE INFORMATION

The Win32 SDK documentation for PRINTER_INFO_2 states that multiple port names can be specified in the pPortName field. However, the documentation fails to state that this is only valid under Windows NT. Printers may not be connected to multiple ports under Windows 95.

SetPrinter will fail with error "#1796 - ERROR_UNKNOWN_PORT" if multiple ports are specified under Windows 95.


KBCategory: kbprint kbprb
KBSubcategory: GdiPrn
Additional reference words: 4.00 GetPrinter pool kbdsd



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: November 6, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.