Microsoft KB Archive/158361

{|
 * width="100%"|

PRB: Cannot Specify Multiple Port Names Under Windows 95

 * }

Q158361

4.00 WINDOWS kbprint kbprb

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK), used with:
 * Microsoft Windows 95

-

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

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

CAUSE
The use of multiple ports (printer pooling) is not supported 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 fails with the following error message if multiple ports are specified under Windows 95. :


 * 1) 1796 - ERROR_UNKNOWN_PORT

Additional query words: 4.00 GetPrinter pool kbdsd

Keywords : kbSDKWin32 kbOSWin95 kbDSupport

Issue type : kbprb

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch