update for HEAD-2003091401
[reactos.git] / include / ntos / gditypes.h
1 /*
2  * COPYRIGHT:      See COPYING in the top level directory
3  * PROJECT:        ReactOS kernel
4  * FILE:           include/ntos/gditypes.h
5  * PURPOSE:        Common GDI definitions
6  * PROGRAMMER:     Eric Kohl <ekohl@rz-online.de>
7  * UPDATE HISTORY:
8  *                 25/06/2001: Created
9 */
10
11 #ifndef __INCLUDE_NTOS_GDITYPES_H
12 #define __INCLUDE_NTOS_GDITYPES_H
13
14 #ifndef __USE_W32API
15
16 #define CCHDEVICENAME   (32)
17 #define CCHFORMNAME     (32)
18
19 typedef struct _devicemodeA
20 {
21         BYTE dmDeviceName[CCHDEVICENAME];
22         WORD dmSpecVersion;
23         WORD dmDriverVersion;
24         WORD dmSize;
25         WORD dmDriverExtra;
26         DWORD dmFields;
27         union
28         {
29                 struct
30                 {
31                         short dmOrientation;
32                         short dmPaperSize;
33                         short dmPaperLength;
34                         short dmPaperWidth;
35                 };
36                 struct
37                 {
38                         LONG x;
39                         LONG y;
40                 } dmPosition;
41         };
42         short dmScale;
43         short dmCopies;
44         short dmDefaultSource;
45         short dmPrintQuality;
46         short dmColor;
47         short dmDuplex;
48         short dmYResolution;
49         short dmTTOption;
50         short dmCollate;
51         BYTE dmFormName[CCHFORMNAME];
52         WORD dmLogPixels;
53         DWORD dmBitsPerPel;
54         DWORD dmPelsWidth;
55         DWORD dmPelsHeight;
56         union
57         {
58                 DWORD dmDisplayFlags;
59                 DWORD dmNup;
60         };
61         DWORD dmDisplayFrequency;
62         DWORD dmICMMethod;
63         DWORD dmICMIntent;
64         DWORD dmMediaType;
65         DWORD dmDitherType;
66         union
67         {
68                 DWORD dmICCManufacturer;
69                 DWORD dmReserved1;
70         };
71         union
72         {
73                 DWORD dmICCModel;
74                 DWORD dmReserved2;
75         };
76         DWORD dmPanningWidth;
77         DWORD dmPanningHeight;
78 } DEVMODEA,*LPDEVMODEA,*PDEVMODEA;
79
80 typedef struct _devicemodeW
81 {
82         WCHAR dmDeviceName[CCHDEVICENAME];
83         WORD dmSpecVersion;
84         WORD dmDriverVersion;
85         WORD dmSize;
86         WORD dmDriverExtra;
87         DWORD dmFields;
88         union
89         {
90                 struct
91                 {
92                         short dmOrientation;
93                         short dmPaperSize;
94                         short dmPaperLength;
95                         short dmPaperWidth;
96                 };
97                 struct
98                 {
99                         LONG x;
100                         LONG y;
101                 } dmPosition;
102         };
103         short dmScale;
104         short dmCopies;
105         short dmDefaultSource;
106         short dmPrintQuality;
107         short dmColor;
108         short dmDuplex;
109         short dmYResolution;
110         short dmTTOption;
111         short dmCollate;
112         WCHAR dmFormName[CCHFORMNAME];
113         WORD dmLogPixels;
114         DWORD dmBitsPerPel;
115         DWORD dmPelsWidth;
116         DWORD dmPelsHeight;
117         union
118         {
119                 DWORD dmDisplayFlags;
120                 DWORD dmNup;
121         };
122         DWORD dmDisplayFrequency;
123         DWORD dmICMMethod;
124         DWORD dmICMIntent;
125         DWORD dmMediaType;
126         DWORD dmDitherType;
127         union
128         {
129                 DWORD dmICCManufacturer;
130                 DWORD dmReserved1;
131         };
132         union
133         {
134                 DWORD dmICCModel;
135                 DWORD dmReserved2;
136         };
137         DWORD dmPanningWidth;
138         DWORD dmPanningHeight;
139 } DEVMODEW,*LPDEVMODEW,*PDEVMODEW;
140
141 #endif /* !__USE_W32API */
142
143 #endif /* __INCLUDE_NTOS_GDITYPES_H */
144
145 /* EOF */