windef16.h revision af062818b47340eef15700d2f0211576ba3506ee
af062818b47340eef15700d2f0211576ba3506eevboxsync * Basic type definitions for 16 bit variations on Windows types.
af062818b47340eef15700d2f0211576ba3506eevboxsync * These types are provided mostly to insure compatibility with
af062818b47340eef15700d2f0211576ba3506eevboxsync * 16 bit windows code.
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright (C) the Wine project
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is free software; you can redistribute it and/or
af062818b47340eef15700d2f0211576ba3506eevboxsync * modify it under the terms of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License as published by the Free Software Foundation; either
af062818b47340eef15700d2f0211576ba3506eevboxsync * version 2.1 of the License, or (at your option) any later version.
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is distributed in the hope that it will be useful,
af062818b47340eef15700d2f0211576ba3506eevboxsync * but WITHOUT ANY WARRANTY; without even the implied warranty of
af062818b47340eef15700d2f0211576ba3506eevboxsync * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
af062818b47340eef15700d2f0211576ba3506eevboxsync * Lesser General Public License for more details.
af062818b47340eef15700d2f0211576ba3506eevboxsync * You should have received a copy of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License along with this library; if not, write to the Free Software
af062818b47340eef15700d2f0211576ba3506eevboxsync * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
af062818b47340eef15700d2f0211576ba3506eevboxsync/* Standard data types */
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef unsigned short BOOL16;
af062818b47340eef15700d2f0211576ba3506eevboxsync#define MAKESEGPTR(seg,off) ((SEGPTR)MAKELONG(off,seg))
af062818b47340eef15700d2f0211576ba3506eevboxsync ((sizeof(type) + sizeof(WORD) - 1) / sizeof(WORD) * sizeof(WORD))
af062818b47340eef15700d2f0211576ba3506eevboxsync (((list) = (VA_LIST16)((char *)(list) + __VA_ROUNDED16(type))), \
af062818b47340eef15700d2f0211576ba3506eevboxsync *((type *)(void *)((char *)(list) - __VA_ROUNDED16(type))))
af062818b47340eef15700d2f0211576ba3506eevboxsync/* The SIZE structure */
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct
af062818b47340eef15700d2f0211576ba3506eevboxsync/* The POINT structure */
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct
af062818b47340eef15700d2f0211576ba3506eevboxsync/* The RECT structure */
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct
af062818b47340eef15700d2f0211576ba3506eevboxsync/* Callback function pointers types */
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef LRESULT (CALLBACK *DRIVERPROC16)(DWORD,HDRVR16,UINT16,LPARAM,LPARAM);
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef BOOL16 (CALLBACK *DLGPROC16)(HWND16,UINT16,WPARAM16,LPARAM);
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef INT16 (CALLBACK *EDITWORDBREAKPROC16)(LPSTR,INT16,INT16,INT16);
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef BOOL16 (CALLBACK *GRAYSTRINGPROC16)(HDC16,LPARAM,INT16);
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef LRESULT (CALLBACK *HOOKPROC16)(INT16,WPARAM16,LPARAM);
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef BOOL16 (CALLBACK *PROPENUMPROC16)(HWND16,SEGPTR,HANDLE16);
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef VOID (CALLBACK *TIMERPROC16)(HWND16,UINT16,UINT16,DWORD);
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef LRESULT (CALLBACK *WNDENUMPROC16)(HWND16,LPARAM);
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef LRESULT (CALLBACK *WNDPROC16)(HWND16,UINT16,WPARAM16,LPARAM);
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif /* __WINE_WINDEF16_H */