msvcrt/tests: The tests must not include msvcrt.h because it contains declarations...
[wine/multimedia.git] / dlls / user32 / winproc.h
blob69b6d76814d0a035b0df3dd6a23180a4f5efc882
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_PTR WINPROC_CallDlgProc16( DLGPROC16 func, HWND16 hwnd, UINT16 msg, WPARAM16 wParam, LPARAM lParam );
49 extern INT_PTR WINPROC_CallDlgProcA( DLGPROC func, HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam );
50 extern INT_PTR WINPROC_CallDlgProcW( DLGPROC func, HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam );
52 #endif /* __WINE_WINPROC_H */