The information in this article applies to:
SYMPTOMS
Changing the redirection of an MS-DOS LPT device that is used by Windows
fails. This problem occurs when using the WNetCancelConnection and
WNetAddConnection functions to change a previously-redirected LPT port.
Although the functions succeed and Windows reports the new device
redirection, any Windows printer driver using the device continues to print
to the original remote printer.
RESOLUTION
To work around this problem, do not use WNetAddConnection and MS-DOS
devices to connect Windows printer drivers to network print shares.
Instead, configure Windows printers to use print shares directly via
network ports. This behavior is accomplished by using the Print Spooler
functions: OpenPrinter, GetPrinter, SetPrinter, ClosePrinter, EnumPorts,
and AddPort. Continue to use the WNet functions in Windows to redirect
MS-DOS devices for MS-DOS applications.
Q152551 How to Connect Local Printers to Network Print Shares STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available. Additional query words:
Keywords : kbnetwork kbAPI kbSDKPlatform kbWinOS95bug kbWNet kbGrpNet |
Last Reviewed: January 6, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |