Fix remaining signed/unsigned mismatches.
[wine.git] / dlls / gdi / thunk.c
blob1124ee5a9269e6ef756540d6691acdb9969dc64a
1 /*
2 * GDI 16-bit thunks
4 * Copyright 1996, 1997 Alexandre Julliard
5 * Copyright 1998 Ulrich Weigand
6 */
8 #include "windef.h"
9 #include "wingdi.h"
10 #include "wine/wingdi16.h"
11 #include "callback.h"
13 /* ### start build ### */
14 extern WORD CALLBACK THUNK_CallTo16_word_ll (FARPROC16,LONG,LONG);
15 extern WORD CALLBACK THUNK_CallTo16_word_llwl (FARPROC16,LONG,LONG,WORD,LONG);
16 extern WORD CALLBACK THUNK_CallTo16_word_wllwl(FARPROC16,WORD,LONG,LONG,WORD,LONG);
17 extern WORD CALLBACK THUNK_CallTo16_word_wwl (FARPROC16,WORD,WORD,LONG);
18 /* ### stop build ### */
21 /***********************************************************************
22 * THUNK_EnumObjects16 (GDI.71)
24 INT16 WINAPI THUNK_EnumObjects16( HDC16 hdc, INT16 nObjType,
25 GOBJENUMPROC16 func, LPARAM lParam )
27 DECL_THUNK( thunk, func, THUNK_CallTo16_word_ll );
28 return EnumObjects16( hdc, nObjType, (GOBJENUMPROC16)&thunk, lParam );
32 /*************************************************************************
33 * THUNK_EnumFonts16 (GDI.70)
35 INT16 WINAPI THUNK_EnumFonts16( HDC16 hdc, LPCSTR lpFaceName,
36 FONTENUMPROC16 func, LPARAM lParam )
38 DECL_THUNK( thunk, func, THUNK_CallTo16_word_llwl );
39 return EnumFonts16( hdc, lpFaceName, (FONTENUMPROC16)&thunk, lParam );
42 /******************************************************************
43 * THUNK_EnumMetaFile16 (GDI.175)
45 BOOL16 WINAPI THUNK_EnumMetaFile16( HDC16 hdc, HMETAFILE16 hmf,
46 MFENUMPROC16 func, LPARAM lParam )
48 DECL_THUNK( thunk, func, THUNK_CallTo16_word_wllwl );
49 return EnumMetaFile16( hdc, hmf, (MFENUMPROC16)&thunk, lParam );
53 /*************************************************************************
54 * THUNK_EnumFontFamilies16 (GDI.330)
56 INT16 WINAPI THUNK_EnumFontFamilies16( HDC16 hdc, LPCSTR lpszFamily,
57 FONTENUMPROC16 func, LPARAM lParam )
59 DECL_THUNK( thunk, func, THUNK_CallTo16_word_llwl );
60 return EnumFontFamilies16(hdc, lpszFamily, (FONTENUMPROC16)&thunk, lParam);
64 /*************************************************************************
65 * THUNK_EnumFontFamiliesEx16 (GDI.613)
67 INT16 WINAPI THUNK_EnumFontFamiliesEx16( HDC16 hdc, LPLOGFONT16 lpLF,
68 FONTENUMPROCEX16 func, LPARAM lParam,
69 DWORD reserved )
71 DECL_THUNK( thunk, func, THUNK_CallTo16_word_llwl );
72 return EnumFontFamiliesEx16( hdc, lpLF, (FONTENUMPROCEX16)&thunk,
73 lParam, reserved );
77 /**********************************************************************
78 * LineDDA16 (GDI.100)
80 void WINAPI LineDDA16( INT16 nXStart, INT16 nYStart, INT16 nXEnd,
81 INT16 nYEnd, LINEDDAPROC16 func, LPARAM lParam )
83 DECL_THUNK( thunk, func, THUNK_CallTo16_word_wwl );
84 LineDDA( nXStart, nYStart, nXEnd, nYEnd, (LINEDDAPROC)&thunk, lParam );