~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Wine Cross Reference
wine/dlls/user.exe16/user_private.h

Version: ~ [ wine-1.5.30 ] ~ [ wine-1.5.29 ] ~ [ wine-1.5.28 ] ~ [ wine-1.5.27 ] ~ [ wine-1.5.26 ] ~ [ wine-1.5.25 ] ~ [ wine-1.5.24 ] ~ [ wine-1.5.23 ] ~ [ wine-1.5.22 ] ~ [ wine-1.5.21 ] ~ [ wine-1.5.20 ] ~ [ wine-1.5.19 ] ~ [ wine-1.5.18 ] ~ [ wine-1.5.17 ] ~ [ wine-1.5.16 ] ~ [ wine-1.5.15 ] ~ [ wine-1.5.14 ] ~ [ wine-1.5.13 ] ~ [ wine-1.5.12 ] ~ [ wine-1.5.11 ] ~ [ wine-1.5.10 ] ~ [ wine-1.5.9 ] ~ [ wine-1.5.8 ] ~ [ wine-1.5.7 ] ~ [ wine-1.4.1 ] ~ [ wine-1.5.6 ] ~ [ wine-1.5.5 ] ~ [ wine-1.5.4 ] ~ [ wine-1.5.3 ] ~ [ wine-1.5.2 ] ~ [ wine-1.5.1 ] ~ [ wine-1.5.0 ] ~ [ wine-1.4 ] ~ [ wine-1.4-rc6 ] ~ [ wine-1.4-rc5 ] ~ [ wine-1.4-rc4 ] ~ [ wine-1.4-rc3 ] ~ [ wine-1.4-rc2 ] ~ [ wine-1.4-rc1 ] ~ [ wine-1.3.37 ] ~ [ wine-1.3.36 ] ~ [ wine-1.3.35 ] ~ [ wine-1.3.34 ] ~ [ wine-1.3.33 ] ~ [ wine-1.3.32 ] ~ [ wine-1.3.31 ] ~ [ wine-1.3.30 ] ~ [ wine-1.3.29 ] ~ [ wine-1.3.28 ] ~ [ wine-1.3.27 ] ~ [ wine-1.3.26 ] ~ [ wine-1.3.25 ] ~ [ wine-1.3.24 ] ~ [ wine-1.3.23 ] ~ [ wine-1.3.22 ] ~ [ wine-1.3.21 ] ~ [ wine-1.3.20 ] ~ [ wine-1.3.19 ] ~ [ wine-1.3.18 ] ~ [ wine-1.2.3 ] ~ [ wine-1.3.17 ] ~ [ wine-1.3.16 ] ~ [ wine-1.3.15 ] ~ [ wine-1.3.14 ] ~ [ wine-1.3.13 ] ~ [ wine-1.3.12 ] ~ [ wine-1.3.11 ] ~ [ wine-1.3.10 ] ~ [ wine-1.3.9 ] ~ [ wine-1.2.2 ] ~ [ wine-1.3.8 ] ~ [ wine-1.3.7 ] ~ [ wine-1.3.6 ] ~ [ wine-1.3.5 ] ~ [ wine-1.2.1 ] ~ [ wine-1.3.4 ] ~ [ wine-1.3.3 ] ~ [ wine-1.3.2 ] ~ [ wine-1.3.1 ] ~ [ wine-1.3.0 ] ~ [ wine-1.2 ] ~ [ wine-1.2-rc7 ] ~ [ wine-1.2-rc6 ] ~ [ wine-1.2-rc5 ] ~ [ wine-1.2-rc4 ] ~ [ wine-1.2-rc3 ] ~ [ wine-1.2-rc2 ] ~ [ wine-1.2-rc1 ] ~ [ wine-1.1.44 ] ~ [ wine-1.1.43 ] ~ [ wine-1.1.42 ] ~ [ wine-1.1.41 ] ~ [ wine-1.1.40 ] ~ [ wine-1.1.39 ] ~ [ wine-1.1.38 ] ~ [ wine-1.1.37 ] ~ [ wine-1.1.36 ] ~ [ wine-1.1.35 ] ~ [ wine-1.1.34 ] ~ [ wine-1.1.33 ] ~ [ wine-1.1.32 ] ~ [ wine-1.1.31 ] ~ [ wine-1.1.30 ] ~ [ wine-1.1.29 ] ~ [ wine-1.1.28 ] ~ [ wine-1.1.27 ] ~ [ wine-1.1.26 ] ~ [ wine-1.1.25 ] ~ [ wine-1.1.24 ] ~ [ wine-1.1.23 ] ~ [ wine-1.1.22 ] ~ [ wine-1.1.21 ] ~ [ wine-1.1.20 ] ~ [ wine-1.1.19 ] ~ [ wine-1.1.18 ] ~ [ wine-1.1.17 ] ~ [ wine-1.1.16 ] ~ [ wine-1.1.15 ] ~ [ wine-1.1.14 ] ~ [ wine-1.1.13 ] ~ [ wine-1.1.12 ] ~ [ wine-1.1.11 ] ~ [ wine-1.1.10 ] ~ [ wine-1.1.9 ] ~ [ wine-1.1.8 ] ~ [ wine-1.1.7 ] ~ [ wine-1.0.1 ] ~ [ wine-1.1.6 ] ~ [ wine-1.1.5 ] ~ [ wine-1.1.4 ] ~ [ wine-1.1.3 ] ~ [ wine-1.1.2 ] ~ [ wine-1.1.1 ] ~ [ wine-1.1.0 ] ~ [ wine-1.0 ] ~

  1 /*
  2  * USER private definitions
  3  *
  4  * Copyright 1993, 2009 Alexandre Julliard
  5  *
  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.
 10  *
 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.
 15  *
 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
 19  */
 20 
 21 #ifndef __WINE_USER_PRIVATE_H
 22 #define __WINE_USER_PRIVATE_H
 23 
 24 #include <stdarg.h>
 25 #include "windef.h"
 26 #include "winbase.h"
 27 #include "wingdi.h"
 28 #include "winuser.h"
 29 #include "winreg.h"
 30 #include "winternl.h"
 31 #include "wine/windef16.h"
 32 
 33 /* Wow handlers */
 34 
 35 /* the structures must match the corresponding ones in user32 */
 36 struct wow_handlers16
 37 {
 38     LRESULT (*button_proc)(HWND,UINT,WPARAM,LPARAM,BOOL);
 39     LRESULT (*combo_proc)(HWND,UINT,WPARAM,LPARAM,BOOL);
 40     LRESULT (*edit_proc)(HWND,UINT,WPARAM,LPARAM,BOOL);
 41     LRESULT (*listbox_proc)(HWND,UINT,WPARAM,LPARAM,BOOL);
 42     LRESULT (*mdiclient_proc)(HWND,UINT,WPARAM,LPARAM,BOOL);
 43     LRESULT (*scrollbar_proc)(HWND,UINT,WPARAM,LPARAM,BOOL);
 44     LRESULT (*static_proc)(HWND,UINT,WPARAM,LPARAM,BOOL);
 45     DWORD   (*wait_message)(DWORD,const HANDLE*,DWORD,DWORD,DWORD);
 46     HWND    (*create_window)(CREATESTRUCTW*,LPCWSTR,HINSTANCE,BOOL);
 47     LRESULT (*call_window_proc)(HWND,UINT,WPARAM,LPARAM,LRESULT*,void*);
 48     LRESULT (*call_dialog_proc)(HWND,UINT,WPARAM,LPARAM,LRESULT*,void*);
 49     void    (*free_icon_param)(ULONG_PTR);
 50 };
 51 
 52 struct wow_handlers32
 53 {
 54     LRESULT (*button_proc)(HWND,UINT,WPARAM,LPARAM,BOOL);
 55     LRESULT (*combo_proc)(HWND,UINT,WPARAM,LPARAM,BOOL);
 56     LRESULT (*edit_proc)(HWND,UINT,WPARAM,LPARAM,BOOL);
 57     LRESULT (*listbox_proc)(HWND,UINT,WPARAM,LPARAM,BOOL);
 58     LRESULT (*mdiclient_proc)(HWND,UINT,WPARAM,LPARAM,BOOL);
 59     LRESULT (*scrollbar_proc)(HWND,UINT,WPARAM,LPARAM,BOOL);
 60     LRESULT (*static_proc)(HWND,UINT,WPARAM,LPARAM,BOOL);
 61     DWORD   (*wait_message)(DWORD,const HANDLE*,DWORD,DWORD,DWORD);
 62     HWND    (*create_window)(CREATESTRUCTW*,LPCWSTR,HINSTANCE,BOOL);
 63     HWND    (*get_win_handle)(HWND);
 64     WNDPROC (*alloc_winproc)(WNDPROC,BOOL);
 65     struct tagDIALOGINFO *(*get_dialog_info)(HWND,BOOL);
 66     INT     (*dialog_box_loop)(HWND,HWND);
 67     ULONG_PTR (*get_icon_param)(HICON);
 68     ULONG_PTR (*set_icon_param)(HICON,ULONG_PTR);
 69 };
 70 
 71 extern struct wow_handlers32 wow_handlers32 DECLSPEC_HIDDEN;
 72 
 73 extern HWND create_window16(CREATESTRUCTW*,LPCWSTR,HINSTANCE,BOOL) DECLSPEC_HIDDEN;
 74 extern void free_module_classes(HINSTANCE16) DECLSPEC_HIDDEN;
 75 extern void register_wow_handlers(void) DECLSPEC_HIDDEN;
 76 extern void WINAPI UserRegisterWowHandlers( const struct wow_handlers16 *new,
 77                                             struct wow_handlers32 *orig );
 78 
 79 static inline HWND WIN_Handle32( HWND16 hwnd16 )
 80 {
 81     return wow_handlers32.get_win_handle( (HWND)(ULONG_PTR)hwnd16 );
 82 }
 83 
 84 typedef LRESULT (*winproc_callback_t)( HWND hwnd, UINT msg, WPARAM wp, LPARAM lp,
 85                                        LRESULT *result, void *arg );
 86 typedef LRESULT (*winproc_callback16_t)( HWND16 hwnd, UINT16 msg, WPARAM16 wp, LPARAM lp,
 87                                          LRESULT *result, void *arg );
 88 
 89 extern WNDPROC16 WINPROC_GetProc16( WNDPROC proc, BOOL unicode ) DECLSPEC_HIDDEN;
 90 extern WNDPROC WINPROC_AllocProc16( WNDPROC16 func ) DECLSPEC_HIDDEN;
 91 extern LRESULT WINPROC_CallProc16To32A( winproc_callback_t callback, HWND16 hwnd, UINT16 msg,
 92                                         WPARAM16 wParam, LPARAM lParam, LRESULT *result, void *arg ) DECLSPEC_HIDDEN;
 93 extern LRESULT WINPROC_CallProc32ATo16( winproc_callback16_t callback, HWND hwnd, UINT msg,
 94                                         WPARAM wParam, LPARAM lParam, LRESULT *result, void *arg ) DECLSPEC_HIDDEN;
 95 
 96 extern void call_WH_CALLWNDPROC_hook( HWND16 hwnd, UINT16 msg, WPARAM16 wp, LPARAM lp ) DECLSPEC_HIDDEN;
 97 
 98 #define GET_WORD(ptr)  (*(const WORD *)(ptr))
 99 #define GET_DWORD(ptr) (*(const DWORD *)(ptr))
