Implement wrapper calls for the 16 bit GlobalAtom* functions.

This commit is contained in:
Patrik Stridvall 2002-08-28 00:38:42 +00:00 committed by Alexandre Julliard
parent 9c071eaefd
commit d8f50798b6
4 changed files with 63 additions and 4 deletions

View File

@ -71,6 +71,7 @@ C_SRCS = \
property.c \ property.c \
resource.c \ resource.c \
text.c \ text.c \
user16.c \
user_main.c \ user_main.c \
wnd16.c \ wnd16.c \
wsprintf.c wsprintf.c

View File

@ -273,10 +273,10 @@ rsrc resources/version16.res
265 pascal16 ShowOwnedPopups(word word) ShowOwnedPopups16 265 pascal16 ShowOwnedPopups(word word) ShowOwnedPopups16
266 pascal16 SetMessageQueue(word) SetMessageQueue16 266 pascal16 SetMessageQueue(word) SetMessageQueue16
267 pascal16 ShowScrollBar(word word word) ShowScrollBar16 267 pascal16 ShowScrollBar(word word word) ShowScrollBar16
268 pascal16 GlobalAddAtom(str) GlobalAddAtomA 268 pascal16 GlobalAddAtom(str) GlobalAddAtom16
269 pascal16 GlobalDeleteAtom(word) GlobalDeleteAtom 269 pascal16 GlobalDeleteAtom(word) GlobalDeleteAtom16
270 pascal16 GlobalFindAtom(str) GlobalFindAtomA 270 pascal16 GlobalFindAtom(str) GlobalFindAtom16
271 pascal16 GlobalGetAtomName(word ptr s_word) GlobalGetAtomNameA 271 pascal16 GlobalGetAtomName(word ptr s_word) GlobalGetAtomName16
272 pascal16 IsZoomed(word) IsZoomed16 272 pascal16 IsZoomed(word) IsZoomed16
273 pascal16 ControlPanelInfo(word word str) ControlPanelInfo16 273 pascal16 ControlPanelInfo(word word str) ControlPanelInfo16
274 stub GetNextQueueWindow 274 stub GetNextQueueWindow

54
dlls/user/user16.c Normal file
View File

@ -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);
}

View File

@ -796,6 +796,10 @@ HTASK16 WINAPI GetWindowTask16(HWND16);
INT16 WINAPI GetWindowText16(HWND16,SEGPTR,INT16); INT16 WINAPI GetWindowText16(HWND16,SEGPTR,INT16);
INT16 WINAPI GetWindowTextLength16(HWND16); INT16 WINAPI GetWindowTextLength16(HWND16);
WORD WINAPI GetWindowWord16(HWND16,INT16); 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); VOID WINAPI HideCaret16(HWND16);
BOOL16 WINAPI HiliteMenuItem16(HWND16,HMENU16,UINT16,UINT16); BOOL16 WINAPI HiliteMenuItem16(HWND16,HMENU16,UINT16,UINT16);
DWORD WINAPI IconSize16(void); DWORD WINAPI IconSize16(void);