Restructure example tree a bit
[winelib-gnu-make.git] / misc / wow32 / wow_main.c
blobe2795830d377aa265ecef38e927fba92c1dfb7e6
1 /*
2 * Win32 Windows-on-Windows support
4 * Copyright 2005 Alexandre Julliard
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #include <stdarg.h>
22 #include "windef.h"
23 #include "winbase.h"
24 #include "wownt32.h"
26 #undef WOWCallback16
27 #undef WOWCallback16Ex
28 #undef WOWDirectedYield16
29 #undef WOWGetVDMPointer
30 #undef WOWGetVDMPointerFix
31 #undef WOWGetVDMPointerUnfix
32 #undef WOWGlobalAlloc16
33 #undef WOWGlobalAllocLock16
34 #undef WOWGlobalFree16
35 #undef WOWGlobalLock16
36 #undef WOWGlobalLockSize16
37 #undef WOWGlobalUnlock16
38 #undef WOWGlobalUnlockFree16
39 #undef WOWHandle16
40 #undef WOWHandle32
41 #undef WOWYield16
43 BOOL WINAPI K32WOWGetDescriptor(DWORD,LPLDT_ENTRY);
45 /**********************************************************************
46 * WOWGetDescriptor (WOW32.1)
48 BOOL WINAPI WOWGetDescriptor( DWORD segptr, LPLDT_ENTRY ldtent )
50 return K32WOWGetDescriptor( segptr, ldtent );
53 /**********************************************************************
54 * WOWGetVDMPointer (WOW32.@)
56 LPVOID WINAPI WOWGetVDMPointer( DWORD vp, DWORD dwBytes, BOOL fProtectedMode )
58 return K32WOWGetVDMPointer( vp, dwBytes, fProtectedMode );
61 /**********************************************************************
62 * WOWGetVDMPointerFix (WOW32.@)
64 LPVOID WINAPI WOWGetVDMPointerFix( DWORD vp, DWORD dwBytes, BOOL fProtectedMode )
66 return K32WOWGetVDMPointerFix( vp, dwBytes, fProtectedMode );
69 /**********************************************************************
70 * WOWGetVDMPointerUnfix (WOW32.@)
72 void WINAPI WOWGetVDMPointerUnfix( DWORD vp )
74 K32WOWGetVDMPointerUnfix( vp );
77 /**********************************************************************
78 * WOWGlobalAlloc16 (WOW32.@)
80 WORD WINAPI WOWGlobalAlloc16( WORD wFlags, DWORD cb )
82 return K32WOWGlobalAlloc16( wFlags, cb );
85 /**********************************************************************
86 * WOWGlobalFree16 (WOW32.@)
88 WORD WINAPI WOWGlobalFree16( WORD hMem )
90 return K32WOWGlobalFree16( hMem );
93 /**********************************************************************
94 * WOWGlobalLock16 (WOW32.@)
96 DWORD WINAPI WOWGlobalLock16( WORD hMem )
98 return K32WOWGlobalLock16( hMem );
101 /**********************************************************************
102 * WOWGlobalUnlock16 (WOW32.@)
104 BOOL WINAPI WOWGlobalUnlock16( WORD hMem )
106 return K32WOWGlobalUnlock16( hMem );
109 /**********************************************************************
110 * WOWGlobalAllocLock16 (WOW32.@)
112 DWORD WINAPI WOWGlobalAllocLock16( WORD wFlags, DWORD cb, WORD *phMem )
114 return K32WOWGlobalAllocLock16( wFlags, cb, phMem );
117 /**********************************************************************
118 * WOWGlobalLockSize16 (WOW32.@)
120 DWORD WINAPI WOWGlobalLockSize16( WORD hMem, PDWORD pcb )
122 return K32WOWGlobalLockSize16( hMem, pcb );
125 /**********************************************************************
126 * WOWGlobalUnlockFree16 (WOW32.@)
128 WORD WINAPI WOWGlobalUnlockFree16( DWORD vpMem )
130 return K32WOWGlobalUnlockFree16( vpMem );
133 /**********************************************************************
134 * WOWYield16 (WOW32.@)
136 void WINAPI WOWYield16(void)
138 K32WOWYield16();
141 /**********************************************************************
142 * WOWDirectedYield16 (WOW32.@)
144 void WINAPI WOWDirectedYield16( WORD htask16 )
146 K32WOWDirectedYield16( htask16 );
149 /***********************************************************************
150 * WOWHandle32 (WOW32.@)
152 HANDLE WINAPI WOWHandle32( WORD handle, WOW_HANDLE_TYPE type )
154 return K32WOWHandle32( handle, type );
157 /***********************************************************************
158 * WOWHandle16 (WOW32.@)
160 WORD WINAPI WOWHandle16( HANDLE handle, WOW_HANDLE_TYPE type )
162 return K32WOWHandle16( handle, type );
165 /**********************************************************************
166 * WOWCallback16Ex (WOW32.@)
168 BOOL WINAPI WOWCallback16Ex( DWORD vpfn16, DWORD dwFlags,
169 DWORD cbArgs, PVOID pArgs, PDWORD pdwRetCode )
171 return K32WOWCallback16Ex( vpfn16, dwFlags, cbArgs, pArgs, pdwRetCode );
174 /**********************************************************************
175 * WOWCallback16 (WOW32.@)
177 DWORD WINAPI WOWCallback16( DWORD vpfn16, DWORD dwParam )
179 return K32WOWCallback16( vpfn16, dwParam );