BUG: DeletePrinter on Remote Printers Causes GPFs

Last reviewed: May 24, 1996
Article ID: Q151076
The information in this article applies to:
  • Microsoft Win32 Application Programming Interface included with: Microsoft Windows 95

SYMPTOMS

The DeletePrinter function in Windows 95 causes a General Protection Fault (GPF) if the printer is opened by specifying a UNC pathname.

Note that calling DeletePrinter on remote printers in Windows 95 is not supported. However, DeletePrinter should fail the call rather than cause a General Protection Fault.

RESOLUTION

Do not call DeletePrinter in Windows 95 on a printer handle that was opened by specifying a UNC path in the OpenPrinter function.

Applications should check the version of the operating system and prevent DeletePrinter from being called when the application is running on Windows 95 and the target printer is specified by a UNC path.

STATUS

Microsoft 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 reference words: 4.00 Crash failure Spool32 GPF gp gp-f
KBCategory: kbprg kbbuglist
KBSubcategory: GdiPrn



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