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 */
20 /***********************************************************************
21 * GetMessage32A (USER32.269)
23 BOOL32 WINAPI
GetMessage32A(MSG32
* lpmsg
,HWND32 hwnd
,UINT32 min
,UINT32 max
)
26 MSG16
*msg
= SEGPTR_NEW(MSG16
);
28 ret
=GetMessage16(SEGPTR_GET(msg
),(HWND16
)hwnd
,min
,max
);
30 STRUCT32_MSG16to32(msg
,lpmsg
);
35 /***********************************************************************
36 * GetMessage32W (USER32.273)
38 BOOL32 WINAPI
GetMessage32W(MSG32
* lpmsg
,HWND32 hwnd
,UINT32 min
,UINT32 max
)
41 MSG16
*msg
= SEGPTR_NEW(MSG16
);
43 ret
=GetMessage16(SEGPTR_GET(msg
),(HWND16
)hwnd
,min
,max
);
45 STRUCT32_MSG16to32(msg
,lpmsg
);
50 /***********************************************************************
53 BOOL32 WINAPI
PeekMessage32A( LPMSG32 lpmsg
, HWND32 hwnd
,
54 UINT32 min
,UINT32 max
,UINT32 wRemoveMsg
)
58 ret
=PeekMessage16(&msg
,hwnd
,min
,max
,wRemoveMsg
);
59 /* FIXME: should translate the message to Win32 */
60 STRUCT32_MSG16to32(&msg
,lpmsg
);
64 /***********************************************************************
67 BOOL32 WINAPI
PeekMessage32W( LPMSG32 lpmsg
, HWND32 hwnd
,
68 UINT32 min
,UINT32 max
,UINT32 wRemoveMsg
)
70 /* FIXME: Should perform Unicode translation on specific messages */
71 return PeekMessage32A(lpmsg
,hwnd
,min
,max
,wRemoveMsg
);