ReactOS  0.4.14-dev-831-gef8c9239
historic.c
Go to the documentation of this file.
1 /*
2  * reactos/lib/gdi32/misc/historic.c
3  *
4  * GDI32.DLL Stubs
5  *
6  * Apis that do basically nothing, but are here for backwards compatibility with older Windows
7  *
8  */
9 
10 #include <precomp.h>
11 
12 /*
13  * @implemented
14  */
15 BOOL
16 WINAPI
18  EMFINFO *pEMFInfo)
19 {
20  return FALSE;
21 }
22 
23 /*
24  * @implemented
25  */
26 BOOL
27 WINAPI
29  DWORD a1,
30  DWORD a2,
31  DWORD a3,
32  DWORD a4,
33  DWORD a5)
34 {
35  /* FIXME fix the prototype right */
36  return FALSE;
37 }
38 
39 /*
40  * @implemented
41  */
42 BOOL
43 WINAPI
45  DWORD a1,
46  DWORD a2,
47  DWORD a3,
48  DWORD a4)
49 {
50  /* FIXME fix the prototype right */
51  return FALSE;
52 }
53 
54 /*
55  * @implemented
56  */
57 BOOL
58 WINAPI
60  DWORD a1,
61  DWORD a2,
62  DWORD a3,
63  DWORD a4,
64  DWORD a5,
65  DWORD a6)
66 {
67  /* FIXME fix the prototype right */
68  return FALSE;
69 }
70 
71 /*
72  * @implemented
73  */
74 HBITMAP
75 WINAPI
77 {
78  /* Note Windows 2000/XP/VISTA always returns hbm */
79  return hbm;
80 }
81 
82 /*
83  * @implemented
84  */
85 HBRUSH
86 WINAPI
87 GdiConvertBrush(HBRUSH hbr)
88 {
89  /* Note Windows 2000/XP/VISTA always returns hbr */
90  return hbr;
91 }
92 
93 /*
94  * @implemented
95  */
96 HDC
97 WINAPI
99 {
100  /* Note Windows 2000/XP/VISTA always returns hdc */
101  return hdc;
102 }
103 
104 /*
105  * @implemented
106  */
107 HFONT
108 WINAPI
110 {
111  /* Note Windows 2000/XP/VISTA always returns hfont */
112  return hfont;
113 }
114 
115 /*
116  * @implemented
117  */
118 HPALETTE
119 WINAPI
120 GdiConvertPalette(HPALETTE hpal)
121 {
122  /* Note Windows 2000/XP/VISTA always returns hpal */
123  return hpal;
124 }
125 
126 /*
127  * @implemented
128  */
129 HRGN
130 WINAPI
131 GdiConvertRegion(HRGN hregion)
132 {
133  /* Note Windows 2000/XP/VISTA always returns hregion */
134  return hregion;
135 }
136 
137 /*
138  * @implemented
139  */
140 BOOL
141 WINAPI
143 {
144  /* Note Windows 2000/XP/VISTA always returns TRUE */
145  return TRUE;
146 }
147 
148 /*
149  * @implemented
150  */
151 BOOL
152 WINAPI
154 {
155  /* Note Windows 2000/XP/VISTA always returns TRUE */
156  return TRUE;
157 }
158 
159 
160 /*
161  * @implemented
162  */
163 VOID
164 WINAPI
166 {
167  /* it does do nothing */
168 }
169 
170 
171 /*
172  * @implemented
173  */
174 int
175 WINAPI
177  LPCSTR pPort,
178  WORD fwCapability,
179  LPSTR pOutput,
180  CONST DEVMODEA *pDevMode)
181 {
182  /* Note Windows 2000/XP/VISTA always returns -1 */
183  return -1;
184 }
185 
186 /*
187  * @implemented
188  */
189 int
190 WINAPI
192  LPCWSTR pPort,
193  WORD fwCapability,
194  LPWSTR pOutput,
195  CONST DEVMODEW *pDevMode)
196 {
197  /* Note Windows 2000/XP/VISTA always returns -1 */
198  return -1;
199 }
200 
201 /*
202  * @implemented
203  */
204 BOOL
205 WINAPI
207  INT nXOrg,
208  INT nYOrg,
209  LPPOINT lpPoint)
210 {
211  /* Note Windows 2000/XP/VISTA always returns FALSE */
212  return FALSE;
213 }
214 
215 /*
216  * @implemented
217  *
218  * GDIEntry 16
219  */
220 DWORD
221 WINAPI
223  LPDDRAWI_DDRAWSURFACE_LCL pDDSLcl1,
224  LPDDRAWI_DDRAWSURFACE_LCL pDDSLcl2)
225 {
226  /* Note Windows 2000/XP/VISTA always returns success */
227  return TRUE;
228 }
229 
230 /*
231  * @implemented
232  */
233 BOOL
234 WINAPI
236 {
237  /* Note Windows 2000/XP/VISTA always returns TRUE */
238  return TRUE;
239 }
240 
241 /*
242  * @implemented
243  */
244 HBRUSH
245 WINAPI
246 SelectBrushLocal(HBRUSH Currenthbm,
247  HBRUSH Newhbm)
248 {
249  return Newhbm;
250 }
251 
252 /*
253  * @implemented
254  */
255 HFONT
256 WINAPI
257 SelectFontLocal(HFONT Currenthfnt,
258  HFONT newhfnt)
259 {
260  return newhfnt;
261 }
262 
263 /*
264  * @implemented
265  */
266 HBRUSH
267 WINAPI
268 GdiGetLocalBrush(HBRUSH hbr)
269 {
270  return hbr;
271 }
272 
273 /*
274  * @implemented
275  */
276 HDC
277 WINAPI
279 {
280  return hdc;
281 }
282 
283 /*
284  * @implemented
285  */
286 HFONT
287 WINAPI
289 {
290  return hfont;
291 }
292 
BOOL WINAPI GdiSetAttrs(HDC hdc)
Definition: historic.c:142
#define TRUE
Definition: types.h:120
static const struct update_accum a3
Definition: msg.c:600
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
HPALETTE WINAPI GdiConvertPalette(HPALETTE hpal)
Definition: historic.c:120
BOOL WINAPI FixBrushOrgEx(HDC hDC, INT nXOrg, INT nYOrg, LPPOINT lpPoint)
Definition: historic.c:206
static HDC
Definition: imagelist.c:92
HDC WINAPI GdiGetLocalDC(HDC hdc)
Definition: historic.c:278
HBRUSH WINAPI GdiGetLocalBrush(HBRUSH hbr)
Definition: historic.c:268
HFONT WINAPI GdiGetLocalFont(HFONT hfont)
Definition: historic.c:288
HFONT WINAPI GdiConvertFont(HFONT hfont)
Definition: historic.c:109
static const struct update_accum a4
Definition: msg.c:2285
HDC WINAPI GdiConvertDC(HDC hdc)
Definition: historic.c:98
char * LPSTR
Definition: xmlstorage.h:182
int32_t INT
Definition: typedefs.h:56
BOOL WINAPI EngQueryEMFInfo(HDEV hdev, EMFINFO *pEMFInfo)
Definition: historic.c:17
DWORD WINAPI DdSwapTextureHandles(LPDDRAWI_DIRECTDRAW_LCL pDDraw, LPDDRAWI_DDRAWSURFACE_LCL pDDSLcl1, LPDDRAWI_DDRAWSURFACE_LCL pDDSLcl2)
Definition: historic.c:222
unsigned int BOOL
Definition: ntddk_ex.h:94
HRGN WINAPI GdiConvertRegion(HRGN hregion)
Definition: historic.c:131
const char * LPCSTR
Definition: xmlstorage.h:183
HBRUSH WINAPI SelectBrushLocal(HBRUSH Currenthbm, HBRUSH Newhbm)
Definition: historic.c:246
static HFONT hfont
HBRUSH WINAPI GdiConvertBrush(HBRUSH hbr)
Definition: historic.c:87
struct _DDRAWI_DDRAWSURFACE_LCL FAR * LPDDRAWI_DDRAWSURFACE_LCL
Definition: d3dhal.h:45
static const struct update_accum a2
Definition: msg.c:586
#define WINAPI
Definition: msvc.h:6
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
Definition: cookie.c:201
struct _DDRAWI_DIRECTDRAW_LCL FAR * LPDDRAWI_DIRECTDRAW_LCL
Definition: d3dhal.h:40
VOID WINAPI GdiSetServerAttr(HDC hdc, DWORD attr)
Definition: historic.c:165
HDC hdc
Definition: main.c:9
int WINAPI DeviceCapabilitiesExW(LPCWSTR pDevice, LPCWSTR pPort, WORD fwCapability, LPWSTR pOutput, CONST DEVMODEW *pDevMode)
Definition: historic.c:191
BOOL WINAPI GdiReleaseLocalDC(HDC hdc)
Definition: historic.c:235
static HDC hDC
Definition: 3dtext.c:33
HBITMAP WINAPI GdiConvertBitmap(HBITMAP hbm)
Definition: historic.c:76
HFONT WINAPI SelectFontLocal(HFONT Currenthfnt, HFONT newhfnt)
Definition: historic.c:257
_In_ HBITMAP hbm
Definition: ntgdi.h:2776
int WINAPI DeviceCapabilitiesExA(LPCSTR pDevice, LPCSTR pPort, WORD fwCapability, LPSTR pOutput, CONST DEVMODEA *pDevMode)
Definition: historic.c:176
BOOL WINAPI GdiPlayScript(DWORD a0, DWORD a1, DWORD a2, DWORD a3, DWORD a4, DWORD a5, DWORD a6)
Definition: historic.c:59
BOOL WINAPI GdiDeleteLocalDC(HDC hdc)
Definition: historic.c:153
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
static HBITMAP
Definition: button.c:44
static const struct update_accum a1
Definition: msg.c:578
WCHAR * LPWSTR
Definition: xmlstorage.h:184
BOOL WINAPI GdiPlayJournal(DWORD a0, DWORD a1, DWORD a2, DWORD a3, DWORD a4)
Definition: historic.c:44
_In_ HDEV hdev
Definition: winddi.h:3449
BOOL WINAPI GdiPlayDCScript(DWORD a0, DWORD a1, DWORD a2, DWORD a3, DWORD a4, DWORD a5)
Definition: historic.c:28
#define CONST
Definition: pedump.c:81