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"
19 #include "resource32.h"
25 /***********************************************************************
26 * GetMessageA (USER32.269)
28 BOOL USER32_GetMessageA(MSG32* lpmsg,DWORD hwnd,DWORD min,DWORD max)
32 ret=GetMessage(MAKE_SEGPTR(&msg),(HWND)hwnd,min,max);
33 STRUCT32_MSG16to32(&msg,lpmsg);
37 /***********************************************************************
38 * DispatchMessageA (USER32.140)
40 LONG USER32_DispatchMessageA(MSG32* lpmsg)
44 STRUCT32_MSG32to16(lpmsg,&msg);
45 ret=DispatchMessage(&msg);
46 STRUCT32_MSG16to32(&msg,lpmsg);
50 /***********************************************************************
51 * TranslateMessage (USER32.555)
53 BOOL USER32_TranslateMessage(MSG32* lpmsg)
56 STRUCT32_MSG32to16(lpmsg,&msg);
57 return TranslateMessage(&msg);
60 /***********************************************************************
63 BOOL32 PeekMessage32A( LPMSG32 lpmsg, HWND32 hwnd,
64 UINT32 min,UINT32 max,UINT32 wRemoveMsg)
68 ret=PeekMessage16(&msg,hwnd,min,max,wRemoveMsg);
69 /* FIXME: should translate the message to Win32 */
70 STRUCT32_MSG16to32(&msg,lpmsg);
74 /***********************************************************************
77 BOOL32 PeekMessage32W( LPMSG32 lpmsg, HWND32 hwnd,
78 UINT32 min,UINT32 max,UINT32 wRemoveMsg)
80 /* FIXME: Should perform Unicode translation on specific messages */
81 return PeekMessage32A(lpmsg,hwnd,min,max,wRemoveMsg);