2 * WOW Generic Thunk API
4 * Copyright (C) 1999 Ulrich Weigand
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 LPVOID WINAPI
WOWGetVDMPointer(DWORD
,DWORD
,BOOL
);
25 LPVOID WINAPI
WOWGetVDMPointerFix(DWORD
,DWORD
,BOOL
);
26 VOID WINAPI
WOWGetVDMPointerUnfix(DWORD
);
28 WORD WINAPI
WOWGlobalAlloc16(WORD
,DWORD
);
29 WORD WINAPI
WOWGlobalFree16(WORD
);
30 DWORD WINAPI
WOWGlobalLock16(WORD
);
31 BOOL WINAPI
WOWGlobalUnlock16(WORD
);
32 DWORD WINAPI
WOWGlobalAllocLock16(WORD
,DWORD
,WORD
*);
33 WORD WINAPI
WOWGlobalUnlockFree16(DWORD
);
34 DWORD WINAPI
WOWGlobalLockSize16(WORD
,PDWORD
);
36 VOID WINAPI
WOWYield16(VOID
);
37 VOID WINAPI
WOWDirectedYield16(WORD
);
59 HANDLE WINAPI
WOWHandle32(WORD
,WOW_HANDLE_TYPE
);
60 WORD WINAPI
WOWHandle16(HANDLE
,WOW_HANDLE_TYPE
);
62 #define HWND_32(h16) ((HWND) (WOWHandle32(h16, WOW_TYPE_HWND)))
63 #define HMENU_32(h16) ((HMENU) (WOWHandle32(h16, WOW_TYPE_HMENU)))
64 #define HDWP_32(h16) ((HDWP) (WOWHandle32(h16, WOW_TYPE_HDWP)))
65 #define HDROP_32(h16) ((HDROP) (WOWHandle32(h16, WOW_TYPE_HDROP)))
66 #define HDC_32(h16) ((HDC) (WOWHandle32(h16, WOW_TYPE_HDC)))
67 #define HFONT_32(h16) ((HFONT) (WOWHandle32(h16, WOW_TYPE_HFONT)))
68 #define HMETAFILE_32(h16) ((HMETAFILE) (WOWHandle32(h16, WOW_TYPE_HMETAFILE)))
69 #define HRGN_32(h16) ((HRGN) (WOWHandle32(h16, WOW_TYPE_HRGN)))
70 #define HBITMAP_32(h16) ((HBITMAP) (WOWHandle32(h16, WOW_TYPE_HBITMAP)))
71 #define HBRUSH_32(h16) ((HBRUSH) (WOWHandle32(h16, WOW_TYPE_HBRUSH)))
72 #define HPALETTE_32(h16) ((HPALETTE) (WOWHandle32(h16, WOW_TYPE_HPALETTE)))
73 #define HPEN_32(h16) ((HPEN) (WOWHandle32(h16, WOW_TYPE_HPEN)))
74 #define HACCEL_32(h16) ((HACCEL) (WOWHandle32(h16, WOW_TYPE_HACCEL)))
75 #define HTASK_32(h16) ((DWORD) (WOWHandle32(h16, WOW_TYPE_HTASK)))
76 #define FULLHWND_32(h16) ((HWND) (WOWHandle32(h16, WOW_TYPE_FULLHWND)))
78 #define HWND_16(h32) (WOWHandle16(h32, WOW_TYPE_HWND))
79 #define HMENU_16(h32) (WOWHandle16(h32, WOW_TYPE_HMENU))
80 #define HDWP_16(h32) (WOWHandle16(h32, WOW_TYPE_HDWP))
81 #define HDROP_16(h32) (WOWHandle16(h32, WOW_TYPE_HDROP))
82 #define HDC_16(h32) (WOWHandle16(h32, WOW_TYPE_HDC))
83 #define HFONT_16(h32) (WOWHandle16(h32, WOW_TYPE_HFONT))
84 #define HMETAFILE_16(h32) (WOWHandle16(h32, WOW_TYPE_HMETAFILE))
85 #define HRGN_16(h32) (WOWHandle16(h32, WOW_TYPE_HRGN))
86 #define HBITMAP_16(h32) (WOWHandle16(h32, WOW_TYPE_HBITMAP))
87 #define HBRUSH_16(h32) (WOWHandle16(h32, WOW_TYPE_HBRUSH))
88 #define HPALETTE_16(h32) (WOWHandle16(h32, WOW_TYPE_HPALETTE))
89 #define HPEN_16(h32) (WOWHandle16(h32, WOW_TYPE_HPEN))
90 #define HACCEL_16(h32) (WOWHandle16(h32, WOW_TYPE_HACCEL))
91 #define HTASK_16(h32) (WOWHandle16(h32, WOW_TYPE_HTASK))
94 #define WCB16_PASCAL 0
96 #define WCB16_MAX_CBARGS 16
98 DWORD WINAPI
WOWCallback16(DWORD
,DWORD
);
99 BOOL WINAPI
WOWCallback16Ex(DWORD
,DWORD
,DWORD
,LPVOID
,LPDWORD
);
101 #endif /* _WOWNT32_H_ */