100 
101 #define WM_SYSTIMER 0x0118
102 
103 /* Dialog info structure (must match the user32 one) */
104 typedef struct tagDIALOGINFO
105 {
106     HWND      hwndFocus;   /* Current control with focus */
107     HFONT     hUserFont;   /* Dialog font */
108     HMENU     hMenu;       /* Dialog menu */
109     UINT      xBaseUnit;   /* Dialog units (depends on the font) */
110     UINT      yBaseUnit;
111     INT       idResult;    /* EndDialog() result / default pushbutton ID */
112     UINT      flags;       /* EndDialog() called for this dialog */
113 } DIALOGINFO;
114 
115 #define DF_END  0x0001
116 #define DF_OWNERENABLED 0x0002
117 
118 /* HANDLE16 <-> HANDLE conversions */
119 #define HINSTANCE_16(h32)  (LOWORD(h32))
120 #define HINSTANCE_32(h16)  ((HINSTANCE)(ULONG_PTR)(h16))
121 
122 extern HICON16 get_icon_16( HICON icon ) DECLSPEC_HIDDEN;
123 extern HICON get_icon_32( HICON16 icon16 ) DECLSPEC_HIDDEN;
124 
125 extern DWORD USER16_AlertableWait DECLSPEC_HIDDEN;
126 extern WORD USER_HeapSel DECLSPEC_HIDDEN;
127 
128 #endif /* __WINE_USER_PRIVATE_H */
129 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.