Release 960331
[wine.git] / win32 / param32.c
bloba5323d2c4d663b944c0e588c6b7399a211fea80d
1 /*
2 * Win32 relay functions
3 * The implementations here perform only parameter conversions, and
4 * call the Win16 counterparts
6 * Copyright 1996 Martin von Loewis
7 */
9 #include <stdio.h>
10 #include "windows.h"
11 #include "winerror.h"
12 #include "struct32.h"
13 #include "stackframe.h"
14 #include "stddebug.h"
15 #include "debug.h"
17 /****************************************************************
18 * MoveToEx (GDI32.254)
20 BOOL WIN32_MoveToEx(HDC hdc,int x,int y,POINT32* p32)
22 POINT p;
23 if (p32 == NULL)
24 return MoveToEx(hdc,x,y,(POINT *)NULL);
25 else {
26 STRUCT32_POINT32to16(p32,&p);
27 return MoveToEx(hdc,x,y,&p);
31 BOOL WIN32_GetTextExtentPointA(HDC hdc, LPCTSTR str, int length, SIZE32* lpsize)
34 SIZE s;
35 BOOL retval;
37 retval = GetTextExtentPoint(hdc, str, length, &s);
38 STRUCT32_SIZE16to32(&s, lpsize);
40 return retval;
43 ATOM WIN32_GlobalAddAtomA(LPCTSTR str)
45 char buffer[256]; /* 16-bit atoms are limited to 255 anyway */
46 lstrcpyn( buffer, str, sizeof(buffer) );
47 return GlobalAddAtom(MAKE_SEGPTR(buffer));