Removed the obsolete DIBTexture surface class.
[wine.git] / dlls / user / thunk.c
blobf16648c4db378ca46abaca5e148a02a321e8ab86
1 /*
2 * USER 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/winuser16.h"
11 #include "callback.h"
13 /* ### start build ### */
14 extern WORD CALLBACK THUNK_CallTo16_word_wl (FARPROC16,WORD,LONG);
15 extern WORD CALLBACK THUNK_CallTo16_word_wlw (FARPROC16,WORD,LONG,WORD);
16 /* ### stop build ### */
19 /*******************************************************************
20 * EnumWindows16 (USER.54)
22 BOOL16 WINAPI EnumWindows16( WNDENUMPROC16 func, LPARAM lParam )
24 DECL_THUNK( thunk, func, THUNK_CallTo16_word_wl );
25 return EnumWindows( (WNDENUMPROC)&thunk, lParam );
29 /**********************************************************************
30 * EnumChildWindows16 (USER.55)
32 BOOL16 WINAPI EnumChildWindows16( HWND16 parent, WNDENUMPROC16 func, LPARAM lParam )
34 DECL_THUNK( thunk, func, THUNK_CallTo16_word_wl );
35 return EnumChildWindows( parent, (WNDENUMPROC)&thunk, lParam );
39 /**********************************************************************
40 * THUNK_EnumTaskWindows16 (USER.225)
42 BOOL16 WINAPI THUNK_EnumTaskWindows16( HTASK16 hTask, WNDENUMPROC16 func,
43 LPARAM lParam )
45 DECL_THUNK( thunk, func, THUNK_CallTo16_word_wl );
46 return EnumTaskWindows16( hTask, (WNDENUMPROC16)&thunk, lParam );
50 /***********************************************************************
51 * THUNK_EnumProps16 (USER.27)
53 INT16 WINAPI THUNK_EnumProps16( HWND16 hwnd, PROPENUMPROC16 func )
55 DECL_THUNK( thunk, func, THUNK_CallTo16_word_wlw );
56 return EnumProps16( hwnd, (PROPENUMPROC16)&thunk );
60 /***********************************************************************
61 * THUNK_GrayString16 (USER.185)
63 BOOL16 WINAPI THUNK_GrayString16( HDC16 hdc, HBRUSH16 hbr,
64 GRAYSTRINGPROC16 func, LPARAM lParam,
65 INT16 cch, INT16 x, INT16 y,
66 INT16 cx, INT16 cy )
68 DECL_THUNK( thunk, func, THUNK_CallTo16_word_wlw );
69 if (!func)
70 return GrayString16( hdc, hbr, NULL, lParam, cch, x, y, cx, cy );
71 else
72 return GrayString16( hdc, hbr, (GRAYSTRINGPROC16)&thunk, lParam, cch,
73 x, y, cx, cy );