Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This structure contains information about a printer environment and device initialization.
typedef struct_devicemode { BCHAR 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 ; BCHAR dmFormName[CCHFORMNAME] ; WORD dmLogPixels ; DWORD dmBitsPerPel ; DWORD dmPelsWidth ; DWORD dmPelsHeight ; DWORD dmDisplayFlags ; DWORD dmDisplayFrequency ; } DEVMODE;
Members
Value | Description |
---|---|
DMPAPER_LETTER | Letter, 8 1/2- by 11-inches |
DMPAPER_A4 | A4 Sheet, 210- by 297-millimeters |
Remarks
A device driver's private data follows the public portion of the DEVMODEstructure. The size of the public data can vary for different versions of the structure. The dmSizemember specifies the number of bytes of public data, and the dmDriverExtramember specifies the number of bytes of private data.
All unsupported members should be initialized to zero.
Requirements
Runs on | Versions | Defined in | Include | Link to |
---|---|---|---|---|
Windows CE OS | 2.0 and later | Wingdi.h |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
See Also