DOC: Error in DEVMODEW Structure

Last reviewed: January 8, 1997
Article ID: Q126125
The information in this article applies to:
  • Microsoft Win32 Device Development Kit (DDK) for Windows NT, version 3.5

SUMMARY

In the online documentation for the DEVMODEW structure, which is used for both Win32 display drivers and Win32 printer drivers, there is an error in the DEVMODEW structure in certain field sizes. The corrected structure should look like this:

   WCHAR  dmDeviceName[CCHDEVICENAME];
   WORD dmSpecVersion;
   WORD dmDriverVersion;
   WORD dmSize;
   WORD dmDriverExtra;
   DWORD dmFields;
   short dmOrientation;
   short dmPaperSize;
   short dmPaperLength;
   short dmPaperWidth;
   short dmScale;
   short dmCopies;
   short dmDefaultSource;
   short dmPrintQuality;
   short dmColor;
   short dmDuplex;
   short dmYResolution;
   short dmTTOption;
   short dmCollate;
   WCHAR  dmFormName[CCHFORMNAME];
   WORD   dmLogPixels;
   DWORD  dmBitsPerPel;
   DWORD  dmPelsWidth;
   DWORD  dmPelsHeight;
   DWORD  dmDisplayFlags;
   DWORD  dmDisplayFrequency;

The correct prototype for this structure can be found in WINGDI.H. The field functionality remains unchanged.

This documentation error is corrected in the Win32 DDK version 3.51 online documentation.


KBCategory: kbref kbdocerr kbdocfix
KBSubcategory:
Additional reference words: 3.50 3.51 docerr


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