4 * Copyright 1995 Martin von Loewis
7 /* This file contains only wrappers to existing Wine functions or trivial
8 stubs. 'Real' implementations go into context specific files */
15 #include "stackframe.h"
24 /***********************************************************************
25 * GetMessageA (USER32.269)
27 BOOL USER32_GetMessageA(MSG32* lpmsg,DWORD hwnd,DWORD min,DWORD max)
31 ret=GetMessage(MAKE_SEGPTR(&msg),(HWND)hwnd,min,max);
32 STRUCT32_MSG16to32(&msg,lpmsg);
36 /***********************************************************************
37 * IsDialogMessageA (USER32.341)
39 BOOL IsDialogMessage32A(DWORD hwnd, MSG32* lpmsg)
42 STRUCT32_MSG32to16(lpmsg, &msg);
43 return IsDialogMessage(hwnd, &msg);
46 /***********************************************************************
47 * DispatchMessageA (USER32.140)
49 LONG USER32_DispatchMessageA(MSG32* lpmsg)
53 STRUCT32_MSG32to16(lpmsg,&msg);
54 ret=DispatchMessage(&msg);
55 STRUCT32_MSG16to32(&msg,lpmsg);
59 /***********************************************************************
60 * TranslateMessage (USER32.555)
62 BOOL USER32_TranslateMessage(MSG32* lpmsg)
65 STRUCT32_MSG32to16(lpmsg,&msg);
66 return TranslateMessage(&msg);
69 /***********************************************************************
72 BOOL32 PeekMessage32A( LPMSG32 lpmsg, HWND32 hwnd,
73 UINT32 min,UINT32 max,UINT32 wRemoveMsg)
77 ret=PeekMessage16(&msg,hwnd,min,max,wRemoveMsg);
78 /* FIXME: should translate the message to Win32 */
79 STRUCT32_MSG16to32(&msg,lpmsg);
83 /***********************************************************************
86 BOOL32 PeekMessage32W( LPMSG32 lpmsg, HWND32 hwnd,
87 UINT32 min,UINT32 max,UINT32 wRemoveMsg)
89 /* FIXME: Should perform Unicode translation on specific messages */
90 return PeekMessage32A(lpmsg,hwnd,min,max,wRemoveMsg);