Update the address of the Free Software Foundation.
[wine/gsoc_dplay.git] / dlls / user / winproc.h
blob3eefca6227c40fd097ed51af771ee07cd307007d
1 /*
2 * Window procedure callbacks definitions
4 * Copyright 1996 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef __WINE_WINPROC_H
22 #define __WINE_WINPROC_H
24 #include <stdarg.h>
26 #include "windef.h"
27 #include "winbase.h"
28 #include "wine/winbase16.h"
30 typedef LRESULT (*winproc_callback_t)( HWND hwnd, UINT msg, WPARAM wp, LPARAM lp,
31 LRESULT *result, void *arg );
32 typedef LRESULT (*winproc_callback16_t)( HWND16 hwnd, UINT16 msg, WPARAM16 wp, LPARAM lp,
33 LRESULT *result, void *arg );
35 extern WNDPROC16 WINPROC_GetProc16( WNDPROC proc, BOOL unicode );
36 extern WNDPROC WINPROC_AllocProc16( WNDPROC16 func );
37 extern WNDPROC WINPROC_GetProc( WNDPROC proc, BOOL unicode );
38 extern WNDPROC WINPROC_AllocProc( WNDPROC funcA, WNDPROC funcW );
39 extern BOOL WINPROC_IsUnicode( WNDPROC proc, BOOL def_val );
41 extern LRESULT WINPROC_CallProcAtoW( winproc_callback_t callback, HWND hwnd, UINT msg,
42 WPARAM wParam, LPARAM lParam, LRESULT *result, void *arg );
43 extern LRESULT WINPROC_CallProc16To32A( winproc_callback_t callback, HWND16 hwnd, UINT16 msg,
44 WPARAM16 wParam, LPARAM lParam, LRESULT *result, void *arg );
45 extern LRESULT WINPROC_CallProc32ATo16( winproc_callback16_t callback, HWND hwnd, UINT msg,
46 WPARAM wParam, LPARAM lParam, LRESULT *result, void *arg );
48 extern INT WINPROC_MapMsg16To32A( HWND hwnd, UINT16 msg16, WPARAM16 wParam16,
49 UINT *pmsg32, WPARAM *pwparam32,
50 LPARAM *plparam );
51 extern INT WINPROC_MapMsg32ATo16( HWND hwnd, UINT msg32,
52 WPARAM wParam32, UINT16 *pmsg16,
53 WPARAM16 *pwparam16, LPARAM *plparam );
55 extern INT_PTR WINPROC_CallDlgProc16( DLGPROC16 func, HWND16 hwnd, UINT16 msg, WPARAM16 wParam, LPARAM lParam );
56 extern INT_PTR WINPROC_CallDlgProcA( DLGPROC func, HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam );
57 extern INT_PTR WINPROC_CallDlgProcW( DLGPROC func, HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam );
59 /* Class functions */
60 struct tagCLASS; /* opaque structure */
61 struct tagWND;
62 extern void CLASS_RegisterBuiltinClasses(void);
63 extern void CLASS_AddWindow( struct tagCLASS *class, struct tagWND *win, BOOL unicode );
64 extern void CLASS_FreeModuleClasses( HMODULE16 hModule );
66 #endif /* __WINE_WINPROC_H */