Release 980329
[wine/multimedia.git] / win32 / user32.c
blob86ee37fb4731cc37cf4e320ac713c21bb87832ad
1 /*
2 * Win32 user functions
4 * Copyright 1995 Martin von Loewis
5 */
7 /* This file contains only wrappers to existing Wine functions or trivial
8 stubs. 'Real' implementations go into context specific files */
10 #include <unistd.h>
11 #include <stdio.h>
12 #include <stdarg.h>
13 #include "windows.h"
14 #include "winerror.h"
15 #include "heap.h"
16 #include "struct32.h"
17 #include "win.h"
18 #include "debug.h"
20 /***********************************************************************
21 * GetMessage32A (USER32.269)
23 BOOL32 WINAPI GetMessage32A(MSG32* lpmsg,HWND32 hwnd,UINT32 min,UINT32 max)
25 BOOL32 ret;
26 MSG16 *msg = SEGPTR_NEW(MSG16);
27 if (!msg) return 0;
28 ret=GetMessage16(SEGPTR_GET(msg),(HWND16)hwnd,min,max);
29 /* FIXME */
30 STRUCT32_MSG16to32(msg,lpmsg);
31 SEGPTR_FREE(msg);
32 return ret;
35 /***********************************************************************
36 * GetMessage32W (USER32.273)
38 BOOL32 WINAPI GetMessage32W(MSG32* lpmsg,HWND32 hwnd,UINT32 min,UINT32 max)
40 BOOL32 ret;
41 MSG16 *msg = SEGPTR_NEW(MSG16);
42 if (!msg) return 0;
43 ret=GetMessage16(SEGPTR_GET(msg),(HWND16)hwnd,min,max);
44 /* FIXME */
45 STRUCT32_MSG16to32(msg,lpmsg);
46 SEGPTR_FREE(msg);
47 return ret;
50 /***********************************************************************
51 * PeekMessageA
53 BOOL32 WINAPI PeekMessage32A( LPMSG32 lpmsg, HWND32 hwnd,
54 UINT32 min,UINT32 max,UINT32 wRemoveMsg)
56 MSG16 msg;
57 BOOL32 ret;
58 ret=PeekMessage16(&msg,hwnd,min,max,wRemoveMsg);
59 /* FIXME: should translate the message to Win32 */
60 STRUCT32_MSG16to32(&msg,lpmsg);
61 return ret;
64 /***********************************************************************
65 * PeekMessageW
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);