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 */
22 /***********************************************************************
23 * GetMessage32A (USER32.269)
25 BOOL32
GetMessage32A(MSG32
* lpmsg
,HWND32 hwnd
,UINT32 min
,UINT32 max
)
28 MSG16
*msg
= SEGPTR_NEW(MSG16
);
30 ret
=GetMessage16(SEGPTR_GET(msg
),(HWND16
)hwnd
,min
,max
);
32 STRUCT32_MSG16to32(msg
,lpmsg
);
37 /***********************************************************************
38 * GetMessage32W (USER32.273)
40 BOOL32
GetMessage32W(MSG32
* lpmsg
,HWND32 hwnd
,UINT32 min
,UINT32 max
)
43 MSG16
*msg
= SEGPTR_NEW(MSG16
);
45 ret
=GetMessage16(SEGPTR_GET(msg
),(HWND16
)hwnd
,min
,max
);
47 STRUCT32_MSG16to32(msg
,lpmsg
);
52 /***********************************************************************
55 BOOL32
PeekMessage32A( LPMSG32 lpmsg
, HWND32 hwnd
,
56 UINT32 min
,UINT32 max
,UINT32 wRemoveMsg
)
60 ret
=PeekMessage16(&msg
,hwnd
,min
,max
,wRemoveMsg
);
61 /* FIXME: should translate the message to Win32 */
62 STRUCT32_MSG16to32(&msg
,lpmsg
);
66 /***********************************************************************
69 BOOL32
PeekMessage32W( LPMSG32 lpmsg
, HWND32 hwnd
,
70 UINT32 min
,UINT32 max
,UINT32 wRemoveMsg
)
72 /* FIXME: Should perform Unicode translation on specific messages */
73 return PeekMessage32A(lpmsg
,hwnd
,min
,max
,wRemoveMsg
);