BUG: WORDPAD/NOTEPAD for WIN95 Do Not Request Size of DEVMO

Last reviewed: March 11, 1997
Article ID: Q152380
4.00 WINDOWS 95 kbprint kbbuglist

The information in this article applies to:

  • Microsoft Windows 95 Device Driver Kit (DDK)

SUMMARY

Wordpad and Notepad for Windows 95 do not request the size of the DEVMODE structure when the printer driver is not the default driver.

MORE INFORMATION

When you change the default printer driver from the Print Setup dialog box in Wordpad or Notepad, do not request the size of the DEVMODE structure. Instead of calling the printer drivers ExtDeviceMode function with wMode = 0 first, and then calling ExtDeviceMode function with wMode = 10 (DM_COPY and DM_MODIFY), both Wordpad and Notepad call the ExtDeviceMode function with wMode = 10 directly.

This is incorrect. All applications are first required to request the size of DEVMODE structure and then call ExtDeviceMode with the DM_COPY and DM_MODIFY flags set.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional reference words: debugging print driver
KBCategory: kbprint kbbuglist
KBSubcategory: DDK DDKPRNT
Keywords : DDK DDKPRNT kbbuglist kbprint
Version : 4.00
Platform : WINDOWS


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 11, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.