From d8f50798b6052ae29a084bf4685154db5cc18a47 Mon Sep 17 00:00:00 2001 From: Patrik Stridvall Date: Wed, 28 Aug 2002 00:38:42 +0000 Subject: [PATCH] Implement wrapper calls for the 16 bit GlobalAtom* functions. --- dlls/user/Makefile.in | 1 + dlls/user/user.exe.spec | 8 +++--- dlls/user/user16.c | 54 ++++++++++++++++++++++++++++++++++++++++ include/wine/winuser16.h | 4 +++ 4 files changed, 63 insertions(+), 4 deletions(-) create mode 100644 dlls/user/user16.c diff --git a/dlls/user/Makefile.in b/dlls/user/Makefile.in index a6277c6331b..d0af18d75f6 100644 --- a/dlls/user/Makefile.in +++ b/dlls/user/Makefile.in @@ -71,6 +71,7 @@ C_SRCS = \ property.c \ resource.c \ text.c \ + user16.c \ user_main.c \ wnd16.c \ wsprintf.c diff --git a/dlls/user/user.exe.spec b/dlls/user/user.exe.spec index 2ad3dd0905e..6ff3e9a87de 100644 --- a/dlls/user/user.exe.spec +++ b/dlls/user/user.exe.spec @@ -273,10 +273,10 @@ rsrc resources/version16.res 265 pascal16 ShowOwnedPopups(word word) ShowOwnedPopups16 266 pascal16 SetMessageQueue(word) SetMessageQueue16 267 pascal16 ShowScrollBar(word word word) ShowScrollBar16 -268 pascal16 GlobalAddAtom(str) GlobalAddAtomA -269 pascal16 GlobalDeleteAtom(word) GlobalDeleteAtom -270 pascal16 GlobalFindAtom(str) GlobalFindAtomA -271 pascal16 GlobalGetAtomName(word ptr s_word) GlobalGetAtomNameA +268 pascal16 GlobalAddAtom(str) GlobalAddAtom16 +269 pascal16 GlobalDeleteAtom(word) GlobalDeleteAtom16 +270 pascal16 GlobalFindAtom(str) GlobalFindAtom16 +271 pascal16 GlobalGetAtomName(word ptr s_word) GlobalGetAtomName16 272 pascal16 IsZoomed(word) IsZoomed16 273 pascal16 ControlPanelInfo(word word str) ControlPanelInfo16 274 stub GetNextQueueWindow diff --git a/dlls/user/user16.c b/dlls/user/user16.c new file mode 100644 index 00000000000..faf33bf49fa --- /dev/null +++ b/dlls/user/user16.c @@ -0,0 +1,54 @@ +/* + * Misc 16-bit USER functions + * + * Copyright 2002 Patrik Stridvall + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#include "wine/winuser16.h" +#include "winbase.h" + +/*********************************************************************** + * GlobalAddAtom (USER.268) + */ +ATOM WINAPI GlobalAddAtom16(LPCSTR lpString) +{ + return GlobalAddAtomA(lpString); +} + +/*********************************************************************** + * GlobalDeleteAtom (USER.269) + */ +ATOM WINAPI GlobalDeleteAtom16(ATOM nAtom) +{ + return GlobalDeleteAtom(nAtom); +} + +/*********************************************************************** + * GlobalFindAtom (USER.270) + */ +ATOM WINAPI GlobalFindAtom16(LPCSTR lpString) +{ + return GlobalFindAtomA(lpString); +} + +/*********************************************************************** + * GlobalGetAtomName (USER.271) + */ +UINT16 WINAPI GlobalGetAtomName16(ATOM nAtom, LPSTR lpBuffer, INT16 nSize) +{ + return GlobalGetAtomNameA(nAtom, lpBuffer, nSize); +} diff --git a/include/wine/winuser16.h b/include/wine/winuser16.h index 5878374d3f9..bc95c637851 100644 --- a/include/wine/winuser16.h +++ b/include/wine/winuser16.h @@ -796,6 +796,10 @@ HTASK16 WINAPI GetWindowTask16(HWND16); INT16 WINAPI GetWindowText16(HWND16,SEGPTR,INT16); INT16 WINAPI GetWindowTextLength16(HWND16); WORD WINAPI GetWindowWord16(HWND16,INT16); +ATOM WINAPI GlobalAddAtom16(LPCSTR); +ATOM WINAPI GlobalDeleteAtom16(ATOM); +ATOM WINAPI GlobalFindAtom16(LPCSTR); +UINT16 WINAPI GlobalGetAtomName16(ATOM,LPSTR,INT16); VOID WINAPI HideCaret16(HWND16); BOOL16 WINAPI HiliteMenuItem16(HWND16,HMENU16,UINT16,UINT16); DWORD WINAPI IconSize16(void);