23#ifndef __WINE_WINDEF16_H
24#define __WINE_WINDEF16_H
49#define MAKESEGPTR(seg,off) ((SEGPTR)MAKELONG(off,seg))
50#define SELECTOROF(ptr) (HIWORD(ptr))
51#define OFFSETOF(ptr) (LOWORD(ptr))
55#define __VA_ROUNDED16(type) \
56 ((sizeof(type) + sizeof(WORD) - 1) / sizeof(WORD) * sizeof(WORD))
57#define VA_ARG16(list,type) \
58 (((list) = (VA_LIST16)((char *)(list) + __VA_ROUNDED16(type))), \
59 *((type *)(void *)((char *)(list) - __VA_ROUNDED16(type))))
61#define HFILE_ERROR16 ((HFILE16)-1)
63#define DECLARE_HANDLE16(a) \
64 typedef HANDLE16 a##16; \
65 typedef a##16 *P##a##16; \
66 typedef a##16 *NP##a##16; \
67 typedef a##16 *LP##a##16
114#undef DECLARE_HANDLE16
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
struct POINT16 * PPOINT16
LRESULT(CALLBACK * DRIVERPROC16)(DWORD, HDRVR16, UINT16, LPARAM, LPARAM)
VOID(CALLBACK * TIMERPROC16)(HWND16, UINT16, UINT16, DWORD)
struct POINT16 * LPPOINT16
LRESULT(CALLBACK * WNDPROC16)(HWND16, UINT16, WPARAM16, LPARAM)
INT16(CALLBACK * EDITWORDBREAKPROC16)(LPSTR, INT16, INT16, INT16)
LRESULT(CALLBACK * HOOKPROC16)(INT16, WPARAM16, LPARAM)
INT16(CALLBACK * PROC16)()
LRESULT(CALLBACK * FARPROC16)()
BOOL16(CALLBACK * PROPENUMPROC16)(HWND16, SEGPTR, HANDLE16)
#define DECLARE_HANDLE16(a)
BOOL16(CALLBACK * GRAYSTRINGPROC16)(HDC16, LPARAM, INT16)
LRESULT(CALLBACK * WNDENUMPROC16)(HWND16, LPARAM)
BOOL16(CALLBACK * DLGPROC16)(HWND16, UINT16, WPARAM16, LPARAM)