source: trunk/include/OS2WIN.H@ 6552

Last change on this file since 6552 was 5369, checked in by sandervl, 24 years ago

header update

File size: 180.8 KB
Line 
1#ifndef _OS2WIN_H
2 #define _OS2WIN_H
3
4#ifdef OS2_INCLUDED
5 #include <win32type.h>
6#else
7 #include <odin.h>
8
9 #include <windef.h>
10 #include <winbase.h>
11 #include <wingdi.h>
12 #include <winuser.h>
13 #include <winerror.h>
14 #include <commdlg.h>
15 #include <ddeml.h>
16 #include <mmsystem.h>
17#endif
18
19#include <os2sel.h>
20
21#include "misc.h"
22
23#define OPEN32API _System
24#define EXPENTRY_O32 _System
25#define APIENTRY_O32 _System
26
27/* WinMain/WinProcs/TimerProcs
28 */
29typedef int (* EXPENTRY_O32 FNMAIN_O32 )( HINSTANCE, HINSTANCE, LPSTR, int );
30typedef FNMAIN_O32 PFNMAIN_O32;
31typedef LRESULT (* EXPENTRY_O32 WNDPROC_O32 ) ( HWND, UINT, WPARAM, LPARAM );
32typedef int (* EXPENTRY_O32 FARPROC_O32 ) ( );
33typedef UINT (* EXPENTRY_O32 LPOFNHOOKPROC_O32 ) ( HWND, UINT, WPARAM, LPARAM );
34typedef BOOL (* EXPENTRY_O32 DLGPROC_O32 ) ( HWND, UINT, WPARAM, LPARAM );
35typedef void (* EXPENTRY_O32 TIMERPROC_O32)( HWND, UINT, UINT, DWORD );
36typedef BOOL (* EXPENTRY_O32 ABORTPROC_O32)( HDC, int);
37typedef UINT (* APIENTRY_O32 LPPRINTHOOKPROC_O32) (HWND, UINT, WPARAM, LPARAM);
38typedef UINT (* APIENTRY_O32 LPSETUPHOOKPROC_O32) (HWND, UINT, WPARAM, LPARAM);
39typedef LRESULT (* EXPENTRY_O32 HOOKPROC_O32)(int code, WPARAM wParam, LPARAM lParam);
40typedef DWORD (* EXPENTRY_O32 PTHREAD_START_ROUTINE_O32)(PVOID lpThreadParameter);
41typedef DWORD (* EXPENTRY_O32 LPTHREAD_START_ROUTINE_O32)(PVOID lpThreadParameter);
42
43typedef int (* EXPENTRY_O32 GOBJENUMPROC_O32)(PVOID, LPARAM);
44typedef VOID (* EXPENTRY_O32 LINEDDAPROC_O32)(int, int, LPARAM);
45typedef int (* EXPENTRY_O32 OLDFONTENUMPROC_O32)( PLOGFONTA, LPTEXTMETRICA, DWORD, LPARAM );
46typedef int (* EXPENTRY_O32 FONTENUMPROC_O32)( LPENUMLOGFONTA, LPNEWTEXTMETRICA, DWORD, LPARAM );
47typedef BOOL (* EXPENTRY_O32 WNDENUMPROC_O32)( HWND, LPARAM );
48typedef BOOL (* EXPENTRY_O32 PROPENUMPROC_O32)( HWND, LPCSTR, HANDLE );
49typedef UINT (* EXPENTRY_O32 PFRHOOKPROC_O32) (HWND, UINT, WPARAM, LPARAM);
50typedef BOOL (* EXPENTRY_O32 GRAYSTRINGPROC_O32)(HDC, LPARAM, int);
51typedef UINT (* EXPENTRY_O32 LPCCHOOKPROC_O32) (HWND, UINT, WPARAM, LPARAM);
52typedef UINT (* EXPENTRY_O32 LPCFHOOKPROC_O32) (HWND, UINT, WPARAM, LPARAM);
53typedef HDDEDATA (* EXPENTRY_O32 FNCALLBACK_O32)(UINT, UINT, HCONV, HSZ, HSZ, HDDEDATA, DWORD, DWORD );
54typedef BOOL (* EXPENTRY_O32 PROPENUMPROCEX_O32)( HWND, LPCSTR, HANDLE, DWORD );
55typedef FNCALLBACK_O32 *PFNCALLBACK_O32;
56
57typedef int (* EXPENTRY_O32 ENHMFENUMPROC_O32)(HDC, LPHANDLETABLE, const PENHMETARECORD, int, LPARAM);
58typedef int (* EXPENTRY_O32 MFENUMPROC_O32)(HDC, LPHANDLETABLE, PMETARECORD, int, LPARAM);
59
60#define HKEY_LOCAL_MACHINE_O32 0xFFFFFFEFL
61#define HKEY_CURRENT_USER_O32 0xFFFFFFEEL
62#define HKEY_USERS_O32 0xFFFFFFEDL
63#define HKEY_CLASSES_ROOT_O32 0xFFFFFFECL
64
65#define O32_MakeProcInstance(proc, hinst) (proc)
66#define O32_FreeProcInstance(proc) (proc)
67#define O32_FreeModule(hLibModule) O32_FreeLibrary((hLibModule))
68#define O32_Yield()
69
70#define O32_GetWindowTask(hWnd) ((HANDLE)O32_GetWindowThreadProcessId(hWnd, NULL))
71
72
73/* Macro'd APIs
74 */
75#define O32_CreateWindow(lpClassName, lpWindowName, dwStyle, x, y,\
76 nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam)\
77 O32_CreateWindowEx(0, lpClassName, lpWindowName, dwStyle, x, y,\
78 nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam)
79
80/* TBD: This must be removed before release
81 */
82#ifndef NO_HEAPSIZE_MACRO
83#define _O32_HeapSize(handle, flags, pMem) AweHeapSize(handle, flags, pMem)
84#endif
85
86#define O32_AnsiToOem O32_CharToOem
87#define O32_OemToAnsi O32_OemToChar
88#define O32_AnsiToOemBuff O32_CharToOemBuff
89#define O32_OemToAnsiBuff O32_OemToCharBuff
90#define O32_AnsiUpper O32_CharUpper
91#define O32_AnsiUpperBuff O32_CharUpperBuff
92#define O32_AnsiLower O32_CharLower
93#define O32_AnsiLowerBuff O32_CharLowerBuff
94#define O32_AnsiNext O32_CharNext
95#define O32_AnsiPrev O32_CharPrev
96
97/* Name Mapped API's
98 */
99#define _O32_CreateBitmapIndirect _O32__CreateBitmapIndirect
100#define _O32_CreateDialogIndirect _O32__CreateDialogIndirect
101#define _O32_CreateDialogIndirectParam _O32__CreateDialogIndirectParam
102#define _O32_CreateIconIndirect _O32__CreateIconIndirect
103#define _O32_DialogBoxIndirect _O32__DialogBoxIndirect
104#define _O32_DialogBoxIndirectParam _O32__DialogBoxIndirectParam
105#define _O32_LoadMenuIndirect _O32__LoadMenuIndirect
106#define _O32_LoadResource _O32__LoadResource
107
108/* API Prototypes
109 */
110int OPEN32API _O32_WinMain( HINSTANCE, HINSTANCE, LPSTR, int );
111
112int OPEN32API _O32_AbortDoc( HDC );
113
114BOOL OPEN32API _O32_AbortPath( HDC );
115
116ATOM OPEN32API _O32_AddAtom( LPCSTR );
117
118int OPEN32API _O32_AddFontResource( LPCSTR );
119
120BOOL OPEN32API _O32_AdjustWindowRect( PRECT, DWORD, BOOL );
121
122BOOL OPEN32API _O32_AdjustWindowRectEx( PRECT, DWORD, BOOL, DWORD );
123
124BOOL OPEN32API _O32_AngleArc( HDC, int, int, DWORD, float startAngle, float sweepAngle );
125
126BOOL OPEN32API _O32_AnimatePalette( HPALETTE, UINT, UINT, const PALETTEENTRY *);
127
128BOOL OPEN32API _O32_AppendMenu( HMENU, UINT, UINT, LPCSTR );
129
130BOOL OPEN32API _O32_Arc( HDC, int, int, int, int, int, int, int, int );
131
132BOOL OPEN32API _O32_ArcTo( HDC, int, int, int, int, int xRad1, int yRad1, int xRad2, int yRad2);
133
134UINT OPEN32API _O32_ArrangeIconicWindows( HWND );
135
136BOOL OPEN32API _O32_Beep( DWORD, DWORD );
137
138HDWP OPEN32API _O32_BeginDeferWindowPos( int );
139
140HDC OPEN32API _O32_BeginPaint( HWND, PPAINTSTRUCT );
141
142BOOL OPEN32API _O32_BeginPath( HDC );
143
144BOOL OPEN32API _O32_BitBlt( HDC , int, int, int, int, HDC , int, int, DWORD );
145
146BOOL OPEN32API _O32_BringWindowToTop( HWND );
147
148BOOL OPEN32API _O32_CallMsgFilter( LPMSG, int );
149
150LRESULT OPEN32API _O32_CallNextHookEx( HHOOK, int, WPARAM, LPARAM );
151
152LRESULT OPEN32API _O32_CallWindowProc( WNDPROC_O32, HWND, UINT, WPARAM, LPARAM );
153
154BOOL OPEN32API _O32_ChangeClipboardChain( HWND, HWND );
155
156LPSTR OPEN32API _O32_CharLower( LPSTR );
157
158DWORD OPEN32API _O32_CharLowerBuff( LPSTR, DWORD );
159
160LPSTR OPEN32API _O32_CharUpper( LPSTR );
161
162DWORD OPEN32API _O32_CharUpperBuff( LPSTR, DWORD );
163
164BOOL OPEN32API _O32_CheckDlgButton( HWND, int, UINT );
165
166DWORD OPEN32API _O32_CheckMenuItem( HMENU, UINT, UINT );
167
168BOOL OPEN32API _O32_CheckRadioButton( HWND, int, int, int );
169
170HWND OPEN32API _O32_ChildWindowFromPoint( HWND, POINT );
171
172BOOL OPEN32API _O32_ChooseColor( LPCHOOSECOLORA );
173
174BOOL OPEN32API _O32_ChooseFont( LPCHOOSEFONTA );
175
176BOOL OPEN32API _O32_Chord( HDC , int, int, int, int, int xRadial1, int yRadial1, int xRadial2, int yRadial2);
177
178BOOL OPEN32API _O32_ClientToScreen( HWND, PPOINT );
179
180BOOL OPEN32API _O32_ClipCursor( const RECT *);
181
182BOOL OPEN32API _O32_CloseClipboard( VOID );
183
184HENHMETAFILE OPEN32API _O32_CloseEnhMetaFile( HDC );
185
186BOOL OPEN32API _O32_CloseFigure( HDC );
187
188BOOL OPEN32API _O32_CloseHandle( HANDLE );
189
190HMETAFILE OPEN32API _O32_CloseMetaFile( HDC );
191
192BOOL OPEN32API _O32_CloseWindow( HWND );
193
194int OPEN32API _O32_CombineRgn( HRGN, HRGN hrgnSrc1, HRGN hrgnSrc2, int );
195
196DWORD OPEN32API _O32_CommDlgExtendedError( VOID );
197
198LONG OPEN32API _O32_CompareFileTime( FILETIME *, FILETIME * );
199
200HCURSOR OPEN32API _O32_CopyCursor( HCURSOR );
201
202HENHMETAFILE OPEN32API _O32_CopyEnhMetaFile( HENHMETAFILE, LPCSTR );
203
204BOOL OPEN32API _O32_CopyFile( LPCSTR, LPCSTR, BOOL );
205
206HICON OPEN32API _O32_CopyIcon( HICON );
207
208HMETAFILE OPEN32API _O32_CopyMetaFile( HMETAFILE, LPCSTR );
209
210BOOL OPEN32API _O32_CopyRect( PRECT, const RECT *);
211
212int OPEN32API _O32_CountClipboardFormats( VOID );
213
214HACCEL OPEN32API _O32_CreateAcceleratorTable( LPACCEL, int );
215
216HBITMAP OPEN32API _O32_CreateBitmap( int, int, UINT, UINT, const void * );
217
218HBITMAP OPEN32API _O32_CreateBitmapIndirect( const BITMAP * );
219
220HBRUSH OPEN32API _O32_CreateBrushIndirect( LPLOGBRUSH );
221
222BOOL OPEN32API _O32_CreateCaret( HWND, HBITMAP, int, int );
223
224HBITMAP OPEN32API _O32_CreateCompatibleBitmap( HDC , int, int );
225
226HDC OPEN32API _O32_CreateCompatibleDC( HDC );
227
228HCURSOR OPEN32API _O32_CreateCursor( HINSTANCE, int, int, int, int, const VOID *, const VOID *);
229
230HDC OPEN32API _O32_CreateDC( LPCSTR, LPCSTR, LPCSTR, const DEVMODEA *);
231
232HBRUSH OPEN32API _O32_CreateDIBPatternBrushPt( const VOID *, UINT );
233
234HBITMAP OPEN32API _O32_CreateDIBitmap( HDC, const BITMAPINFOHEADER *, DWORD, const void *, const BITMAPINFO *, UINT );
235
236HWND OPEN32API _O32_CreateDialog( HINSTANCE, LPCSTR, HWND, DLGPROC_O32 );
237
238HWND OPEN32API _O32_CreateDialogParam( HINSTANCE, LPCSTR, HWND, DLGPROC_O32, LPARAM );
239
240HWND OPEN32API _O32_CreateDialogIndirect( HINSTANCE, const DLGTEMPLATE *, HWND, DLGPROC_O32 );
241
242HWND OPEN32API _O32_CreateDialogIndirectParam( HINSTANCE, const DLGTEMPLATE *, HWND, DLGPROC_O32, LPARAM );
243
244BOOL OPEN32API _O32_CreateDirectory( LPCSTR, PSECURITY_ATTRIBUTES );
245
246HRGN OPEN32API _O32_CreateEllipticRgn( int, int, int, int );
247
248HRGN OPEN32API _O32_CreateEllipticRgnIndirect( const RECT * );
249
250HENHMETAFILE OPEN32API _O32_CreateEnhMetaFile( HDC, LPCSTR, const RECT *, LPCSTR );
251
252HANDLE OPEN32API _O32_CreateEvent( PSECURITY_ATTRIBUTES, BOOL, BOOL, LPCSTR );
253
254HANDLE OPEN32API _O32_CreateFile( LPCSTR, DWORD, DWORD, PSECURITY_ATTRIBUTES, DWORD, DWORD, HANDLE );
255
256HFONT OPEN32API _O32_CreateFont( int, int, int, int, int, DWORD, DWORD, DWORD, DWORD,
257 DWORD, DWORD, DWORD, DWORD, LPCSTR );
258
259HFONT OPEN32API _O32_CreateFontIndirect( const LOGFONTA *);
260
261HBRUSH OPEN32API _O32_CreateHatchBrush( int, COLORREF );
262
263HDC OPEN32API _O32_CreateIC( LPCSTR, LPCSTR, LPCSTR, const DEVMODEA *);
264
265HICON OPEN32API _O32_CreateIcon( HINSTANCE, int, int, BYTE, BYTE, const BYTE *, const BYTE * );
266
267HICON OPEN32API _O32_CreateIconFromResource( PBYTE, DWORD, BOOL, DWORD );
268
269HICON OPEN32API _O32_CreateIconIndirect( LPICONINFO );
270
271HMENU OPEN32API _O32_CreateMenu( void);
272
273HDC OPEN32API _O32_CreateMetaFile( LPCSTR );
274
275HWND OPEN32API _O32_CreateMDIWindow( LPSTR, LPSTR, DWORD, int, int, int, int, HWND, HINSTANCE, LPARAM );
276
277HANDLE OPEN32API _O32_CreateMutex( PSECURITY_ATTRIBUTES, BOOL, LPCSTR );
278
279HPALETTE OPEN32API _O32_CreatePalette( const LOGPALETTE * );
280
281HBRUSH OPEN32API _O32_CreatePatternBrush( HBITMAP );
282
283HPEN OPEN32API _O32_CreatePen( int, int, COLORREF );
284
285HPEN OPEN32API _O32_CreatePenIndirect( const LOGPEN * );
286
287HRGN OPEN32API _O32_CreatePolyPolygonRgn( const POINT *, const INT *, int, int );
288
289HRGN OPEN32API _O32_CreatePolygonRgn( const POINT *, int, int );
290
291HMENU OPEN32API _O32_CreatePopupMenu( VOID );
292
293BOOL OPEN32API _O32_CreateProcess( LPCSTR, LPCSTR, PSECURITY_ATTRIBUTES, PSECURITY_ATTRIBUTES,
294 BOOL, DWORD, PVOID, LPCSTR, LPSTARTUPINFOA,
295 LPPROCESS_INFORMATION );
296
297HRGN OPEN32API _O32_CreateRectRgn( int, int, int, int );
298
299HRGN OPEN32API _O32_CreateRectRgnIndirect( const RECT * );
300
301HRGN OPEN32API _O32_CreateRoundRectRgn( int, int, int, int, int, int );
302
303HANDLE OPEN32API _O32_CreateSemaphore( PSECURITY_ATTRIBUTES, LONG, LONG, LPSTR );
304
305HBRUSH OPEN32API _O32_CreateSolidBrush( COLORREF );
306
307HANDLE OPEN32API _O32_CreateThread( PSECURITY_ATTRIBUTES, DWORD, PTHREAD_START_ROUTINE_O32, PVOID, DWORD, PDWORD );
308
309HWND OPEN32API _O32_CreateWindowEx( DWORD, LPCSTR, LPCSTR, DWORD, int, int, int, int, HWND, HMENU, HINSTANCE, PVOID );
310
311BOOL OPEN32API _O32_DPtoLP( HDC, PPOINT, int );
312
313BOOL OPEN32API _O32_DdeAbandonTransaction( DWORD, HCONV, DWORD );
314
315PBYTE OPEN32API _O32_DdeAccessData(HDDEDATA, PDWORD );
316
317HDDEDATA OPEN32API _O32_DdeAddData( HDDEDATA, PVOID, DWORD, DWORD );
318
319HDDEDATA OPEN32API _O32_DdeClientTransaction( PVOID, DWORD, HCONV,
320 HSZ, UINT, UINT, DWORD, PDWORD );
321
322int OPEN32API _O32_DdeCmpStringHandles( HSZ hsz1, HSZ hsz2);
323
324HCONV OPEN32API _O32_DdeConnect( DWORD, HSZ, HSZ, LPCONVCONTEXT );
325
326HCONVLIST OPEN32API _O32_DdeConnectList(DWORD, HSZ, HSZ, HCONVLIST, LPCONVCONTEXT );
327
328HDDEDATA OPEN32API _O32_DdeCreateDataHandle(DWORD, PVOID, DWORD, DWORD, HSZ, UINT, UINT );
329
330HSZ OPEN32API _O32_DdeCreateStringHandle(DWORD, LPCSTR, int );
331
332BOOL OPEN32API _O32_DdeDisconnect(HCONV );
333
334BOOL OPEN32API _O32_DdeDisconnectList( HCONVLIST );
335
336BOOL OPEN32API _O32_DdeEnableCallback(DWORD, HCONV, UINT );
337
338BOOL OPEN32API _O32_DdeFreeDataHandle( HDDEDATA );
339
340BOOL OPEN32API _O32_DdeFreeStringHandle(DWORD, HSZ );
341
342DWORD OPEN32API _O32_DdeGetData( HDDEDATA, PVOID, DWORD, DWORD );
343
344UINT OPEN32API _O32_DdeGetLastError(DWORD );
345
346UINT OPEN32API _O32_DdeInitialize(PDWORD, PFNCALLBACK_O32, DWORD, DWORD );
347
348BOOL OPEN32API _O32_DdeKeepStringHandle(DWORD, HSZ );
349
350HDDEDATA OPEN32API _O32_DdeNameService( DWORD, HSZ hsz1, HSZ hsz2, UINT );
351
352BOOL OPEN32API _O32_DdePostAdvise(DWORD, HSZ, HSZ );
353
354UINT OPEN32API _O32_DdeQueryConvInfo( HCONV, DWORD, LPCONVINFO );
355
356HCONV OPEN32API _O32_DdeQueryNextServer( HCONVLIST, HCONV );
357
358DWORD OPEN32API _O32_DdeQueryString(DWORD, HSZ, LPSTR, DWORD, int );
359
360HCONV OPEN32API _O32_DdeReconnect( HCONV );
361
362BOOL OPEN32API _O32_DdeSetUserHandle( HCONV, DWORD, DWORD );
363
364BOOL OPEN32API _O32_DdeUnaccessData( HDDEDATA );
365
366BOOL OPEN32API _O32_DdeUninitialize(DWORD );
367
368LRESULT OPEN32API _O32_DefDlgProc( HWND, UINT, WPARAM mp1, LPARAM mp2 );
369
370HDWP OPEN32API _O32_DeferWindowPos( HDWP, HWND, HWND hWndInsertAfter , int, int, int, int, UINT );
371
372LRESULT OPEN32API _O32_DefFrameProc( HWND, HWND, UINT, WPARAM, LPARAM );
373
374LRESULT OPEN32API _O32_DefMDIChildProc( HWND, UINT, WPARAM, LPARAM );
375
376LRESULT OPEN32API _O32_DefWindowProc( HWND, UINT, WPARAM mp1, LPARAM mp2 );
377
378ATOM OPEN32API _O32_DeleteAtom( ATOM );
379
380VOID OPEN32API _O32_DeleteCriticalSection( CRITICAL_SECTION * );
381
382BOOL OPEN32API _O32_DeleteDC( HDC );
383
384BOOL OPEN32API _O32_DeleteEnhMetaFile( HENHMETAFILE );
385
386BOOL OPEN32API _O32_DeleteFile( LPCSTR );
387
388BOOL OPEN32API _O32_DeleteMenu( HMENU, UINT, UINT );
389
390BOOL OPEN32API _O32_DeleteMetaFile( HMETAFILE );
391
392BOOL OPEN32API _O32_DeleteObject( HANDLE );
393
394BOOL OPEN32API _O32_DestroyAcceleratorTable( HACCEL );
395
396BOOL OPEN32API _O32_DestroyCaret( VOID );
397
398BOOL OPEN32API _O32_DestroyCursor( HCURSOR );
399
400BOOL OPEN32API _O32_DestroyIcon( HICON );
401
402BOOL OPEN32API _O32_DestroyMenu( HMENU );
403
404BOOL OPEN32API _O32_DestroyWindow( HWND );
405
406DWORD OPEN32API _O32_DeviceCapabilities( LPCSTR, LPCSTR, WORD, LPTSTR, const DEVMODEA *);
407
408int OPEN32API _O32_DialogBox( HINSTANCE, LPCSTR, HWND, DLGPROC_O32 );
409
410int OPEN32API _O32_DialogBoxParam( HINSTANCE, LPCSTR, HWND, DLGPROC_O32, LPARAM );
411
412BOOL OPEN32API _O32_DialogBoxIndirect( HINSTANCE, LPDLGTEMPLATEA, HWND, DLGPROC_O32 );
413
414BOOL OPEN32API _O32_DialogBoxIndirectParam( HINSTANCE, LPDLGTEMPLATEA, HWND, DLGPROC_O32, LPARAM );
415
416LONG OPEN32API _O32_DispatchMessage( const MSG * );
417
418int OPEN32API _O32_DlgDirList( HWND, LPSTR, int, int, UINT );
419
420int OPEN32API _O32_DlgDirListComboBox( HWND, LPSTR, int, int, UINT );
421
422BOOL OPEN32API _O32_DlgDirSelectEx( HWND, LPSTR, int, int );
423
424BOOL OPEN32API _O32_DlgDirSelectComboBoxEx( HWND, LPSTR, int, int );
425
426BOOL OPEN32API _O32_DllEntryPoint( HINSTANCE, DWORD, LPVOID );
427
428BOOL OPEN32API _O32_DosDateTimeToFileTime( WORD, WORD, LPFILETIME );
429
430VOID OPEN32API _O32_DragAcceptFiles( HWND, BOOL );
431
432VOID OPEN32API _O32_DragFinish( HDROP );
433
434UINT OPEN32API _O32_DragQueryFile( HDROP, int, LPSTR, int );
435
436BOOL OPEN32API _O32_DragQueryPoint( HDROP, PPOINT );
437
438BOOL OPEN32API _O32_DrawFocusRect( HDC, const RECT * );
439
440BOOL OPEN32API _O32_DrawIcon( HDC, int, int, HICON );
441
442BOOL OPEN32API _O32_DrawMenuBar( HWND );
443
444int OPEN32API _O32_DrawText( HDC, LPCSTR, int, PRECT, UINT );
445
446BOOL OPEN32API _O32_DuplicateHandle( HANDLE, HANDLE, HANDLE, LPHANDLE, DWORD, BOOL, DWORD );
447
448BOOL OPEN32API _O32_Ellipse( HDC, int, int, int, int );
449
450BOOL OPEN32API _O32_EmptyClipboard( void);
451
452BOOL OPEN32API _O32_EnableMenuItem( HMENU, UINT, UINT );
453
454BOOL OPEN32API _O32_EnableScrollBar( HWND, UINT, UINT );
455
456BOOL OPEN32API _O32_EnableWindow( HWND, BOOL );
457
458BOOL OPEN32API _O32_EndDeferWindowPos( HDWP );
459
460BOOL OPEN32API _O32_EndDialog( HWND, int );
461
462int OPEN32API _O32_EndDoc( HDC );
463
464int OPEN32API _O32_EndPage( HDC );
465
466BOOL OPEN32API _O32_EndPath( HDC );
467
468BOOL OPEN32API _O32_EndPaint( HWND, const PAINTSTRUCT *);
469
470VOID OPEN32API _O32_EnterCriticalSection( CRITICAL_SECTION * );
471
472BOOL OPEN32API _O32_EnumChildWindows( HWND, WNDENUMPROC_O32, LPARAM );
473
474UINT OPEN32API _O32_EnumClipboardFormats( UINT );
475
476BOOL OPEN32API _O32_EnumEnhMetaFile( HDC , HENHMETAFILE, ENHMFENUMPROC_O32, PVOID, const RECT * );
477
478int OPEN32API _O32_EnumFonts( HDC , LPCSTR, OLDFONTENUMPROC_O32, LPARAM );
479
480int OPEN32API _O32_EnumFontFamilies( HDC , LPCSTR, FONTENUMPROC_O32, LPARAM );
481
482BOOL OPEN32API _O32_EnumMetaFile( HDC , HMETAFILE, MFENUMPROC_O32, LPARAM );
483
484int OPEN32API _O32_EnumObjects( HDC , int, GOBJENUMPROC_O32, LPARAM );
485
486BOOL OPEN32API _O32_EnumPrinters( DWORD, LPTSTR, DWORD, LPBYTE, DWORD, LPDWORD, LPDWORD);
487
488int OPEN32API _O32_EnumProps( HWND, PROPENUMPROC_O32 );
489
490int OPEN32API _O32_EnumPropsEx( HWND, PROPENUMPROCEX_O32, LPARAM );
491
492BOOL OPEN32API _O32_EnumThreadWindows( DWORD, WNDENUMPROC_O32, LPARAM );
493
494BOOL OPEN32API _O32_EnumWindows( WNDENUMPROC_O32, LPARAM );
495
496BOOL OPEN32API _O32_EqualRect( const RECT *, const RECT * );
497
498BOOL OPEN32API _O32_EqualRgn( HRGN, HRGN );
499
500int OPEN32API _O32_Escape( HDC, int, int, LPCSTR, PVOID );
501
502int OPEN32API _O32_ExcludeClipRect( HDC, int, int, int, int );
503
504BOOL OPEN32API _O32_ExcludeUpdateRgn( HDC, HWND );
505
506VOID OPEN32API _O32_ExitProcess( UINT );
507
508VOID OPEN32API _O32_ExitThread( DWORD );
509
510BOOL OPEN32API _O32_ExitWindows( DWORD, UINT );
511
512BOOL OPEN32API _O32_ExitWindowsEx( UINT, DWORD );
513
514HPEN OPEN32API _O32_ExtCreatePen( DWORD, DWORD, const LOGBRUSH *, DWORD, const DWORD * );
515
516HRGN OPEN32API _O32_ExtCreateRegion( const XFORM *, DWORD, const RGNDATA * );
517
518BOOL OPEN32API _O32_ExtFloodFill( HDC, int, int, COLORREF, UINT );
519
520int OPEN32API _O32_ExtSelectClipRgn( HDC, HRGN, int );
521
522BOOL OPEN32API _O32_ExtTextOut( HDC, int, int, UINT, const RECT *, LPCSTR, UINT, const int * );
523
524VOID OPEN32API _O32_FatalAppExit( UINT, LPCSTR );
525
526VOID OPEN32API _O32_FatalExit( UINT );
527
528BOOL OPEN32API _O32_FileTimeToDosDateTime( const FILETIME *, LPWORD, LPWORD );
529
530BOOL OPEN32API _O32_FileTimeToLocalFileTime( const FILETIME *, FILETIME * );
531
532BOOL OPEN32API _O32_FileTimeToSystemTime( const FILETIME *, LPSYSTEMTIME );
533
534BOOL OPEN32API _O32_FillPath( HDC );
535
536int OPEN32API _O32_FillRect( HDC, const RECT *, HBRUSH );
537
538BOOL OPEN32API _O32_FillRgn( HDC, HRGN, HBRUSH );
539
540ATOM OPEN32API _O32_FindAtom( LPCSTR );
541
542BOOL OPEN32API _O32_FindClose( HANDLE );
543
544HANDLE OPEN32API _O32_FindFirstFile( LPCSTR, LPWIN32_FIND_DATAA );
545
546BOOL OPEN32API _O32_FindNextFile( HANDLE, LPWIN32_FIND_DATAA );
547
548HRSRC OPEN32API _O32_FindResource( HINSTANCE, LPCSTR, LPCSTR );
549
550HWND OPEN32API _O32_FindText( LPFINDREPLACEA );
551
552HWND OPEN32API _O32_FindWindow( LPCSTR lpClassName , LPCSTR );
553
554BOOL OPEN32API _O32_FlashWindow( HWND, BOOL );
555
556BOOL OPEN32API _O32_FlattenPath( HDC );
557
558BOOL OPEN32API _O32_FlushFileBuffers( HANDLE );
559
560int OPEN32API _O32_FrameRect( HDC, const RECT *, HBRUSH );
561
562BOOL OPEN32API _O32_FrameRgn( HDC, HRGN, HBRUSH, int, int );
563
564BOOL OPEN32API _O32_FreeDDElParam( UINT, LONG );
565
566BOOL OPEN32API _O32_FreeLibrary( HINSTANCE );
567
568BOOL OPEN32API _O32_GdiComment(HDC hdc, UINT cbSize, CONST BYTE * lpData);
569
570UINT OPEN32API _O32_GetACP( VOID );
571
572HWND OPEN32API _O32_GetActiveWindow( void);
573
574int OPEN32API _O32_GetArcDirection( HDC );
575
576BOOL OPEN32API _O32_GetAspectRatioFilterEx( HDC, PSIZE );
577
578UINT OPEN32API _O32_GetAtomName( ATOM, LPSTR, int );
579
580LONG OPEN32API _O32_GetBitmapBits( HBITMAP, LONG, PVOID );
581
582BOOL OPEN32API _O32_GetBitmapDimensionEx( HBITMAP, PSIZE );
583
584COLORREF OPEN32API _O32_GetBkColor( HDC );
585
586int OPEN32API _O32_GetBkMode( HDC );
587
588UINT OPEN32API _O32_GetBoundsRect( HDC, PRECT, UINT );
589
590BOOL OPEN32API _O32_GetBrushOrgEx( HDC, PPOINT );
591
592HWND OPEN32API _O32_GetCapture( void);
593
594UINT OPEN32API _O32_GetCaretBlinkTime( VOID );
595
596BOOL OPEN32API _O32_GetCaretPos( PPOINT );
597
598BOOL OPEN32API _O32_GetCharABCWidths( HDC, UINT, UINT, LPABC );
599
600BOOL OPEN32API _O32_GetCharWidth( HDC, UINT, UINT, PINT );
601
602BOOL OPEN32API _O32_GetClassInfo( HINSTANCE hInstance , LPCSTR, WNDCLASSA * );
603
604DWORD OPEN32API _O32_GetClassLong( HWND, int );
605
606int OPEN32API _O32_GetClassName( HWND, LPSTR, int );
607
608WORD OPEN32API _O32_GetClassWord( HWND, int );
609
610BOOL OPEN32API _O32_GetClientRect( HWND, PRECT );
611
612HANDLE OPEN32API _O32_GetClipboardData( UINT );
613
614int OPEN32API _O32_GetClipboardFormatName( UINT, LPSTR, int );
615
616HWND OPEN32API _O32_GetClipboardOwner( void);
617
618HWND OPEN32API _O32_GetClipboardViewer( VOID );
619
620int OPEN32API _O32_GetClipBox( HDC, PRECT );
621
622BOOL OPEN32API _O32_GetClipCursor( PRECT );
623
624int OPEN32API _O32_GetClipRgn( HDC, HRGN );
625
626LPSTR OPEN32API _O32_GetCommandLine( VOID );
627
628int OPEN32API _O32_GetCurrentDirectory( DWORD, LPSTR );
629
630HGDIOBJ OPEN32API _O32_GetCurrentObject( HDC, DWORD );
631
632BOOL OPEN32API _O32_GetCurrentPositionEx( HDC, PPOINT );
633
634HANDLE OPEN32API _O32_GetCurrentProcess( VOID );
635
636DWORD OPEN32API _O32_GetCurrentProcessId( VOID );
637
638HANDLE OPEN32API _O32_GetCurrentThread( VOID );
639
640DWORD OPEN32API _O32_GetCurrentThreadId( VOID );
641
642DWORD OPEN32API _O32_GetCurrentTime( VOID );
643
644HCURSOR OPEN32API _O32_GetCursor( VOID );
645
646BOOL OPEN32API _O32_GetCursorPos( PPOINT );
647
648HDC OPEN32API _O32_GetDC( HWND );
649
650HDC OPEN32API _O32_GetDCEx( HWND, HRGN, DWORD );
651
652BOOL OPEN32API _O32_GetDCOrgEx( HDC, PPOINT );
653
654int OPEN32API _O32_GetDIBits( HDC, HBITMAP, UINT, UINT, void *, PBITMAPINFO, UINT );
655
656int OPEN32API _O32_GetDeviceCaps( HDC, int );
657
658LONG OPEN32API _O32_GetDialogBaseUnits( void);
659
660BOOL OPEN32API _O32_GetDiskFreeSpace( LPCSTR, PDWORD, PDWORD, PDWORD, PDWORD );
661
662int OPEN32API _O32_GetDlgCtrlID( HWND );
663
664HWND OPEN32API _O32_GetDlgItem( HWND, int );
665
666UINT OPEN32API _O32_GetDlgItemInt( HWND, int, PBOOL, BOOL );
667
668UINT OPEN32API _O32_GetDlgItemText( HWND, int, LPSTR, int );
669
670UINT OPEN32API _O32_GetDoubleClickTime( VOID );
671
672UINT OPEN32API _O32_GetDriveType( LPCSTR );
673
674HENHMETAFILE OPEN32API _O32_GetEnhMetaFile( LPCSTR );
675
676UINT OPEN32API _O32_GetEnhMetaFileBits( HENHMETAFILE, UINT, PBYTE );
677
678UINT OPEN32API _O32_GetEnhMetaFileHeader( HENHMETAFILE, UINT, LPENHMETAHEADER );
679
680UINT OPEN32API _O32_GetEnhMetaFilePaletteEntries( HENHMETAFILE, UINT, LPPALETTEENTRY );
681
682PVOID OPEN32API _O32_GetEnvironmentStrings( VOID );
683
684DWORD OPEN32API _O32_GetEnvironmentVariable(LPCSTR, LPSTR, DWORD );
685
686BOOL OPEN32API _O32_GetExitCodeProcess( HANDLE, LPDWORD );
687
688BOOL OPEN32API _O32_GetExitCodeThread( HANDLE, LPDWORD );
689
690DWORD OPEN32API _O32_GetFileAttributes( LPSTR );
691
692DWORD OPEN32API _O32_GetFileInformationByHandle( HANDLE, BY_HANDLE_FILE_INFORMATION * );
693
694DWORD OPEN32API _O32_GetFileSize( HANDLE, PDWORD );
695
696BOOL OPEN32API _O32_GetFileTime( HANDLE, FILETIME *, FILETIME *, FILETIME * );
697
698short OPEN32API _O32_GetFileTitle( LPCSTR, LPSTR, WORD );
699
700DWORD OPEN32API _O32_GetFileType( HANDLE );
701
702HWND OPEN32API _O32_GetFocus( VOID );
703
704HWND OPEN32API _O32_GetForegroundWindow( VOID );
705
706DWORD OPEN32API _O32_GetFullPathName( LPCSTR, DWORD, LPSTR, LPSTR * );
707
708int OPEN32API _O32_GetGraphicsMode(HDC);
709
710BOOL OPEN32API _O32_GetIconInfo( HICON, LPICONINFO );
711
712DWORD OPEN32API _O32_GetKerningPairs( HDC, DWORD, LPKERNINGPAIR );
713
714int OPEN32API _O32_GetKeyboardType( int );
715
716int OPEN32API _O32_GetKeyNameText( LPARAM, LPSTR, int );
717
718USHORT OPEN32API _O32_GetAsyncKeyState(INT nVirtKey);
719SHORT OPEN32API _O32_GetKeyState( int );
720
721HWND OPEN32API _O32_GetLastActivePopup( HWND );
722
723DWORD OPEN32API _O32_GetLastError( VOID );
724
725VOID OPEN32API _O32_GetLocalTime( LPSYSTEMTIME );
726
727DWORD OPEN32API _O32_GetLogicalDriveStrings( DWORD, LPSTR );
728
729DWORD OPEN32API _O32_GetLogicalDrives( VOID );
730
731int OPEN32API _O32_GetMapMode( HDC);
732
733HMENU OPEN32API _O32_GetMenu( HWND );
734
735LONG OPEN32API _O32_GetMenuCheckMarkDimensions(void);
736
737int OPEN32API _O32_GetMenuItemCount( HMENU );
738
739UINT OPEN32API _O32_GetMenuItemID( HMENU, int );
740
741UINT OPEN32API _O32_GetMenuState( HMENU, UINT, UINT );
742
743int OPEN32API _O32_GetMenuString( HMENU, UINT, LPSTR, int, UINT );
744
745BOOL OPEN32API _O32_GetMessage( LPMSG, HWND hwnd , UINT, UINT );
746
747LONG OPEN32API _O32_GetMessageExtraInfo( VOID );
748
749DWORD OPEN32API _O32_GetMessagePos( VOID );
750
751LONG OPEN32API _O32_GetMessageTime( VOID );
752
753HMETAFILE OPEN32API _O32_GetMetaFile( LPCSTR );
754
755UINT OPEN32API _O32_GetMetaFileBitsEx( HMETAFILE, UINT, LPVOID );
756
757BOOL OPEN32API _O32_GetMiterLimit( HDC, float *);
758
759DWORD OPEN32API _O32_GetModuleFileName( HINSTANCE, LPSTR, DWORD );
760
761HMODULE OPEN32API _O32_GetModuleHandle( LPCSTR );
762
763COLORREF OPEN32API _O32_GetNearestColor( HDC, COLORREF );
764
765UINT OPEN32API _O32_GetNearestPaletteIndex( HPALETTE, COLORREF );
766
767HWND OPEN32API _O32_GetNextDlgGroupItem( HWND, HWND, BOOL );
768
769HWND OPEN32API _O32_GetNextDlgTabItem( HWND, HWND, BOOL );
770
771HWND OPEN32API _O32_GetNextWindow( HWND, UINT );
772
773int OPEN32API _O32_GetOEMCP( VOID );
774
775int OPEN32API _O32_GetObject( HGDIOBJ, int, void * );
776
777DWORD OPEN32API _O32_GetObjectType( HGDIOBJ );
778
779HWND OPEN32API _O32_GetOpenClipboardWindow( VOID );
780
781BOOL OPEN32API _O32_GetOpenFileName( LPOPENFILENAMEA );
782
783UINT OPEN32API _O32_GetOutlineTextMetrics( HDC, UINT, LPOUTLINETEXTMETRICA );
784
785BOOL OPEN32API _O32_GetOverlappedResult(HANDLE, LPOVERLAPPED, LPDWORD, BOOL );
786
787UINT OPEN32API _O32_GetPaletteEntries( HPALETTE, UINT, UINT, PPALETTEENTRY );
788
789HWND OPEN32API _O32_GetParent( HWND );
790
791UINT OPEN32API _O32_GetPath( HDC, PPOINT, PBYTE, int );
792
793COLORREF OPEN32API _O32_GetPixel( HDC, int, int );
794
795int OPEN32API _O32_GetPolyFillMode( HDC);
796
797DWORD OPEN32API _O32_GetPriorityClass( HANDLE );
798
799int OPEN32API _O32_GetPriorityClipboardFormat( PUINT, int );
800
801UINT OPEN32API _O32_GetPrivateProfileInt( LPCSTR, LPCSTR, INT, LPCSTR );
802
803DWORD OPEN32API _O32_GetPrivateProfileString( LPCSTR, LPCSTR, LPCSTR, LPSTR, DWORD, LPCSTR );
804
805FARPROC OPEN32API _O32_GetProcAddress( HMODULE, LPCSTR );
806
807UINT OPEN32API _O32_GetProfileInt( LPCSTR, LPCSTR, INT );
808
809DWORD OPEN32API _O32_GetProfileString( LPCSTR, LPCSTR, LPCSTR, LPSTR, DWORD );
810
811HANDLE OPEN32API _O32_GetProp( HWND, LPCSTR );
812
813DWORD OPEN32API _O32_GetQueueStatus( UINT );
814
815int OPEN32API _O32_GetROP2( HDC );
816
817BOOL OPEN32API _O32_GetRasterizerCaps( LPRASTERIZER_STATUS, UINT );
818
819int OPEN32API _O32_GetRgnBox( HRGN, PRECT );
820
821DWORD OPEN32API _O32_GetRegionData( HRGN, DWORD, PRGNDATA );
822
823BOOL OPEN32API _O32_GetSaveFileName( LPOPENFILENAMEA );
824
825int OPEN32API _O32_GetScrollPos( HWND, int );
826
827BOOL OPEN32API _O32_GetScrollRange( HWND, int, int *, int * );
828
829HANDLE OPEN32API _O32_GetStdHandle( DWORD );
830
831HGDIOBJ OPEN32API _O32_GetStockObject( int );
832
833int OPEN32API _O32_GetStretchBltMode( HDC );
834
835HMENU OPEN32API _O32_GetSubMenu( HWND, int );
836
837DWORD OPEN32API _O32_GetSysColor( int );
838
839UINT OPEN32API _O32_GetSystemDirectory( LPSTR, UINT );
840
841HMENU OPEN32API _O32_GetSystemMenu( HWND, BOOL );
842
843int OPEN32API _O32_GetSystemMetrics( int );
844
845UINT OPEN32API _O32_GetSystemPaletteEntries( HDC, UINT, UINT, PPALETTEENTRY );
846
847void OPEN32API _O32_GetSystemTime( LPSYSTEMTIME );
848
849DWORD OPEN32API _O32_GetTabbedTextExtent( HDC, LPCSTR, int, int, int * );
850
851UINT OPEN32API _O32_GetTempFileName( LPCSTR, LPCSTR, UINT, LPSTR );
852
853DWORD OPEN32API _O32_GetTempPath( DWORD, LPSTR );
854
855UINT OPEN32API _O32_GetTextAlign( HDC);
856
857int OPEN32API _O32_GetTextCharacterExtra( HDC);
858
859COLORREF OPEN32API _O32_GetTextColor( HDC );
860
861BOOL OPEN32API _O32_GetTextExtentPoint( HDC, LPCSTR, int, PSIZE );
862
863BOOL OPEN32API _O32_GetTextExtentPoint32( HDC, LPCSTR, int, PSIZE );
864
865int OPEN32API _O32_GetTextFace( HDC, int, LPSTR );
866
867BOOL OPEN32API _O32_GetTextMetrics( HDC, LPTEXTMETRICA );
868
869DWORD OPEN32API _O32_GetThreadPriority( HANDLE );
870
871DWORD OPEN32API _O32_GetTickCount( VOID );
872
873DWORD OPEN32API _O32_GetTimeZoneInformation( LPTIME_ZONE_INFORMATION );
874
875HWND OPEN32API _O32_GetTopWindow( HWND );
876
877BOOL OPEN32API _O32_GetUpdateRect( HWND, PRECT, BOOL );
878
879int OPEN32API _O32_GetUpdateRgn( HWND, HRGN, BOOL );
880
881BOOL OPEN32API _O32_GetViewportExtEx( HDC, PSIZE );
882
883BOOL OPEN32API _O32_GetViewportOrgEx( HDC, PPOINT );
884
885DWORD OPEN32API _O32_GetVolumeInformation( LPCSTR, LPSTR, DWORD, PDWORD,
886 PDWORD, PDWORD, LPSTR, DWORD );
887
888UINT OPEN32API _O32_GetWinMetaFileBits( HENHMETAFILE, UINT, PBYTE, int, HDC);
889
890HWND OPEN32API _O32_GetWindow( HWND, UINT );
891
892HDC OPEN32API _O32_GetWindowDC( HWND );
893
894BOOL OPEN32API _O32_GetWindowExtEx( HDC, PSIZE );
895
896LONG OPEN32API _O32_GetWindowLong( HWND, int );
897
898BOOL OPEN32API _O32_GetWindowOrgEx( HDC, PPOINT );
899
900BOOL OPEN32API _O32_GetWindowPlacement( HWND, LPWINDOWPLACEMENT );
901
902BOOL OPEN32API _O32_GetWindowRect( HWND, PRECT );
903
904UINT OPEN32API _O32_GetWindowsDirectory( LPSTR, UINT );
905
906int OPEN32API _O32_GetWindowText( HWND, LPSTR, int );
907
908int OPEN32API _O32_GetWindowTextLength( HWND );
909
910DWORD OPEN32API _O32_GetWindowThreadProcessId(HWND, PDWORD );
911
912WORD OPEN32API _O32_GetWindowWord( HWND, int );
913
914BOOL OPEN32API _O32_GetWorldTransform( HDC, LPXFORM );
915
916ATOM OPEN32API _O32_GlobalAddAtom( LPCSTR );
917
918HGLOBAL OPEN32API _O32_GlobalAlloc( UINT, DWORD );
919
920ATOM OPEN32API _O32_GlobalDeleteAtom( ATOM );
921
922HGLOBAL OPEN32API _O32_GlobalDiscard( HGLOBAL );
923
924ATOM OPEN32API _O32_GlobalFindAtom( LPCSTR );
925
926UINT OPEN32API _O32_GlobalFlags( HGLOBAL );
927
928HGLOBAL OPEN32API _O32_GlobalFree( HGLOBAL );
929
930UINT OPEN32API _O32_GlobalGetAtomName( ATOM, LPSTR, int );
931
932HGLOBAL OPEN32API _O32_GlobalHandle( PVOID memPtr );
933
934PVOID OPEN32API _O32_GlobalLock( HGLOBAL hglbMem );
935
936VOID OPEN32API _O32_GlobalMemoryStatus( LPMEMORYSTATUS );
937
938HGLOBAL OPEN32API _O32_GlobalReAlloc( HGLOBAL, DWORD, UINT );
939
940DWORD OPEN32API _O32_GlobalSize( HGLOBAL );
941
942BOOL OPEN32API _O32_GlobalUnlock( HGLOBAL hglbMem );
943
944PVOID OPEN32API _O32_HeapAlloc( HANDLE, DWORD, DWORD );
945
946HANDLE OPEN32API _O32_HeapCreate( DWORD, DWORD, DWORD );
947
948BOOL OPEN32API _O32_HeapDestroy( HANDLE );
949
950BOOL OPEN32API _O32_HeapFree( HANDLE, DWORD, PVOID );
951
952PVOID OPEN32API _O32_HeapReAlloc( HANDLE, DWORD, PVOID, DWORD );
953
954DWORD OPEN32API _O32_HeapSize( HANDLE, DWORD, PVOID );
955
956BOOL OPEN32API _O32_HideCaret( HWND );
957
958BOOL OPEN32API _O32_HiliteMenuItem( HWND, HMENU, UINT, UINT );
959
960BOOL OPEN32API _O32_InflateRect( PRECT, int, int );
961
962BOOL OPEN32API _O32_InSendMessage( VOID );
963
964BOOL OPEN32API _O32_InitAtomTable( DWORD );
965
966VOID OPEN32API _O32_InitializeCriticalSection( CRITICAL_SECTION * );
967
968BOOL OPEN32API _O32_InsertMenu( HMENU, UINT, UINT, UINT, LPCSTR );
969
970LONG OPEN32API _O32_InterlockedDecrement( PLONG );
971
972LONG OPEN32API _O32_InterlockedExchange( PLONG, LONG );
973
974LONG OPEN32API _O32_InterlockedIncrement( PLONG );
975
976int OPEN32API _O32_IntersectClipRect( HDC, int, int, int, int );
977
978BOOL OPEN32API _O32_IntersectRect( PRECT, const RECT * rect1, const RECT * rect2);
979
980BOOL OPEN32API _O32_InvalidateRect( HWND, const RECT *, BOOL );
981
982BOOL OPEN32API _O32_InvalidateRgn( HWND, HRGN, BOOL );
983
984BOOL OPEN32API _O32_InvertRect( HDC, const RECT *);
985
986BOOL OPEN32API _O32_InvertRgn( HDC, HRGN );
987
988BOOL OPEN32API _O32_IsBadCodePtr( FARPROC );
989
990BOOL OPEN32API _O32_IsBadReadPtr( const VOID *, UINT );
991
992BOOL OPEN32API _O32_IsBadStringPtr( LPCSTR, UINT );
993
994BOOL OPEN32API _O32_IsBadWritePtr( PVOID, UINT );
995
996BOOL OPEN32API _O32_IsChild( HWND, HWND );
997
998BOOL OPEN32API _O32_IsClipboardFormatAvailable( UINT );
999
1000BOOL OPEN32API _O32_IsDBCSLeadByte( BYTE );
1001
1002BOOL OPEN32API _O32_IsDialogMessage( HWND, LPMSG );
1003
1004BOOL OPEN32API _O32_IsDlgButtonChecked( HWND, int );
1005
1006BOOL OPEN32API _O32_IsIconic( HWND );
1007
1008BOOL OPEN32API _O32_IsMenu( HMENU );
1009
1010BOOL OPEN32API _O32_IsRectEmpty( const RECT *);
1011
1012BOOL OPEN32API _O32_IsWindow( HWND );
1013
1014BOOL OPEN32API _O32_IsWindowEnabled( HWND );
1015
1016BOOL OPEN32API _O32_IsWindowVisible( HWND );
1017
1018BOOL OPEN32API _O32_IsZoomed( HWND );
1019
1020BOOL OPEN32API _O32_KillTimer(HWND, UINT );
1021
1022BOOL OPEN32API _O32_LPtoDP( HDC, PPOINT, int );
1023
1024VOID OPEN32API _O32_LeaveCriticalSection( CRITICAL_SECTION * );
1025
1026BOOL OPEN32API _O32_LineDDA( int, int, int, int, LINEDDAPROC_O32, LPARAM );
1027
1028 BOOL OPEN32API _O32_LineTo( HDC, int, int );
1029
1030HACCEL OPEN32API _O32_LoadAccelerators( HINSTANCE, LPCSTR );
1031
1032HBITMAP OPEN32API _O32_LoadBitmap( HINSTANCE, LPCSTR );
1033
1034HCURSOR OPEN32API _O32_LoadCursor( HINSTANCE, LPCSTR );
1035
1036HICON OPEN32API _O32_LoadIcon( HINSTANCE, LPCSTR );
1037
1038HINSTANCE OPEN32API _O32_LoadLibrary( LPCSTR );
1039
1040HMENU OPEN32API _O32_LoadMenu( HINSTANCE, LPCSTR );
1041
1042HMENU OPEN32API _O32_LoadMenuIndirect( const MENUITEMTEMPLATEHEADER * );
1043
1044DWORD OPEN32API _O32_LoadModule( LPCSTR, PVOID );
1045
1046HGLOBAL OPEN32API _O32_LoadResource( HINSTANCE, HRSRC );
1047
1048PVOID OPEN32API _O32_LockResource( HGLOBAL );
1049
1050int OPEN32API _O32_LoadString( HINSTANCE, UINT, LPSTR, int );
1051
1052HLOCAL OPEN32API _O32_LocalAlloc( UINT, UINT );
1053
1054HLOCAL OPEN32API _O32_LocalDiscard( HLOCAL );
1055
1056UINT OPEN32API _O32_LocalFlags( HLOCAL );
1057
1058BOOL OPEN32API _O32_LocalFileTimeToFileTime( const FILETIME *, FILETIME * );
1059
1060HLOCAL OPEN32API _O32_LocalFree( HLOCAL );
1061
1062HLOCAL OPEN32API _O32_LocalHandle( PVOID lpvMem );
1063
1064BOOL OPEN32API _O32_LocalUnlock( HLOCAL hlocal);
1065
1066HLOCAL OPEN32API _O32_LocalReAlloc( HLOCAL, UINT, UINT );
1067
1068UINT OPEN32API _O32_LocalSize( HLOCAL );
1069
1070PVOID OPEN32API _O32_LocalLock( HLOCAL hlocal );
1071
1072BOOL OPEN32API _O32_LockFile( HANDLE, DWORD, DWORD, DWORD, DWORD );
1073
1074BOOL OPEN32API _O32_LockWindowUpdate( HWND );
1075
1076BOOL OPEN32API _O32_MapDialogRect( HWND, PRECT );
1077
1078UINT OPEN32API _O32_MapVirtualKey( UINT, UINT );
1079
1080int OPEN32API _O32_MapWindowPoints( HWND, HWND, PPOINT, int );
1081
1082BOOL OPEN32API _O32_MaskBlt( HDC, int, int, int, int, HDC hdcSrc, int, int, HBITMAP, int, int, DWORD );
1083
1084int OPEN32API _O32_MessageBox( HWND hwnd , LPCSTR, LPCSTR, UINT );
1085
1086BOOL OPEN32API _O32_MessageBeep( UINT );
1087
1088DWORD OPEN32API _O32_MsgWaitForMultipleObjects( DWORD, LPHANDLE, BOOL, DWORD, DWORD );
1089
1090BOOL OPEN32API _O32_ModifyMenu( HMENU, UINT, UINT, UINT, LPCSTR );
1091
1092BOOL OPEN32API _O32_ModifyWorldTransform( HDC, LPXFORM, DWORD );
1093
1094BOOL OPEN32API _O32_MoveFile( LPCSTR, LPCSTR );
1095
1096BOOL OPEN32API _O32_MoveToEx( HDC, int, int, PPOINT );
1097
1098BOOL OPEN32API _O32_MoveWindow( HWND, int, int, int, int, BOOL );
1099
1100int OPEN32API _O32_MulDiv(int, int, int );
1101
1102int OPEN32API _O32_OffsetClipRgn( HDC, int, int );
1103
1104BOOL OPEN32API _O32_OffsetRect( PRECT, int, int );
1105
1106int OPEN32API _O32_OffsetRgn( HRGN, int, int );
1107
1108BOOL OPEN32API _O32_OffsetViewportOrgEx( HDC, int, int, PPOINT );
1109
1110BOOL OPEN32API _O32_OffsetWindowOrgEx( HDC, int, int, PPOINT );
1111
1112BOOL OPEN32API _O32_OpenClipboard( HWND );
1113
1114HANDLE OPEN32API _O32_OpenEvent( DWORD, BOOL, LPCSTR );
1115
1116HFILE OPEN32API _O32_OpenFile( LPCSTR, LPOFSTRUCT, UINT );
1117
1118HANDLE OPEN32API _O32_OpenMutex( DWORD, BOOL, LPCSTR );
1119
1120HANDLE OPEN32API _O32_OpenProcess( DWORD, BOOL, DWORD );
1121
1122HANDLE OPEN32API _O32_OpenSemaphore( DWORD, BOOL, LPCSTR );
1123
1124VOID OPEN32API _O32_OutputDebugString( LPCSTR );
1125
1126LONG OPEN32API _O32_PackDDElParam(UINT, UINT, UINT );
1127
1128BOOL OPEN32API _O32_PaintRgn( HDC, HRGN );
1129
1130BOOL OPEN32API _O32_PatBlt( HDC, int, int, int, int, DWORD );
1131
1132HRGN OPEN32API _O32_PathToRegion( HDC);
1133
1134BOOL OPEN32API _O32_PeekMessage( LPMSG, HWND, UINT, UINT, UINT );
1135
1136BOOL OPEN32API _O32_Pie( HDC, int, int, int, int, int, int, int, int );
1137
1138BOOL OPEN32API _O32_PlayEnhMetaFile( HDC, HENHMETAFILE, const RECT * );
1139
1140BOOL OPEN32API _O32_PlayMetaFile( HDC, HMETAFILE );
1141
1142BOOL OPEN32API _O32_PlayMetaFileRecord( HDC, LPHANDLETABLE, PMETARECORD, int );
1143
1144BOOL OPEN32API _O32_PolyBezier( HDC, const POINT *, int );
1145
1146BOOL OPEN32API _O32_PolyBezierTo( HDC, const POINT *, DWORD );
1147
1148BOOL OPEN32API _O32_PolyDraw( HDC, const POINT *, const BYTE *, int );
1149
1150BOOL OPEN32API _O32_Polygon( HDC, const POINT *, int );
1151
1152BOOL OPEN32API _O32_Polyline( HDC, const POINT *, int );
1153
1154BOOL OPEN32API _O32_PolylineTo( HDC, const POINT *, DWORD );
1155
1156BOOL OPEN32API _O32_PolyPolygon( HDC, const POINT *, const int *, int );
1157
1158BOOL OPEN32API _O32_PolyPolyline( HDC, const POINT *, const DWORD *, DWORD );
1159
1160VOID OPEN32API _O32_PostQuitMessage( int );
1161
1162BOOL OPEN32API _O32_PostMessage( HWND, UINT, WPARAM mp1, LPARAM mp2 );
1163
1164BOOL OPEN32API _O32_PostThreadMessage( DWORD, UINT, WPARAM, LPARAM );
1165
1166BOOL OPEN32API _O32_PtInRect( const RECT *, POINT );
1167
1168BOOL OPEN32API _O32_PtInRegion( HRGN, int, int );
1169
1170BOOL OPEN32API _O32_PtVisible( HDC, int, int );
1171
1172BOOL OPEN32API _O32_PrintDlg( LPPRINTDLGA );
1173
1174BOOL OPEN32API _O32_PulseEvent ( HANDLE );
1175
1176BOOL OPEN32API _O32_ReadFile( HANDLE, PVOID, DWORD, PDWORD, LPOVERLAPPED );
1177
1178UINT OPEN32API _O32_RealizePalette( HDC);
1179
1180BOOL OPEN32API _O32_RectInRegion( HRGN, const RECT * );
1181
1182BOOL OPEN32API _O32_RectVisible( HDC, const RECT *);
1183
1184BOOL OPEN32API _O32_Rectangle( HDC, int, int, int, int );
1185
1186BOOL OPEN32API _O32_RedrawWindow( HWND, const RECT *, HRGN, DWORD );
1187
1188LONG OPEN32API _O32_RegCloseKey( HKEY );
1189
1190LONG OPEN32API _O32_RegCreateKey( HKEY, LPCSTR, PHKEY );
1191
1192LONG OPEN32API _O32_RegCreateKeyEx( HKEY, LPCSTR, DWORD, LPSTR, DWORD, REGSAM, LPSECURITY_ATTRIBUTES, PHKEY, PDWORD );
1193
1194LONG OPEN32API _O32_RegDeleteKey( HKEY, LPCSTR );
1195
1196LONG OPEN32API _O32_RegDeleteValue( HKEY, LPSTR );
1197
1198LONG OPEN32API _O32_RegEnumKey( HKEY, DWORD, LPSTR, DWORD );
1199
1200LONG OPEN32API _O32_RegEnumKeyEx( HKEY, DWORD, LPSTR, PDWORD, PDWORD, LPSTR, PDWORD, FILETIME * );
1201
1202LONG OPEN32API _O32_RegEnumValue( HKEY, DWORD, LPSTR, PDWORD, PDWORD, PDWORD, LPBYTE, PDWORD );
1203
1204LONG OPEN32API _O32_RegOpenKey( HKEY, LPCSTR, PHKEY );
1205
1206LONG OPEN32API _O32_RegOpenKeyEx( HKEY, LPCSTR, DWORD, REGSAM, PHKEY );
1207
1208LONG OPEN32API _O32_RegQueryInfoKey( HKEY, LPSTR, PDWORD, PDWORD, PDWORD, PDWORD,
1209 PDWORD, PDWORD, PDWORD, PDWORD, PDWORD, FILETIME * );
1210
1211LONG OPEN32API _O32_RegQueryValue( HKEY, LPCSTR, LPSTR, PLONG );
1212
1213LONG OPEN32API _O32_RegQueryValueEx( HKEY, LPCSTR, PDWORD, PDWORD, LPBYTE, PDWORD );
1214
1215LONG OPEN32API _O32_RegSetValue( HKEY, LPCSTR, DWORD, LPCSTR, DWORD );
1216
1217LONG OPEN32API _O32_RegSetValueEx( HKEY, LPCSTR, DWORD, DWORD, const BYTE *, DWORD );
1218
1219WORD OPEN32API _O32_RegisterClass( const WNDCLASSA *);
1220
1221UINT OPEN32API _O32_RegisterClipboardFormat( LPCSTR );
1222
1223UINT OPEN32API _O32_RegisterWindowMessage( LPCSTR );
1224
1225BOOL OPEN32API _O32_ReleaseCapture( void );
1226
1227int OPEN32API _O32_ReleaseDC( HWND, HDC );
1228
1229BOOL OPEN32API _O32_ReleaseMutex( HANDLE );
1230
1231BOOL OPEN32API _O32_ReleaseSemaphore( HANDLE, LONG, PLONG );
1232
1233BOOL OPEN32API _O32_RemoveDirectory( LPCSTR );
1234
1235BOOL OPEN32API _O32_RemoveFontResource( LPCSTR );
1236
1237BOOL OPEN32API _O32_RemoveMenu( HMENU, UINT, UINT );
1238
1239HANDLE OPEN32API _O32_RemoveProp( HWND, LPCSTR );
1240
1241HWND OPEN32API _O32_ReplaceText( LPFINDREPLACEA );
1242
1243BOOL OPEN32API _O32_ReplyMessage( LRESULT );
1244
1245BOOL OPEN32API _O32_ResetDC( HDC, const DEVMODEA * );
1246
1247BOOL OPEN32API _O32_ResetEvent( HANDLE );
1248
1249BOOL OPEN32API _O32_ResizePalette( HPALETTE, UINT );
1250
1251BOOL OPEN32API _O32_RestoreDC( HDC, int );
1252
1253DWORD OPEN32API _O32_ResumeThread( HANDLE );
1254
1255LONG OPEN32API _O32_ReuseDDElParam( LONG, UINT, UINT, UINT, UINT );
1256
1257BOOL OPEN32API _O32_RoundRect( HDC, int, int, int, int, int, int );
1258
1259int OPEN32API _O32_SaveDC( HDC );
1260
1261BOOL OPEN32API _O32_ScaleViewportExtEx( HDC, int, int, int, int, PSIZE );
1262
1263BOOL OPEN32API _O32_ScaleWindowExtEx( HDC, int, int, int, int, PSIZE );
1264
1265BOOL OPEN32API _O32_ScreenToClient( HWND, PPOINT );
1266
1267BOOL OPEN32API _O32_ScrollDC( HDC, int, int, const RECT *, const RECT *, HRGN, PRECT );
1268
1269BOOL OPEN32API _O32_ScrollWindow( HWND, int, int, const RECT *, const RECT * );
1270
1271BOOL OPEN32API _O32_ScrollWindowEx( HWND, int, int, const RECT *, const RECT *, HRGN, PRECT, UINT );
1272
1273DWORD OPEN32API _O32_SearchPath( LPCSTR, LPCSTR, LPCSTR, DWORD, LPSTR, LPSTR *);
1274
1275int OPEN32API _O32_SelectClipRgn( HDC, HRGN );
1276
1277HGDIOBJ OPEN32API _O32_SelectObject( HDC, HGDIOBJ );
1278
1279HPALETTE OPEN32API _O32_SelectPalette( HDC, HPALETTE, BOOL );
1280
1281LONG OPEN32API _O32_SendDlgItemMessage( HWND, int, UINT, WPARAM, LPARAM );
1282
1283LRESULT OPEN32API _O32_SendMessage( HWND, UINT, WPARAM mp1, LPARAM mp2 );
1284
1285HWND OPEN32API _O32_SetActiveWindow( HWND );
1286
1287int OPEN32API _O32_SetArcDirection( HDC, int );
1288
1289LONG OPEN32API _O32_SetBitmapBits( HBITMAP, DWORD, const VOID * );
1290
1291BOOL OPEN32API _O32_SetBitmapDimensionEx( HBITMAP, int, int, PSIZE );
1292
1293COLORREF OPEN32API _O32_SetBkColor( HDC, COLORREF );
1294
1295int OPEN32API _O32_SetBkMode( HDC, int );
1296
1297LONG OPEN32API _O32_SetBoundsRect( HDC, const RECT *, UINT );
1298
1299BOOL OPEN32API _O32_SetBrushOrgEx( HDC, int, int, PPOINT );
1300
1301HWND OPEN32API _O32_SetCapture( HWND );
1302
1303BOOL OPEN32API _O32_SetCaretBlinkTime( UINT );
1304
1305BOOL OPEN32API _O32_SetCaretPos( int, int );
1306
1307DWORD OPEN32API _O32_SetClassLong( HWND, int, LONG );
1308
1309WORD OPEN32API _O32_SetClassWord( HWND, int, WORD );
1310
1311HANDLE OPEN32API _O32_SetClipboardData( UINT, HANDLE );
1312
1313HWND OPEN32API _O32_SetClipboardViewer( HWND );
1314
1315BOOL OPEN32API _O32_SetCurrentDirectory( LPSTR );
1316
1317HCURSOR OPEN32API _O32_SetCursor( HCURSOR );
1318
1319BOOL OPEN32API _O32_SetCursorPos( int, int );
1320
1321int OPEN32API _O32_SetDIBits( HDC, HBITMAP, UINT, UINT, const VOID *, const BITMAPINFO *, UINT );
1322
1323int OPEN32API _O32_SetDIBitsToDevice( HDC, int, int, int, int, int, int, UINT, UINT, PVOID, PBITMAPINFO, UINT );
1324
1325BOOL OPEN32API _O32_SetDlgItemInt( HWND, int, UINT, BOOL );
1326
1327BOOL OPEN32API _O32_SetDlgItemText( HWND, int, LPCSTR );
1328
1329BOOL OPEN32API _O32_SetDoubleClickTime( UINT );
1330
1331BOOL OPEN32API _O32_SetEndOfFile( HANDLE );
1332
1333HENHMETAFILE OPEN32API _O32_SetEnhMetaFileBits( UINT, const BYTE * );
1334
1335BOOL OPEN32API _O32_SetEnvironmentVariable( LPCSTR, LPCSTR );
1336
1337BOOL OPEN32API _O32_SetEvent( HANDLE );
1338
1339BOOL OPEN32API _O32_SetFileAttributes( LPCSTR, DWORD );
1340
1341DWORD OPEN32API _O32_SetFilePointer( HANDLE, LONG, PLONG, DWORD );
1342
1343BOOL OPEN32API _O32_SetFileTime( HANDLE, const FILETIME *, const FILETIME *, const FILETIME * );
1344
1345HWND OPEN32API _O32_SetFocus( HWND );
1346
1347BOOL OPEN32API _O32_SetForegroundWindow( HWND );
1348
1349int OPEN32API _O32_SetGraphicsMode(HDC, int );
1350
1351UINT OPEN32API _O32_SetHandleCount( UINT );
1352
1353VOID OPEN32API _O32_SetLastError( DWORD );
1354
1355BOOL OPEN32API _O32_SetLocalTime( const SYSTEMTIME * );
1356
1357int OPEN32API _O32_SetMapMode( HDC, int );
1358
1359DWORD OPEN32API _O32_SetMapperFlags( HDC, DWORD );
1360
1361BOOL OPEN32API _O32_SetMenu( HWND, HMENU );
1362
1363BOOL OPEN32API _O32_SetMenuItemBitmaps( HMENU, UINT, UINT, HBITMAP, HBITMAP );
1364
1365HMETAFILE OPEN32API _O32_SetMetaFileBitsEx( UINT, PBYTE );
1366
1367BOOL OPEN32API _O32_SetMiterLimit( HDC, float limit, float * );
1368
1369UINT OPEN32API _O32_SetPaletteEntries( HPALETTE, UINT, UINT, const PALETTEENTRY *);
1370
1371HWND OPEN32API _O32_SetParent( HWND, HWND );
1372
1373COLORREF
1374 OPEN32API _O32_SetPixel( HDC, int, int, COLORREF );
1375
1376int OPEN32API _O32_SetPolyFillMode( HDC, int );
1377
1378BOOL OPEN32API _O32_SetPriorityClass( HANDLE, DWORD );
1379
1380BOOL OPEN32API _O32_SetProp( HWND, LPCSTR, HANDLE );
1381
1382BOOL OPEN32API _O32_SetRect( PRECT, int, int, int, int );
1383
1384BOOL OPEN32API _O32_SetRectEmpty( PRECT );
1385
1386BOOL OPEN32API _O32_SetRectRgn( HRGN, int, int, int, int );
1387
1388int OPEN32API _O32_SetROP2( HDC, int );
1389
1390int OPEN32API _O32_SetScrollPos( HWND, int, int, BOOL );
1391
1392BOOL OPEN32API _O32_SetScrollRange( HWND, int, int, int, BOOL );
1393
1394BOOL OPEN32API _O32_SetStdHandle( DWORD, HANDLE );
1395
1396int OPEN32API _O32_SetStretchBltMode( HDC, int );
1397
1398UINT OPEN32API _O32_SetSysColors( int, const int *, const COLORREF * );
1399
1400BOOL OPEN32API _O32_SetSystemTime( const SYSTEMTIME * );
1401
1402BOOL OPEN32API _O32_SetTimeZoneInformation( const TIME_ZONE_INFORMATION * );
1403
1404UINT OPEN32API _O32_SetTextAlign( HDC, UINT );
1405
1406int OPEN32API _O32_SetTextCharacterExtra( HDC, int );
1407
1408COLORREF OPEN32API _O32_SetTextColor( HDC, COLORREF );
1409
1410BOOL OPEN32API _O32_SetTextJustification( HDC, int, int );
1411
1412BOOL OPEN32API _O32_SetThreadPriority( HANDLE, int );
1413
1414UINT OPEN32API _O32_SetTimer( HWND, UINT, UINT, TIMERPROC_O32 );
1415
1416BOOL OPEN32API _O32_SetViewportExtEx( HDC, int, int, PSIZE );
1417
1418BOOL OPEN32API _O32_SetViewportOrgEx( HDC, int, int, PPOINT );
1419
1420BOOL OPEN32API _O32_SetVolumeLabel( LPCSTR, LPCSTR );
1421
1422BOOL OPEN32API _O32_SetWindowExtEx( HDC, int, int, PSIZE );
1423
1424LONG OPEN32API _O32_SetWindowLong( HWND, int, LONG );
1425
1426BOOL OPEN32API _O32_SetWindowOrgEx( HDC, int, int, PPOINT );
1427
1428BOOL OPEN32API _O32_SetWindowPlacement( HWND, const WINDOWPLACEMENT * );
1429
1430BOOL OPEN32API _O32_SetWindowPos( HWND, HWND, int, int, int, int, UINT );
1431
1432HHOOK OPEN32API _O32_SetWindowsHookEx( int, HOOKPROC_O32, HINSTANCE, DWORD );
1433
1434BOOL OPEN32API _O32_SetWindowText( HWND, LPCSTR );
1435
1436WORD OPEN32API _O32_SetWindowWord( HWND, int, WORD );
1437
1438HENHMETAFILE OPEN32API _O32_SetWinMetaFileBits( UINT, const BYTE *, HDC, const METAFILEPICT * );
1439
1440BOOL OPEN32API _O32_SetWorldTransform( HDC, LPXFORM );
1441
1442BOOL OPEN32API _O32_ShowCaret( HWND );
1443
1444int OPEN32API _O32_ShowCursor( BOOL );
1445
1446BOOL OPEN32API _O32_ShowOwnedPopups( HWND, BOOL );
1447
1448BOOL OPEN32API _O32_ShowScrollBar( HWND, int, BOOL );
1449
1450BOOL OPEN32API _O32_ShowWindow( HWND, int );
1451
1452DWORD OPEN32API _O32_SizeofResource( HINSTANCE, HRSRC );
1453
1454VOID OPEN32API _O32_Sleep( DWORD );
1455
1456int OPEN32API _O32_StartDoc( HDC, LPDOCINFOA );
1457
1458int OPEN32API _O32_StartPage( HDC );
1459
1460int OPEN32API _O32_StretchDIBits( HDC, int, int, int, int, int, int, int, int, void *, PBITMAPINFO, UINT, DWORD );
1461
1462BOOL OPEN32API _O32_StretchBlt( HDC, int, int, int, int, HDC, int, int, int, int, DWORD );
1463
1464BOOL OPEN32API _O32_StrokeAndFillPath( HDC );
1465
1466BOOL OPEN32API _O32_StrokePath( HDC );
1467
1468BOOL OPEN32API _O32_SubtractRect( PRECT, const RECT *, const RECT *);
1469
1470DWORD OPEN32API _O32_SuspendThread( HANDLE );
1471
1472BOOL OPEN32API _O32_SwapMouseButton( BOOL );
1473
1474UINT OPEN32API _O32_SystemParametersInfo( UINT, UINT, PVOID, UINT );
1475
1476BOOL OPEN32API _O32_SystemTimeToFileTime( const SYSTEMTIME *, FILETIME * );
1477
1478BOOL OPEN32API _O32_SystemTimeToTzSpecificLocalTime( LPTIME_ZONE_INFORMATION, LPSYSTEMTIME, LPSYSTEMTIME );
1479
1480LONG OPEN32API _O32_TabbedTextOut( HDC, int, int, LPCSTR, int, int, int *, int );
1481
1482BOOL OPEN32API _O32_TerminateProcess( HANDLE, UINT );
1483
1484BOOL OPEN32API _O32_TerminateThread( HANDLE, DWORD );
1485
1486BOOL OPEN32API _O32_TextOut( HDC, int, int, LPCSTR, int );
1487
1488DWORD OPEN32API _O32_TlsAlloc( VOID );
1489
1490BOOL OPEN32API _O32_TlsFree( DWORD );
1491
1492PVOID OPEN32API _O32_TlsGetValue( DWORD );
1493
1494BOOL OPEN32API _O32_TlsSetValue( DWORD, PVOID );
1495
1496BOOL OPEN32API _O32_TrackPopupMenu( HMENU, UINT, int, int, int, HWND, const RECT * );
1497
1498int OPEN32API _O32_TranslateAccelerator( HWND, HACCEL, LPMSG );
1499
1500BOOL OPEN32API _O32_TranslateMDISysAccel( HWND, LPMSG );
1501
1502BOOL OPEN32API _O32_TranslateMessage( const MSG * );
1503
1504BOOL OPEN32API _O32_UnhookWindowsHookEx( HHOOK );
1505
1506BOOL OPEN32API _O32_UnionRect( PRECT, const RECT *, const RECT * );
1507
1508BOOL OPEN32API _O32_UnlockFile( HANDLE, DWORD, DWORD, DWORD, DWORD );
1509
1510BOOL OPEN32API _O32_UnpackDDElParam(UINT, LONG, PUINT, PUINT );
1511
1512BOOL OPEN32API _O32_UnrealizeObject( HGDIOBJ );
1513
1514BOOL OPEN32API _O32_UnregisterClass( LPCSTR, HINSTANCE );
1515
1516BOOL OPEN32API _O32_UpdateWindow( HWND );
1517
1518BOOL OPEN32API _O32_ValidateRect( HWND, const RECT *);
1519
1520BOOL OPEN32API _O32_ValidateRgn( HWND, HRGN );
1521
1522SHORT OPEN32API _O32_VkKeyScan( char keyScan);
1523
1524DWORD OPEN32API _O32_WaitForMultipleObjects( DWORD, const HANDLE *, BOOL, DWORD );
1525
1526DWORD OPEN32API _O32_WaitForSingleObject( HANDLE, DWORD );
1527
1528DWORD OPEN32API _O32_WaitForInputIdle(HANDLE hProcess, DWORD dwTimeOut);
1529
1530BOOL OPEN32API _O32_WaitMessage( void);
1531
1532BOOL OPEN32API _O32_WidenPath( HDC);
1533
1534UINT OPEN32API _O32_WinExec( LPCSTR, UINT );
1535
1536BOOL OPEN32API _O32_WinHelp( HWND, LPCSTR, UINT, DWORD );
1537
1538HWND OPEN32API _O32_WindowFromPoint( POINT );
1539
1540HWND OPEN32API _O32_WindowFromDC( HDC );
1541
1542BOOL OPEN32API _O32_WriteFile( HANDLE, const VOID *, DWORD, PDWORD, LPOVERLAPPED );
1543
1544BOOL OPEN32API _O32_WritePrivateProfileString( LPCSTR, LPCSTR, LPCSTR, LPCSTR );
1545
1546BOOL OPEN32API _O32_WriteProfileString( LPCSTR, LPCSTR, LPCSTR );
1547
1548VOID OPEN32API _O32_ZeroMemory( PVOID, DWORD );
1549
1550HFILE OPEN32API _O32__lclose( HFILE );
1551
1552HFILE OPEN32API _O32__lcreat( LPCSTR, int );
1553
1554HFILE OPEN32API _O32__lopen( LPCSTR, int );
1555
1556UINT OPEN32API _O32__lread( HFILE, PVOID, UINT );
1557
1558LONG OPEN32API _O32__llseek( HFILE, LONG, int );
1559
1560UINT OPEN32API _O32__lwrite( HFILE, const VOID *, UINT );
1561
1562DWORD OPEN32API _O32_timeGetSystemTime( LPMMTIME, UINT );
1563
1564DWORD OPEN32API _O32_timeGetTime( VOID );
1565
1566int OPEN32API _O32_wsprintf( LPSTR, LPCSTR, ... );
1567int OPEN32API _O32_wvsprintf( LPSTR, LPCSTR, const VOID *);
1568
1569LPSTR OPEN32API _O32_CharNext( LPCSTR );
1570
1571LPSTR OPEN32API _O32_CharPrev( LPCSTR, LPCSTR );
1572
1573HWND OPEN32API _O32_GetDesktopWindow( VOID );
1574
1575BOOL OPEN32API _O32_CharToOem( LPCSTR, LPSTR );
1576
1577BOOL OPEN32API _O32_OemToChar( LPCSTR, LPSTR );
1578
1579BOOL OPEN32API _O32_CharToOemBuff( LPCSTR, LPSTR, DWORD );
1580
1581BOOL OPEN32API _O32_OemToCharBuff( LPCSTR, LPSTR, DWORD );
1582
1583BOOL OPEN32API _O32_IsBadHugeReadPtr( const void *, UINT );
1584
1585BOOL OPEN32API _O32_IsBadHugeWritePtr( PVOID, UINT );
1586
1587BOOL OPEN32API _O32_FloodFill(HDC, int, int, COLORREF );
1588
1589BOOL OPEN32API _O32_IsCharAlpha( WCHAR );
1590
1591BOOL OPEN32API _O32_IsCharAlphaNumeric( WCHAR );
1592
1593BOOL OPEN32API _O32_IsCharLower( WCHAR );
1594
1595BOOL OPEN32API _O32_IsCharUpper( WCHAR );
1596
1597LPSTR OPEN32API _O32_lstrcat( LPSTR, LPCSTR );
1598
1599int OPEN32API _O32_lstrcmp( LPCSTR, LPCSTR );
1600
1601int OPEN32API _O32_lstrcmpi( LPCSTR, LPCSTR );
1602
1603LPSTR OPEN32API _O32_lstrcpy( LPSTR, LPCSTR );
1604
1605int OPEN32API _O32_lstrlen( LPCSTR );
1606
1607/* -----------------------------------------------------------------*/
1608
1609
1610int OPEN32API _O32_WinCallWinMain(int, char *[], FNMAIN_O32, int);
1611
1612/* The following functions are used for translating data between the native
1613 * Presentation Manager format and the Developer API Extensions equivalents.
1614 */
1615typedef enum { WINX2PM, PM2WINX} XLATEDIR;
1616
1617/* Use the GDI object type to specify the type of handle passing in
1618 */
1619BOOL OPEN32API _O32_WinTranslateDevicePoints( HDC, HWND, PPOINT, INT, XLATEDIR );
1620BOOL OPEN32API _O32_WinTranslateDeviceRects ( HDC, HWND, PRECT, INT, XLATEDIR );
1621ULONG OPEN32API _O32_WinTranslateGraphicsObjectHandle( HGDIOBJ, XLATEDIR, ULONG );
1622ULONG OPEN32API _O32_WinTranslateMnemonicString( LPCSTR, LPSTR *, ULONG, XLATEDIR );
1623DWORD OPEN32API _O32_WinQueryTranslateMode( VOID );
1624BOOL OPEN32API _O32_WinSetTranslateMode( DWORD );
1625
1626inline int O32_WinMain(HINSTANCE a, HINSTANCE b, LPSTR c, int d)
1627{
1628 int yyrc;
1629 USHORT sel = RestoreOS2FS();
1630
1631 yyrc = _O32_WinMain(a, b, c, d);
1632 SetFS(sel);
1633
1634 return yyrc;
1635}
1636
1637inline int O32_AbortDoc(HDC a)
1638{
1639 int yyrc;
1640 USHORT sel = RestoreOS2FS();
1641
1642 yyrc = _O32_AbortDoc(a);
1643 SetFS(sel);
1644
1645 return yyrc;
1646}
1647
1648inline BOOL O32_AbortPath(HDC a)
1649{
1650 BOOL yyrc;
1651 USHORT sel = RestoreOS2FS();
1652
1653 yyrc = _O32_AbortPath(a);
1654 SetFS(sel);
1655
1656 return yyrc;
1657}
1658
1659inline ATOM O32_AddAtom(LPCSTR a)
1660{
1661 ATOM yyrc;
1662 USHORT sel = RestoreOS2FS();
1663
1664 yyrc = _O32_AddAtom(a);
1665 SetFS(sel);
1666
1667 return yyrc;
1668}
1669
1670inline int O32_AddFontResource(LPCSTR a)
1671{
1672 int yyrc;
1673 USHORT sel = RestoreOS2FS();
1674
1675 yyrc = _O32_AddFontResource(a);
1676 SetFS(sel);
1677
1678 return yyrc;
1679}
1680
1681inline BOOL O32_AdjustWindowRect(PRECT a, DWORD b, BOOL c)
1682{
1683 BOOL yyrc;
1684 USHORT sel = RestoreOS2FS();
1685
1686 yyrc = _O32_AdjustWindowRect(a, b, c);
1687 SetFS(sel);
1688
1689 return yyrc;
1690}
1691
1692inline BOOL O32_AdjustWindowRectEx(PRECT a, DWORD b, BOOL c, DWORD d)
1693{
1694 BOOL yyrc;
1695 USHORT sel = RestoreOS2FS();
1696
1697 yyrc = _O32_AdjustWindowRectEx(a, b, c, d);
1698 SetFS(sel);
1699
1700 return yyrc;
1701}
1702
1703inline BOOL O32_AngleArc(HDC a, int b, int c, DWORD d, float e, float f)
1704{
1705 BOOL yyrc;
1706 USHORT sel = RestoreOS2FS();
1707
1708 yyrc = _O32_AngleArc(a, b, c, d, e, f);
1709 SetFS(sel);
1710
1711 return yyrc;
1712}
1713
1714inline BOOL O32_AnimatePalette(HPALETTE a, UINT b, UINT c, CONST PALETTEENTRY *d)
1715{
1716 BOOL yyrc;
1717 USHORT sel = RestoreOS2FS();
1718
1719 yyrc = _O32_AnimatePalette(a, b, c, d);
1720 SetFS(sel);
1721
1722 return yyrc;
1723}
1724
1725inline BOOL O32_AppendMenu(HMENU a, UINT b, UINT c, LPCSTR d)
1726{
1727 BOOL yyrc;
1728 USHORT sel = RestoreOS2FS();
1729
1730 yyrc = _O32_AppendMenu(a, b, c, d);
1731 SetFS(sel);
1732
1733 return yyrc;
1734}
1735
1736inline BOOL O32_Arc(HDC a, int b, int c, int d, int e, int f, int g, int h, int i)
1737{
1738 BOOL yyrc;
1739 USHORT sel = RestoreOS2FS();
1740
1741 yyrc = _O32_Arc(a, b, c, d, e, f, g, h, i);
1742 SetFS(sel);
1743
1744 return yyrc;
1745}
1746
1747inline BOOL O32_ArcTo(HDC a, int b, int c, int d, int e, int f, int g, int h, int i)
1748{
1749 BOOL yyrc;
1750 USHORT sel = RestoreOS2FS();
1751
1752 yyrc = _O32_ArcTo(a, b, c, d, e, f, g, h, i);
1753 SetFS(sel);
1754
1755 return yyrc;
1756}
1757
1758inline UINT O32_ArrangeIconicWindows(HWND a)
1759{
1760 UINT yyrc;
1761 USHORT sel = RestoreOS2FS();
1762
1763 yyrc = _O32_ArrangeIconicWindows(a);
1764 SetFS(sel);
1765
1766 return yyrc;
1767}
1768
1769inline BOOL O32_Beep(DWORD a, DWORD b)
1770{
1771 BOOL yyrc;
1772 USHORT sel = RestoreOS2FS();
1773
1774 yyrc = _O32_Beep(a, b);
1775 SetFS(sel);
1776
1777 return yyrc;
1778}
1779
1780inline HDWP O32_BeginDeferWindowPos(int a)
1781{
1782 HDWP yyrc;
1783 USHORT sel = RestoreOS2FS();
1784
1785 yyrc = _O32_BeginDeferWindowPos(a);
1786 SetFS(sel);
1787
1788 return yyrc;
1789}
1790
1791inline HDC O32_BeginPaint(HWND a, PPAINTSTRUCT b)
1792{
1793 HDC yyrc;
1794 USHORT sel = RestoreOS2FS();
1795
1796 yyrc = _O32_BeginPaint(a, b);
1797 SetFS(sel);
1798
1799 return yyrc;
1800}
1801
1802inline BOOL O32_BeginPath(HDC a)
1803{
1804 BOOL yyrc;
1805 USHORT sel = RestoreOS2FS();
1806
1807 yyrc = _O32_BeginPath(a);
1808 SetFS(sel);
1809
1810 return yyrc;
1811}
1812
1813inline BOOL O32_BitBlt(HDC a, int b, int c, int d, int e, HDC f, int g, int h, DWORD i)
1814{
1815 BOOL yyrc;
1816 USHORT sel = RestoreOS2FS();
1817
1818 yyrc = _O32_BitBlt(a, b, c, d, e, f, g, h, i);
1819 SetFS(sel);
1820
1821 return yyrc;
1822}
1823
1824inline BOOL O32_BringWindowToTop(HWND a)
1825{
1826 BOOL yyrc;
1827 USHORT sel = RestoreOS2FS();
1828
1829 yyrc = _O32_BringWindowToTop(a);
1830 SetFS(sel);
1831
1832 return yyrc;
1833}
1834
1835inline BOOL O32_CallMsgFilter(LPMSG a, int b)
1836{
1837 BOOL yyrc;
1838 USHORT sel = RestoreOS2FS();
1839
1840 yyrc = _O32_CallMsgFilter(a, b);
1841 SetFS(sel);
1842
1843 return yyrc;
1844}
1845
1846inline LRESULT O32_CallNextHookEx(HHOOK a, int b, WPARAM c, LPARAM d)
1847{
1848 LRESULT yyrc;
1849 USHORT sel = RestoreOS2FS();
1850
1851 yyrc = _O32_CallNextHookEx(a, b, c, d);
1852 SetFS(sel);
1853
1854 return yyrc;
1855}
1856
1857inline LRESULT O32_CallWindowProc(WNDPROC_O32 a, HWND b, UINT c, WPARAM d, LPARAM e)
1858{
1859 LRESULT yyrc;
1860 USHORT sel = RestoreOS2FS();
1861
1862 yyrc = _O32_CallWindowProc(a, b, c, d, e);
1863 SetFS(sel);
1864
1865 return yyrc;
1866}
1867
1868inline BOOL O32_ChangeClipboardChain(HWND a, HWND b)
1869{
1870 BOOL yyrc;
1871 USHORT sel = RestoreOS2FS();
1872
1873 yyrc = _O32_ChangeClipboardChain(a, b);
1874 SetFS(sel);
1875
1876 return yyrc;
1877}
1878
1879inline LPSTR O32_CharLower(LPSTR a)
1880{
1881 LPSTR yyrc;
1882 USHORT sel = RestoreOS2FS();
1883
1884 yyrc = _O32_CharLower(a);
1885 SetFS(sel);
1886
1887 return yyrc;
1888}
1889
1890inline DWORD O32_CharLowerBuff(LPSTR a, DWORD b)
1891{
1892 DWORD yyrc;
1893 USHORT sel = RestoreOS2FS();
1894
1895 yyrc = _O32_CharLowerBuff(a, b);
1896 SetFS(sel);
1897
1898 return yyrc;
1899}
1900
1901inline LPSTR O32_CharUpper(LPSTR a)
1902{
1903 LPSTR yyrc;
1904 USHORT sel = RestoreOS2FS();
1905
1906 yyrc = _O32_CharUpper(a);
1907 SetFS(sel);
1908
1909 return yyrc;
1910}
1911
1912inline DWORD O32_CharUpperBuff(LPSTR a, DWORD b)
1913{
1914 DWORD yyrc;
1915 USHORT sel = RestoreOS2FS();
1916
1917 yyrc = _O32_CharUpperBuff(a, b);
1918 SetFS(sel);
1919
1920 return yyrc;
1921}
1922
1923inline BOOL O32_CheckDlgButton(HWND a, int b, UINT c)
1924{
1925 BOOL yyrc;
1926 USHORT sel = RestoreOS2FS();
1927
1928 yyrc = _O32_CheckDlgButton(a, b, c);
1929 SetFS(sel);
1930
1931 return yyrc;
1932}
1933
1934inline DWORD O32_CheckMenuItem(HMENU a, UINT b, UINT c)
1935{
1936 DWORD yyrc;
1937 USHORT sel = RestoreOS2FS();
1938
1939 yyrc = _O32_CheckMenuItem(a, b, c);
1940 SetFS(sel);
1941
1942 return yyrc;
1943}
1944
1945inline BOOL O32_CheckRadioButton(HWND a, int b, int c, int d)
1946{
1947 BOOL yyrc;
1948 USHORT sel = RestoreOS2FS();
1949
1950 yyrc = _O32_CheckRadioButton(a, b, c, d);
1951 SetFS(sel);
1952
1953 return yyrc;
1954}
1955
1956inline HWND O32_ChildWindowFromPoint(HWND a, POINT b)
1957{
1958 HWND yyrc;
1959 USHORT sel = RestoreOS2FS();
1960
1961 yyrc = _O32_ChildWindowFromPoint(a, b);
1962 SetFS(sel);
1963
1964 return yyrc;
1965}
1966
1967inline BOOL O32_ChooseColor(LPCHOOSECOLORA a)
1968{
1969 BOOL yyrc;
1970 USHORT sel = RestoreOS2FS();
1971
1972 yyrc = _O32_ChooseColor(a);
1973 SetFS(sel);
1974
1975 return yyrc;
1976}
1977
1978inline BOOL O32_ChooseFont(LPCHOOSEFONTA a)
1979{
1980 BOOL yyrc;
1981 USHORT sel = RestoreOS2FS();
1982
1983 yyrc = _O32_ChooseFont(a);
1984 SetFS(sel);
1985
1986 return yyrc;
1987}
1988
1989inline BOOL O32_Chord(HDC a, int b, int c, int d, int e, int f, int g, int h, int i)
1990{
1991 BOOL yyrc;
1992 USHORT sel = RestoreOS2FS();
1993
1994 yyrc = _O32_Chord(a, b, c, d, e, f, g, h, i);
1995 SetFS(sel);
1996
1997 return yyrc;
1998}
1999
2000inline BOOL O32_ClientToScreen(HWND a, PPOINT b)
2001{
2002 BOOL yyrc;
2003 USHORT sel = RestoreOS2FS();
2004
2005 yyrc = _O32_ClientToScreen(a, b);
2006 SetFS(sel);
2007
2008 return yyrc;
2009}
2010
2011inline BOOL O32_ClipCursor(CONST RECT *a)
2012{
2013 BOOL yyrc;
2014 USHORT sel = RestoreOS2FS();
2015
2016 yyrc = _O32_ClipCursor(a);
2017 SetFS(sel);
2018
2019 return yyrc;
2020}
2021
2022inline BOOL O32_CloseClipboard()
2023{
2024 BOOL yyrc;
2025 USHORT sel = RestoreOS2FS();
2026
2027 yyrc = _O32_CloseClipboard();
2028 SetFS(sel);
2029
2030 return yyrc;
2031}
2032
2033inline HENHMETAFILE O32_CloseEnhMetaFile(HDC a)
2034{
2035 HENHMETAFILE yyrc;
2036 USHORT sel = RestoreOS2FS();
2037
2038 yyrc = _O32_CloseEnhMetaFile(a);
2039 SetFS(sel);
2040
2041 return yyrc;
2042}
2043
2044inline BOOL O32_CloseFigure(HDC a)
2045{
2046 BOOL yyrc;
2047 USHORT sel = RestoreOS2FS();
2048
2049 yyrc = _O32_CloseFigure(a);
2050 SetFS(sel);
2051
2052 return yyrc;
2053}
2054
2055inline BOOL O32_CloseHandle(HANDLE a)
2056{
2057 BOOL yyrc;
2058 USHORT sel = RestoreOS2FS();
2059
2060 yyrc = _O32_CloseHandle(a);
2061 SetFS(sel);
2062
2063 return yyrc;
2064}
2065
2066inline HMETAFILE O32_CloseMetaFile(HDC a)
2067{
2068 HMETAFILE yyrc;
2069 USHORT sel = RestoreOS2FS();
2070
2071 yyrc = _O32_CloseMetaFile(a);
2072 SetFS(sel);
2073
2074 return yyrc;
2075}
2076
2077inline BOOL O32_CloseWindow(HWND a)
2078{
2079 BOOL yyrc;
2080 USHORT sel = RestoreOS2FS();
2081
2082 yyrc = _O32_CloseWindow(a);
2083 SetFS(sel);
2084
2085 return yyrc;
2086}
2087
2088inline int O32_CombineRgn(HRGN a, HRGN b, HRGN c, int d)
2089{
2090 int yyrc;
2091 USHORT sel = RestoreOS2FS();
2092
2093 yyrc = _O32_CombineRgn(a, b, c, d);
2094 SetFS(sel);
2095
2096 return yyrc;
2097}
2098
2099inline DWORD O32_CommDlgExtendedError()
2100{
2101 DWORD yyrc;
2102 USHORT sel = RestoreOS2FS();
2103
2104 yyrc = _O32_CommDlgExtendedError();
2105 SetFS(sel);
2106
2107 return yyrc;
2108}
2109
2110inline LONG O32_CompareFileTime(FILETIME *a, FILETIME *b)
2111{
2112 LONG yyrc;
2113 USHORT sel = RestoreOS2FS();
2114
2115 yyrc = _O32_CompareFileTime(a, b);
2116 SetFS(sel);
2117
2118 return yyrc;
2119}
2120
2121inline HCURSOR O32_CopyCursor(HCURSOR a)
2122{
2123 HCURSOR yyrc;
2124 USHORT sel = RestoreOS2FS();
2125
2126 yyrc = _O32_CopyCursor(a);
2127 SetFS(sel);
2128
2129 return yyrc;
2130}
2131
2132inline HENHMETAFILE O32_CopyEnhMetaFile(HENHMETAFILE a, LPCSTR b)
2133{
2134 HENHMETAFILE yyrc;
2135 USHORT sel = RestoreOS2FS();
2136
2137 yyrc = _O32_CopyEnhMetaFile(a, b);
2138 SetFS(sel);
2139
2140 return yyrc;
2141}
2142
2143inline BOOL O32_CopyFile(LPCSTR a, LPCSTR b, BOOL c)
2144{
2145 BOOL yyrc;
2146 USHORT sel = RestoreOS2FS();
2147
2148 yyrc = _O32_CopyFile(a, b, c);
2149 SetFS(sel);
2150
2151 return yyrc;
2152}
2153
2154inline HICON O32_CopyIcon(HICON a)
2155{
2156 HICON yyrc;
2157 USHORT sel = RestoreOS2FS();
2158
2159 yyrc = _O32_CopyIcon(a);
2160 SetFS(sel);
2161
2162 return yyrc;
2163}
2164
2165inline HMETAFILE O32_CopyMetaFile(HMETAFILE a, LPCSTR b)
2166{
2167 HMETAFILE yyrc;
2168 USHORT sel = RestoreOS2FS();
2169
2170 yyrc = _O32_CopyMetaFile(a, b);
2171 SetFS(sel);
2172
2173 return yyrc;
2174}
2175
2176inline BOOL O32_CopyRect(PRECT a, CONST RECT *b)
2177{
2178 BOOL yyrc;
2179 USHORT sel = RestoreOS2FS();
2180
2181 yyrc = _O32_CopyRect(a, b);
2182 SetFS(sel);
2183
2184 return yyrc;
2185}
2186
2187inline int O32_CountClipboardFormats()
2188{
2189 int yyrc;
2190 USHORT sel = RestoreOS2FS();
2191
2192 yyrc = _O32_CountClipboardFormats();
2193 SetFS(sel);
2194
2195 return yyrc;
2196}
2197
2198inline HACCEL O32_CreateAcceleratorTable(LPACCEL a, int b)
2199{
2200 HACCEL yyrc;
2201 USHORT sel = RestoreOS2FS();
2202
2203 yyrc = _O32_CreateAcceleratorTable(a, b);
2204 SetFS(sel);
2205
2206 return yyrc;
2207}
2208
2209inline HBITMAP O32_CreateBitmap(int a, int b, UINT c, UINT d, CONST void *e)
2210{
2211 HBITMAP yyrc;
2212 USHORT sel = RestoreOS2FS();
2213
2214 yyrc = _O32_CreateBitmap(a, b, c, d, e);
2215 SetFS(sel);
2216
2217 return yyrc;
2218}
2219
2220inline HBITMAP O32_CreateBitmapIndirect(CONST BITMAP *a)
2221{
2222 HBITMAP yyrc;
2223 USHORT sel = RestoreOS2FS();
2224
2225 yyrc = _O32_CreateBitmapIndirect(a);
2226 SetFS(sel);
2227
2228 return yyrc;
2229}
2230
2231inline HBRUSH O32_CreateBrushIndirect(LPLOGBRUSH a)
2232{
2233 HBRUSH yyrc;
2234 USHORT sel = RestoreOS2FS();
2235
2236 yyrc = _O32_CreateBrushIndirect(a);
2237 SetFS(sel);
2238
2239 return yyrc;
2240}
2241
2242inline BOOL O32_CreateCaret(HWND a, HBITMAP b, int c, int d)
2243{
2244 BOOL yyrc;
2245 USHORT sel = RestoreOS2FS();
2246
2247 yyrc = _O32_CreateCaret(a, b, c, d);
2248 SetFS(sel);
2249
2250 return yyrc;
2251}
2252
2253inline HBITMAP O32_CreateCompatibleBitmap(HDC a, int b, int c)
2254{
2255 HBITMAP yyrc;
2256 USHORT sel = RestoreOS2FS();
2257
2258 yyrc = _O32_CreateCompatibleBitmap(a, b, c);
2259 SetFS(sel);
2260
2261 return yyrc;
2262}
2263
2264inline HDC O32_CreateCompatibleDC(HDC a)
2265{
2266 HDC yyrc;
2267 USHORT sel = RestoreOS2FS();
2268
2269 yyrc = _O32_CreateCompatibleDC(a);
2270 SetFS(sel);
2271
2272 return yyrc;
2273}
2274
2275inline HCURSOR O32_CreateCursor(HINSTANCE a, int b, int c, int d, int e, CONST VOID *f, CONST VOID *g)
2276{
2277 HCURSOR yyrc;
2278 USHORT sel = RestoreOS2FS();
2279
2280 yyrc = _O32_CreateCursor(a, b, c, d, e, f, g);
2281 SetFS(sel);
2282
2283 return yyrc;
2284}
2285
2286inline HDC O32_CreateDC(LPCSTR a, LPCSTR b, LPCSTR c, CONST DEVMODEA *d)
2287{
2288 HDC yyrc;
2289 USHORT sel = RestoreOS2FS();
2290
2291 yyrc = _O32_CreateDC(a, b, c, d);
2292 SetFS(sel);
2293
2294 return yyrc;
2295}
2296
2297inline HBRUSH O32_CreateDIBPatternBrushPt(CONST VOID *a, UINT b)
2298{
2299 HBRUSH yyrc;
2300 USHORT sel = RestoreOS2FS();
2301
2302 yyrc = _O32_CreateDIBPatternBrushPt(a, b);
2303 SetFS(sel);
2304
2305 return yyrc;
2306}
2307
2308inline HBITMAP O32_CreateDIBitmap(HDC a, CONST BITMAPINFOHEADER *b, DWORD c, CONST void *d, CONST BITMAPINFO *e, UINT f)
2309{
2310 HBITMAP yyrc;
2311 USHORT sel = RestoreOS2FS();
2312
2313 yyrc = _O32_CreateDIBitmap(a, b, c, d, e, f);
2314 SetFS(sel);
2315
2316 return yyrc;
2317}
2318
2319inline HWND O32_CreateDialog(HINSTANCE a, LPCSTR b, HWND c, DLGPROC_O32 d)
2320{
2321 HWND yyrc;
2322 USHORT sel = RestoreOS2FS();
2323
2324 yyrc = _O32_CreateDialog(a, b, c, d);
2325 SetFS(sel);
2326
2327 return yyrc;
2328}
2329
2330inline HWND O32_CreateDialogParam(HINSTANCE a, LPCSTR b, HWND c, DLGPROC_O32 d, LPARAM e)
2331{
2332 HWND yyrc;
2333 USHORT sel = RestoreOS2FS();
2334
2335 yyrc = _O32_CreateDialogParam(a, b, c, d, e);
2336 SetFS(sel);
2337
2338 return yyrc;
2339}
2340
2341inline HWND O32_CreateDialogIndirect(HINSTANCE a, CONST DLGTEMPLATE *b, HWND c, DLGPROC_O32 d)
2342{
2343 HWND yyrc;
2344 USHORT sel = RestoreOS2FS();
2345
2346 yyrc = _O32_CreateDialogIndirect(a, b, c, d);
2347 SetFS(sel);
2348
2349 return yyrc;
2350}
2351
2352inline HWND O32_CreateDialogIndirectParam(HINSTANCE a, CONST DLGTEMPLATE *b, HWND c, DLGPROC_O32 d, LPARAM e)
2353{
2354 HWND yyrc;
2355 USHORT sel = RestoreOS2FS();
2356
2357 yyrc = _O32_CreateDialogIndirectParam(a, b, c, d, e);
2358 SetFS(sel);
2359
2360 return yyrc;
2361}
2362
2363inline BOOL O32_CreateDirectory(LPCSTR a, PSECURITY_ATTRIBUTES b)
2364{
2365 BOOL yyrc;
2366 USHORT sel = RestoreOS2FS();
2367
2368 yyrc = _O32_CreateDirectory(a, b);
2369 SetFS(sel);
2370
2371 return yyrc;
2372}
2373
2374inline HRGN O32_CreateEllipticRgn(int a, int b, int c, int d)
2375{
2376 HRGN yyrc;
2377 USHORT sel = RestoreOS2FS();
2378
2379 yyrc = _O32_CreateEllipticRgn(a, b, c, d);
2380 SetFS(sel);
2381
2382 return yyrc;
2383}
2384
2385inline HRGN O32_CreateEllipticRgnIndirect(CONST RECT *a)
2386{
2387 HRGN yyrc;
2388 USHORT sel = RestoreOS2FS();
2389
2390 yyrc = _O32_CreateEllipticRgnIndirect(a);
2391 SetFS(sel);
2392
2393 return yyrc;
2394}
2395
2396inline HENHMETAFILE O32_CreateEnhMetaFile(HDC a, LPCSTR b, CONST RECT *c, LPCSTR d)
2397{
2398 HENHMETAFILE yyrc;
2399 USHORT sel = RestoreOS2FS();
2400
2401 yyrc = _O32_CreateEnhMetaFile(a, b, c, d);
2402 SetFS(sel);
2403
2404 return yyrc;
2405}
2406
2407inline HANDLE O32_CreateEvent(PSECURITY_ATTRIBUTES a, BOOL b, BOOL c, LPCSTR d)
2408{
2409 HANDLE yyrc;
2410 USHORT sel = RestoreOS2FS();
2411
2412 yyrc = _O32_CreateEvent(a, b, c, d);
2413 SetFS(sel);
2414
2415 return yyrc;
2416}
2417
2418inline HANDLE O32_CreateFile(LPCSTR a, DWORD b, DWORD c, PSECURITY_ATTRIBUTES d, DWORD e, DWORD f, HANDLE g)
2419{
2420 HANDLE yyrc;
2421 USHORT sel = RestoreOS2FS();
2422
2423 yyrc = _O32_CreateFile(a, b, c, d, e, f, g);
2424 SetFS(sel);
2425
2426 return yyrc;
2427}
2428
2429inline HFONT O32_CreateFont(int a, int b, int c, int d, int e, DWORD f, DWORD g, DWORD h, DWORD i, DWORD j, DWORD k, DWORD l, DWORD m, LPCSTR n)
2430{
2431 HFONT yyrc;
2432 USHORT sel = RestoreOS2FS();
2433
2434 yyrc = _O32_CreateFont(a, b, c, d, e, f, g, h, i, j, k, l, m, n);
2435 SetFS(sel);
2436
2437 return yyrc;
2438}
2439
2440inline HFONT O32_CreateFontIndirect(CONST LOGFONTA *a)
2441{
2442 HFONT yyrc;
2443 USHORT sel = RestoreOS2FS();
2444
2445 yyrc = _O32_CreateFontIndirect(a);
2446 SetFS(sel);
2447
2448 return yyrc;
2449}
2450
2451inline HBRUSH O32_CreateHatchBrush(int a, COLORREF b)
2452{
2453 HBRUSH yyrc;
2454 USHORT sel = RestoreOS2FS();
2455
2456 yyrc = _O32_CreateHatchBrush(a, b);
2457 SetFS(sel);
2458
2459 return yyrc;
2460}
2461
2462inline HDC O32_CreateIC(LPCSTR a, LPCSTR b, LPCSTR c, CONST DEVMODEA *d)
2463{
2464 HDC yyrc;
2465 USHORT sel = RestoreOS2FS();
2466
2467 yyrc = _O32_CreateIC(a, b, c, d);
2468 SetFS(sel);
2469
2470 return yyrc;
2471}
2472
2473inline HICON O32_CreateIcon(HINSTANCE a, int b, int c, BYTE d, BYTE e, CONST BYTE *f, CONST BYTE *g)
2474{
2475 HICON yyrc;
2476 USHORT sel = RestoreOS2FS();
2477
2478 yyrc = _O32_CreateIcon(a, b, c, d, e, f, g);
2479 SetFS(sel);
2480
2481 return yyrc;
2482}
2483
2484inline HICON O32_CreateIconFromResource(PBYTE a, DWORD b, BOOL c, DWORD d)
2485{
2486 HICON yyrc;
2487 USHORT sel = RestoreOS2FS();
2488
2489 yyrc = _O32_CreateIconFromResource(a, b, c, d);
2490 SetFS(sel);
2491
2492 return yyrc;
2493}
2494
2495inline HICON O32_CreateIconIndirect(LPICONINFO a)
2496{
2497 HICON yyrc;
2498 USHORT sel = RestoreOS2FS();
2499
2500 yyrc = _O32_CreateIconIndirect(a);
2501 SetFS(sel);
2502
2503 return yyrc;
2504}
2505
2506inline HMENU O32_CreateMenu()
2507{
2508 HMENU yyrc;
2509 USHORT sel = RestoreOS2FS();
2510
2511 yyrc = _O32_CreateMenu();
2512 SetFS(sel);
2513
2514 return yyrc;
2515}
2516
2517inline HDC O32_CreateMetaFile(LPCSTR a)
2518{
2519 HDC yyrc;
2520 USHORT sel = RestoreOS2FS();
2521
2522 yyrc = _O32_CreateMetaFile(a);
2523 SetFS(sel);
2524
2525 return yyrc;
2526}
2527
2528inline HWND O32_CreateMDIWindow(LPSTR a, LPSTR b, DWORD c, int d, int e, int f, int g, HWND h, HINSTANCE i, LPARAM j)
2529{
2530 HWND yyrc;
2531 USHORT sel = RestoreOS2FS();
2532
2533 yyrc = _O32_CreateMDIWindow(a, b, c, d, e, f, g, h, i, j);
2534 SetFS(sel);
2535
2536 return yyrc;
2537}
2538
2539inline HANDLE O32_CreateMutex(PSECURITY_ATTRIBUTES a, BOOL b, LPCSTR c)
2540{
2541 HANDLE yyrc;
2542 USHORT sel = RestoreOS2FS();
2543
2544 yyrc = _O32_CreateMutex(a, b, c);
2545 SetFS(sel);
2546
2547 return yyrc;
2548}
2549
2550inline HPALETTE O32_CreatePalette(CONST LOGPALETTE *a)
2551{
2552 HPALETTE yyrc;
2553 USHORT sel = RestoreOS2FS();
2554
2555 yyrc = _O32_CreatePalette(a);
2556 SetFS(sel);
2557
2558 return yyrc;
2559}
2560
2561inline HBRUSH O32_CreatePatternBrush(HBITMAP a)
2562{
2563 HBRUSH yyrc;
2564 USHORT sel = RestoreOS2FS();
2565
2566 yyrc = _O32_CreatePatternBrush(a);
2567 SetFS(sel);
2568
2569 return yyrc;
2570}
2571
2572inline HPEN O32_CreatePen(int a, int b, COLORREF c)
2573{
2574 HPEN yyrc;
2575 USHORT sel = RestoreOS2FS();
2576
2577 yyrc = _O32_CreatePen(a, b, c);
2578 SetFS(sel);
2579
2580 return yyrc;
2581}
2582
2583inline HPEN O32_CreatePenIndirect(CONST LOGPEN *a)
2584{
2585 HPEN yyrc;
2586 USHORT sel = RestoreOS2FS();
2587
2588 yyrc = _O32_CreatePenIndirect(a);
2589 SetFS(sel);
2590
2591 return yyrc;
2592}
2593
2594inline HRGN O32_CreatePolyPolygonRgn(CONST POINT *a, CONST INT *b, int c, int d)
2595{
2596 HRGN yyrc;
2597 USHORT sel = RestoreOS2FS();
2598
2599 yyrc = _O32_CreatePolyPolygonRgn(a, b, c, d);
2600 SetFS(sel);
2601
2602 return yyrc;
2603}
2604
2605inline HRGN O32_CreatePolygonRgn(CONST POINT *a, int b, int c)
2606{
2607 HRGN yyrc;
2608 USHORT sel = RestoreOS2FS();
2609
2610 yyrc = _O32_CreatePolygonRgn(a, b, c);
2611 SetFS(sel);
2612
2613 return yyrc;
2614}
2615
2616inline HMENU O32_CreatePopupMenu()
2617{
2618 HMENU yyrc;
2619 USHORT sel = RestoreOS2FS();
2620
2621 yyrc = _O32_CreatePopupMenu();
2622 SetFS(sel);
2623
2624 return yyrc;
2625}
2626
2627inline BOOL O32_CreateProcess(LPCSTR a, LPCSTR b, PSECURITY_ATTRIBUTES c, PSECURITY_ATTRIBUTES d, BOOL e, DWORD f, PVOID g, LPCSTR h, LPSTARTUPINFOA i, LPPROCESS_INFORMATION j)
2628{
2629 BOOL yyrc;
2630 USHORT sel = RestoreOS2FS();
2631
2632 yyrc = _O32_CreateProcess(a, b, c, d, e, f, g, h, i, j);
2633 SetFS(sel);
2634
2635 return yyrc;
2636}
2637
2638inline HRGN O32_CreateRectRgn(int a, int b, int c, int d)
2639{
2640 HRGN yyrc;
2641 USHORT sel = RestoreOS2FS();
2642
2643 yyrc = _O32_CreateRectRgn(a, b, c, d);
2644 SetFS(sel);
2645
2646 return yyrc;
2647}
2648
2649inline HRGN O32_CreateRectRgnIndirect(CONST RECT *a)
2650{
2651 HRGN yyrc;
2652 USHORT sel = RestoreOS2FS();
2653
2654 yyrc = _O32_CreateRectRgnIndirect(a);
2655 SetFS(sel);
2656
2657 return yyrc;
2658}
2659
2660inline HRGN O32_CreateRoundRectRgn(int a, int b, int c, int d, int e, int f)
2661{
2662 HRGN yyrc;
2663 USHORT sel = RestoreOS2FS();
2664
2665 yyrc = _O32_CreateRoundRectRgn(a, b, c, d, e, f);
2666 SetFS(sel);
2667
2668 return yyrc;
2669}
2670
2671inline HANDLE O32_CreateSemaphore(PSECURITY_ATTRIBUTES a, LONG b, LONG c, LPSTR d)
2672{
2673 HANDLE yyrc;
2674 USHORT sel = RestoreOS2FS();
2675
2676 yyrc = _O32_CreateSemaphore(a, b, c, d);
2677 SetFS(sel);
2678
2679 return yyrc;
2680}
2681
2682inline HBRUSH O32_CreateSolidBrush(COLORREF a)
2683{
2684 HBRUSH yyrc;
2685 USHORT sel = RestoreOS2FS();
2686
2687 yyrc = _O32_CreateSolidBrush(a);
2688 SetFS(sel);
2689
2690 return yyrc;
2691}
2692
2693inline HANDLE O32_CreateThread(PSECURITY_ATTRIBUTES a, DWORD b, PTHREAD_START_ROUTINE_O32 c, PVOID d, DWORD e, PDWORD f)
2694{
2695 HANDLE yyrc;
2696 USHORT sel = RestoreOS2FS();
2697
2698 yyrc = _O32_CreateThread(a, b, c, d, e, f);
2699 SetFS(sel);
2700
2701 return yyrc;
2702}
2703
2704inline HWND O32_CreateWindowEx(DWORD a, LPCSTR b, LPCSTR c, DWORD d, int e, int f, int g, int h, HWND i, HMENU j, HINSTANCE k, PVOID l)
2705{
2706 HWND yyrc;
2707 USHORT sel = RestoreOS2FS();
2708
2709 yyrc = _O32_CreateWindowEx(a, b, c, d, e, f, g, h, i, j, k, l);
2710 SetFS(sel);
2711
2712 return yyrc;
2713}
2714
2715inline BOOL O32_DPtoLP(HDC a, PPOINT b, int c)
2716{
2717 BOOL yyrc;
2718 USHORT sel = RestoreOS2FS();
2719
2720 yyrc = _O32_DPtoLP(a, b, c);
2721 SetFS(sel);
2722
2723 return yyrc;
2724}
2725
2726inline BOOL O32_DdeAbandonTransaction(DWORD a, HCONV b, DWORD c)
2727{
2728 BOOL yyrc;
2729 USHORT sel = RestoreOS2FS();
2730
2731 yyrc = _O32_DdeAbandonTransaction(a, b, c);
2732 SetFS(sel);
2733
2734 return yyrc;
2735}
2736
2737inline PBYTE O32_DdeAccessData(HDDEDATA a, PDWORD b)
2738{
2739 PBYTE yyrc;
2740 USHORT sel = RestoreOS2FS();
2741
2742 yyrc = _O32_DdeAccessData(a, b);
2743 SetFS(sel);
2744
2745 return yyrc;
2746}
2747
2748inline HDDEDATA O32_DdeAddData(HDDEDATA a, PVOID b, DWORD c, DWORD d)
2749{
2750 HDDEDATA yyrc;
2751 USHORT sel = RestoreOS2FS();
2752
2753 yyrc = _O32_DdeAddData(a, b, c, d);
2754 SetFS(sel);
2755
2756 return yyrc;
2757}
2758
2759inline HDDEDATA O32_DdeClientTransaction(PVOID a, DWORD b, HCONV c, HSZ d, UINT e, UINT f, DWORD g, PDWORD h)
2760{
2761 HDDEDATA yyrc;
2762 USHORT sel = RestoreOS2FS();
2763
2764 yyrc = _O32_DdeClientTransaction(a, b, c, d, e, f, g, h);
2765 SetFS(sel);
2766
2767 return yyrc;
2768}
2769
2770inline int O32_DdeCmpStringHandles(HSZ a, HSZ b)
2771{
2772 int yyrc;
2773 USHORT sel = RestoreOS2FS();
2774
2775 yyrc = _O32_DdeCmpStringHandles(a, b);
2776 SetFS(sel);
2777
2778 return yyrc;
2779}
2780
2781inline HCONV O32_DdeConnect(DWORD a, HSZ b, HSZ c, LPCONVCONTEXT d)
2782{
2783 HCONV yyrc;
2784 USHORT sel = RestoreOS2FS();
2785
2786 yyrc = _O32_DdeConnect(a, b, c, d);
2787 SetFS(sel);
2788
2789 return yyrc;
2790}
2791
2792inline HCONVLIST O32_DdeConnectList(DWORD a, HSZ b, HSZ c, HCONVLIST d, LPCONVCONTEXT e)
2793{
2794 HCONVLIST yyrc;
2795 USHORT sel = RestoreOS2FS();
2796
2797 yyrc = _O32_DdeConnectList(a, b, c, d, e);
2798 SetFS(sel);
2799
2800 return yyrc;
2801}
2802
2803inline HDDEDATA O32_DdeCreateDataHandle(DWORD a, PVOID b, DWORD c, DWORD d, HSZ e, UINT f, UINT g)
2804{
2805 HDDEDATA yyrc;
2806 USHORT sel = RestoreOS2FS();
2807
2808 yyrc = _O32_DdeCreateDataHandle(a, b, c, d, e, f, g);
2809 SetFS(sel);
2810
2811 return yyrc;
2812}
2813
2814inline HSZ O32_DdeCreateStringHandle(DWORD a, LPCSTR b, int c)
2815{
2816 HSZ yyrc;
2817 USHORT sel = RestoreOS2FS();
2818
2819 yyrc = _O32_DdeCreateStringHandle(a, b, c);
2820 SetFS(sel);
2821
2822 return yyrc;
2823}
2824
2825inline BOOL O32_DdeDisconnect(HCONV a)
2826{
2827 BOOL yyrc;
2828 USHORT sel = RestoreOS2FS();
2829
2830 yyrc = _O32_DdeDisconnect(a);
2831 SetFS(sel);
2832
2833 return yyrc;
2834}
2835
2836inline BOOL O32_DdeDisconnectList(HCONVLIST a)
2837{
2838 BOOL yyrc;
2839 USHORT sel = RestoreOS2FS();
2840
2841 yyrc = _O32_DdeDisconnectList(a);
2842 SetFS(sel);
2843
2844 return yyrc;
2845}
2846
2847inline BOOL O32_DdeEnableCallback(DWORD a, HCONV b, UINT c)
2848{
2849 BOOL yyrc;
2850 USHORT sel = RestoreOS2FS();
2851
2852 yyrc = _O32_DdeEnableCallback(a, b, c);
2853 SetFS(sel);
2854
2855 return yyrc;
2856}
2857
2858inline BOOL O32_DdeFreeDataHandle(HDDEDATA a)
2859{
2860 BOOL yyrc;
2861 USHORT sel = RestoreOS2FS();
2862
2863 yyrc = _O32_DdeFreeDataHandle(a);
2864 SetFS(sel);
2865
2866 return yyrc;
2867}
2868
2869inline BOOL O32_DdeFreeStringHandle(DWORD a, HSZ b)
2870{
2871 BOOL yyrc;
2872 USHORT sel = RestoreOS2FS();
2873
2874 yyrc = _O32_DdeFreeStringHandle(a, b);
2875 SetFS(sel);
2876
2877 return yyrc;
2878}
2879
2880inline DWORD O32_DdeGetData(HDDEDATA a, PVOID b, DWORD c, DWORD d)
2881{
2882 DWORD yyrc;
2883 USHORT sel = RestoreOS2FS();
2884
2885 yyrc = _O32_DdeGetData(a, b, c, d);
2886 SetFS(sel);
2887
2888 return yyrc;
2889}
2890
2891inline UINT O32_DdeGetLastError(DWORD a)
2892{
2893 UINT yyrc;
2894 USHORT sel = RestoreOS2FS();
2895
2896 yyrc = _O32_DdeGetLastError(a);
2897 SetFS(sel);
2898
2899 return yyrc;
2900}
2901
2902inline UINT O32_DdeInitialize(PDWORD a, PFNCALLBACK_O32 b, DWORD c, DWORD d)
2903{
2904 UINT yyrc;
2905 USHORT sel = RestoreOS2FS();
2906
2907 yyrc = _O32_DdeInitialize(a, b, c, d);
2908 SetFS(sel);
2909
2910 return yyrc;
2911}
2912
2913inline BOOL O32_DdeKeepStringHandle(DWORD a, HSZ b)
2914{
2915 BOOL yyrc;
2916 USHORT sel = RestoreOS2FS();
2917
2918 yyrc = _O32_DdeKeepStringHandle(a, b);
2919 SetFS(sel);
2920
2921 return yyrc;
2922}
2923
2924inline HDDEDATA O32_DdeNameService(DWORD a, HSZ b, HSZ c, UINT d)
2925{
2926 HDDEDATA yyrc;
2927 USHORT sel = RestoreOS2FS();
2928
2929 yyrc = _O32_DdeNameService(a, b, c, d);
2930 SetFS(sel);
2931
2932 return yyrc;
2933}
2934
2935inline BOOL O32_DdePostAdvise(DWORD a, HSZ b, HSZ c)
2936{
2937 BOOL yyrc;
2938 USHORT sel = RestoreOS2FS();
2939
2940 yyrc = _O32_DdePostAdvise(a, b, c);
2941 SetFS(sel);
2942
2943 return yyrc;
2944}
2945
2946inline UINT O32_DdeQueryConvInfo(HCONV a, DWORD b, LPCONVINFO c)
2947{
2948 UINT yyrc;
2949 USHORT sel = RestoreOS2FS();
2950
2951 yyrc = _O32_DdeQueryConvInfo(a, b, c);
2952 SetFS(sel);
2953
2954 return yyrc;
2955}
2956
2957inline HCONV O32_DdeQueryNextServer(HCONVLIST a, HCONV b)
2958{
2959 HCONV yyrc;
2960 USHORT sel = RestoreOS2FS();
2961
2962 yyrc = _O32_DdeQueryNextServer(a, b);
2963 SetFS(sel);
2964
2965 return yyrc;
2966}
2967
2968inline DWORD O32_DdeQueryString(DWORD a, HSZ b, LPSTR c, DWORD d, int e)
2969{
2970 DWORD yyrc;
2971 USHORT sel = RestoreOS2FS();
2972
2973 yyrc = _O32_DdeQueryString(a, b, c, d, e);
2974 SetFS(sel);
2975
2976 return yyrc;
2977}
2978
2979inline HCONV O32_DdeReconnect(HCONV a)
2980{
2981 HCONV yyrc;
2982 USHORT sel = RestoreOS2FS();
2983
2984 yyrc = _O32_DdeReconnect(a);
2985 SetFS(sel);
2986
2987 return yyrc;
2988}
2989
2990inline BOOL O32_DdeSetUserHandle(HCONV a, DWORD b, DWORD c)
2991{
2992 BOOL yyrc;
2993 USHORT sel = RestoreOS2FS();
2994
2995 yyrc = _O32_DdeSetUserHandle(a, b, c);
2996 SetFS(sel);
2997
2998 return yyrc;
2999}
3000
3001inline BOOL O32_DdeUnaccessData(HDDEDATA a)
3002{
3003 BOOL yyrc;
3004 USHORT sel = RestoreOS2FS();
3005
3006 yyrc = _O32_DdeUnaccessData(a);
3007 SetFS(sel);
3008
3009 return yyrc;
3010}
3011
3012inline BOOL O32_DdeUninitialize(DWORD a)
3013{
3014 BOOL yyrc;
3015 USHORT sel = RestoreOS2FS();
3016
3017 yyrc = _O32_DdeUninitialize(a);
3018 SetFS(sel);
3019
3020 return yyrc;
3021}
3022
3023inline LRESULT O32_DefDlgProc(HWND a, UINT b, WPARAM c, LPARAM d)
3024{
3025 LRESULT yyrc;
3026 USHORT sel = RestoreOS2FS();
3027
3028 yyrc = _O32_DefDlgProc(a, b, c, d);
3029 SetFS(sel);
3030
3031 return yyrc;
3032}
3033
3034inline HDWP O32_DeferWindowPos(HDWP a, HWND b, HWND c, int d, int e, int f, int g, UINT h)
3035{
3036 HDWP yyrc;
3037 USHORT sel = RestoreOS2FS();
3038
3039 yyrc = _O32_DeferWindowPos(a, b, c, d, e, f, g, h);
3040 SetFS(sel);
3041
3042 return yyrc;
3043}
3044
3045inline LRESULT O32_DefFrameProc(HWND a, HWND b, UINT c, WPARAM d, LPARAM e)
3046{
3047 LRESULT yyrc;
3048 USHORT sel = RestoreOS2FS();
3049
3050 yyrc = _O32_DefFrameProc(a, b, c, d, e);
3051 SetFS(sel);
3052
3053 return yyrc;
3054}
3055
3056inline LRESULT O32_DefMDIChildProc(HWND a, UINT b, WPARAM c, LPARAM d)
3057{
3058 LRESULT yyrc;
3059 USHORT sel = RestoreOS2FS();
3060
3061 yyrc = _O32_DefMDIChildProc(a, b, c, d);
3062 SetFS(sel);
3063
3064 return yyrc;
3065}
3066
3067inline LRESULT O32_DefWindowProc(HWND a, UINT b, WPARAM c, LPARAM d)
3068{
3069 LRESULT yyrc;
3070 USHORT sel = RestoreOS2FS();
3071
3072 yyrc = _O32_DefWindowProc(a, b, c, d);
3073 SetFS(sel);
3074
3075 return yyrc;
3076}
3077
3078inline ATOM O32_DeleteAtom(ATOM a)
3079{
3080 ATOM yyrc;
3081 USHORT sel = RestoreOS2FS();
3082
3083 yyrc = _O32_DeleteAtom(a);
3084 SetFS(sel);
3085
3086 return yyrc;
3087}
3088
3089inline VOID O32_DeleteCriticalSection(CRITICAL_SECTION *a)
3090{
3091 USHORT sel = RestoreOS2FS();
3092
3093 _O32_DeleteCriticalSection(a);
3094 SetFS(sel);
3095}
3096
3097inline BOOL O32_DeleteDC(HDC a)
3098{
3099 BOOL yyrc;
3100 USHORT sel = RestoreOS2FS();
3101
3102 yyrc = _O32_DeleteDC(a);
3103 SetFS(sel);
3104
3105 return yyrc;
3106}
3107
3108inline BOOL O32_DeleteEnhMetaFile(HENHMETAFILE a)
3109{
3110 BOOL yyrc;
3111 USHORT sel = RestoreOS2FS();
3112
3113 yyrc = _O32_DeleteEnhMetaFile(a);
3114 SetFS(sel);
3115
3116 return yyrc;
3117}
3118
3119inline BOOL O32_DeleteFile(LPCSTR a)
3120{
3121 BOOL yyrc;
3122 USHORT sel = RestoreOS2FS();
3123
3124 yyrc = _O32_DeleteFile(a);
3125 SetFS(sel);
3126
3127 return yyrc;
3128}
3129
3130inline BOOL O32_DeleteMenu(HMENU a, UINT b, UINT c)
3131{
3132 BOOL yyrc;
3133 USHORT sel = RestoreOS2FS();
3134
3135 yyrc = _O32_DeleteMenu(a, b, c);
3136 SetFS(sel);
3137
3138 return yyrc;
3139}
3140
3141inline BOOL O32_DeleteMetaFile(HMETAFILE a)
3142{
3143 BOOL yyrc;
3144 USHORT sel = RestoreOS2FS();
3145
3146 yyrc = _O32_DeleteMetaFile(a);
3147 SetFS(sel);
3148
3149 return yyrc;
3150}
3151
3152inline BOOL O32_DeleteObject(HANDLE a)
3153{
3154 BOOL yyrc;
3155 USHORT sel = RestoreOS2FS();
3156
3157 yyrc = _O32_DeleteObject(a);
3158 SetFS(sel);
3159
3160 return yyrc;
3161}
3162
3163inline BOOL O32_DestroyAcceleratorTable(HACCEL a)
3164{
3165 BOOL yyrc;
3166 USHORT sel = RestoreOS2FS();
3167
3168 yyrc = _O32_DestroyAcceleratorTable(a);
3169 SetFS(sel);
3170
3171 return yyrc;
3172}
3173
3174inline BOOL O32_DestroyCaret()
3175{
3176 BOOL yyrc;
3177 USHORT sel = RestoreOS2FS();
3178
3179 yyrc = _O32_DestroyCaret();
3180 SetFS(sel);
3181
3182 return yyrc;
3183}
3184
3185inline BOOL O32_DestroyCursor(HCURSOR a)
3186{
3187 BOOL yyrc;
3188 USHORT sel = RestoreOS2FS();
3189
3190 yyrc = _O32_DestroyCursor(a);
3191 SetFS(sel);
3192
3193 return yyrc;
3194}
3195
3196inline BOOL O32_DestroyIcon(HICON a)
3197{
3198 BOOL yyrc;
3199 USHORT sel = RestoreOS2FS();
3200
3201 yyrc = _O32_DestroyIcon(a);
3202 SetFS(sel);
3203
3204 return yyrc;
3205}
3206
3207inline BOOL O32_DestroyMenu(HMENU a)
3208{
3209 BOOL yyrc;
3210 USHORT sel = RestoreOS2FS();
3211
3212 yyrc = _O32_DestroyMenu(a);
3213 SetFS(sel);
3214
3215 return yyrc;
3216}
3217
3218inline BOOL O32_DestroyWindow(HWND a)
3219{
3220 BOOL yyrc;
3221 USHORT sel = RestoreOS2FS();
3222
3223 yyrc = _O32_DestroyWindow(a);
3224 SetFS(sel);
3225
3226 return yyrc;
3227}
3228
3229inline DWORD O32_DeviceCapabilities(LPCSTR a, LPCSTR b, WORD c, LPTSTR d, CONST DEVMODEA *e)
3230{
3231 DWORD yyrc;
3232 USHORT sel = RestoreOS2FS();
3233
3234 yyrc = _O32_DeviceCapabilities(a, b, c, d, e);
3235 SetFS(sel);
3236
3237 return yyrc;
3238}
3239
3240inline int O32_DialogBox(HINSTANCE a, LPCSTR b, HWND c, DLGPROC_O32 d)
3241{
3242 int yyrc;
3243 USHORT sel = RestoreOS2FS();
3244
3245 yyrc = _O32_DialogBox(a, b, c, d);
3246 SetFS(sel);
3247
3248 return yyrc;
3249}
3250
3251inline int O32_DialogBoxParam(HINSTANCE a, LPCSTR b, HWND c, DLGPROC_O32 d, LPARAM e)
3252{
3253 int yyrc;
3254 USHORT sel = RestoreOS2FS();
3255
3256 yyrc = _O32_DialogBoxParam(a, b, c, d, e);
3257 SetFS(sel);
3258
3259 return yyrc;
3260}
3261
3262inline BOOL O32_DialogBoxIndirect(HINSTANCE a, LPDLGTEMPLATEA b, HWND c, DLGPROC_O32 d)
3263{
3264 BOOL yyrc;
3265 USHORT sel = RestoreOS2FS();
3266
3267 yyrc = _O32_DialogBoxIndirect(a, b, c, d);
3268 SetFS(sel);
3269
3270 return yyrc;
3271}
3272
3273inline BOOL O32_DialogBoxIndirectParam(HINSTANCE a, LPDLGTEMPLATEA b, HWND c, DLGPROC_O32 d, LPARAM e)
3274{
3275 BOOL yyrc;
3276 USHORT sel = RestoreOS2FS();
3277
3278 yyrc = _O32_DialogBoxIndirectParam(a, b, c, d, e);
3279 SetFS(sel);
3280
3281 return yyrc;
3282}
3283
3284inline LONG O32_DispatchMessage(CONST MSG *a)
3285{
3286 LONG yyrc;
3287 USHORT sel = RestoreOS2FS();
3288
3289 yyrc = _O32_DispatchMessage(a);
3290 SetFS(sel);
3291
3292 return yyrc;
3293}
3294
3295inline int O32_DlgDirList(HWND a, LPSTR b, int c, int d, UINT e)
3296{
3297 int yyrc;
3298 USHORT sel = RestoreOS2FS();
3299
3300 yyrc = _O32_DlgDirList(a, b, c, d, e);
3301 SetFS(sel);
3302
3303 return yyrc;
3304}
3305
3306inline int O32_DlgDirListComboBox(HWND a, LPSTR b, int c, int d, UINT e)
3307{
3308 int yyrc;
3309 USHORT sel = RestoreOS2FS();
3310
3311 yyrc = _O32_DlgDirListComboBox(a, b, c, d, e);
3312 SetFS(sel);
3313
3314 return yyrc;
3315}
3316
3317inline BOOL O32_DlgDirSelectEx(HWND a, LPSTR b, int c, int d)
3318{
3319 BOOL yyrc;
3320 USHORT sel = RestoreOS2FS();
3321
3322 yyrc = _O32_DlgDirSelectEx(a, b, c, d);
3323 SetFS(sel);
3324
3325 return yyrc;
3326}
3327
3328inline BOOL O32_DlgDirSelectComboBoxEx(HWND a, LPSTR b, int c, int d)
3329{
3330 BOOL yyrc;
3331 USHORT sel = RestoreOS2FS();
3332
3333 yyrc = _O32_DlgDirSelectComboBoxEx(a, b, c, d);
3334 SetFS(sel);
3335
3336 return yyrc;
3337}
3338
3339inline BOOL O32_DllEntryPoint(HINSTANCE a, DWORD b, LPVOID c)
3340{
3341 BOOL yyrc;
3342 USHORT sel = RestoreOS2FS();
3343
3344 yyrc = _O32_DllEntryPoint(a, b, c);
3345 SetFS(sel);
3346
3347 return yyrc;
3348}
3349
3350inline BOOL O32_DosDateTimeToFileTime(WORD a, WORD b, LPFILETIME c)
3351{
3352 BOOL yyrc;
3353 USHORT sel = RestoreOS2FS();
3354
3355 yyrc = _O32_DosDateTimeToFileTime(a, b, c);
3356 SetFS(sel);
3357
3358 return yyrc;
3359}
3360
3361inline VOID O32_DragAcceptFiles(HWND a, BOOL b)
3362{
3363 USHORT sel = RestoreOS2FS();
3364
3365 _O32_DragAcceptFiles(a, b);
3366 SetFS(sel);
3367}
3368
3369inline VOID O32_DragFinish(HDROP a)
3370{
3371 USHORT sel = RestoreOS2FS();
3372
3373 _O32_DragFinish(a);
3374 SetFS(sel);
3375}
3376
3377inline UINT O32_DragQueryFile(HDROP a, int b, LPSTR c, int d)
3378{
3379 UINT yyrc;
3380 USHORT sel = RestoreOS2FS();
3381
3382 yyrc = _O32_DragQueryFile(a, b, c, d);
3383 SetFS(sel);
3384
3385 return yyrc;
3386}
3387
3388inline BOOL O32_DragQueryPoint(HDROP a, PPOINT b)
3389{
3390 BOOL yyrc;
3391 USHORT sel = RestoreOS2FS();
3392
3393 yyrc = _O32_DragQueryPoint(a, b);
3394 SetFS(sel);
3395
3396 return yyrc;
3397}
3398
3399inline BOOL O32_DrawFocusRect(HDC a, CONST RECT *b)
3400{
3401 BOOL yyrc;
3402 USHORT sel = RestoreOS2FS();
3403
3404 yyrc = _O32_DrawFocusRect(a, b);
3405 SetFS(sel);
3406
3407 return yyrc;
3408}
3409
3410inline BOOL O32_DrawIcon(HDC a, int b, int c, HICON d)
3411{
3412 BOOL yyrc;
3413 USHORT sel = RestoreOS2FS();
3414
3415 yyrc = _O32_DrawIcon(a, b, c, d);
3416 SetFS(sel);
3417
3418 return yyrc;
3419}
3420
3421inline BOOL O32_DrawMenuBar(HWND a)
3422{
3423 BOOL yyrc;
3424 USHORT sel = RestoreOS2FS();
3425
3426 yyrc = _O32_DrawMenuBar(a);
3427 SetFS(sel);
3428
3429 return yyrc;
3430}
3431
3432inline int O32_DrawText(HDC a, LPCSTR b, int c, PRECT d, UINT e)
3433{
3434 int yyrc;
3435 USHORT sel = RestoreOS2FS();
3436
3437 yyrc = _O32_DrawText(a, b, c, d, e);
3438 SetFS(sel);
3439
3440 return yyrc;
3441}
3442
3443inline BOOL O32_DuplicateHandle(HANDLE a, HANDLE b, HANDLE c, LPHANDLE d, DWORD e, BOOL f, DWORD g)
3444{
3445 BOOL yyrc;
3446 USHORT sel = RestoreOS2FS();
3447
3448 yyrc = _O32_DuplicateHandle(a, b, c, d, e, f, g);
3449 SetFS(sel);
3450
3451 return yyrc;
3452}
3453
3454inline BOOL O32_Ellipse(HDC a, int b, int c, int d, int e)
3455{
3456 BOOL yyrc;
3457 USHORT sel = RestoreOS2FS();
3458
3459 yyrc = _O32_Ellipse(a, b, c, d, e);
3460 SetFS(sel);
3461
3462 return yyrc;
3463}
3464
3465inline BOOL O32_EmptyClipboard()
3466{
3467 BOOL yyrc;
3468 USHORT sel = RestoreOS2FS();
3469
3470 yyrc = _O32_EmptyClipboard();
3471 SetFS(sel);
3472
3473 return yyrc;
3474}
3475
3476inline BOOL O32_EnableMenuItem(HMENU a, UINT b, UINT c)
3477{
3478 BOOL yyrc;
3479 USHORT sel = RestoreOS2FS();
3480
3481 yyrc = _O32_EnableMenuItem(a, b, c);
3482 SetFS(sel);
3483
3484 return yyrc;
3485}
3486
3487inline BOOL O32_EnableScrollBar(HWND a, UINT b, UINT c)
3488{
3489 BOOL yyrc;
3490 USHORT sel = RestoreOS2FS();
3491
3492 yyrc = _O32_EnableScrollBar(a, b, c);
3493 SetFS(sel);
3494
3495 return yyrc;
3496}
3497
3498inline BOOL O32_EnableWindow(HWND a, BOOL b)
3499{
3500 BOOL yyrc;
3501 USHORT sel = RestoreOS2FS();
3502
3503 yyrc = _O32_EnableWindow(a, b);
3504 SetFS(sel);
3505
3506 return yyrc;
3507}
3508
3509inline BOOL O32_EndDeferWindowPos(HDWP a)
3510{
3511 BOOL yyrc;
3512 USHORT sel = RestoreOS2FS();
3513
3514 yyrc = _O32_EndDeferWindowPos(a);
3515 SetFS(sel);
3516
3517 return yyrc;
3518}
3519
3520inline BOOL O32_EndDialog(HWND a, int b)
3521{
3522 BOOL yyrc;
3523 USHORT sel = RestoreOS2FS();
3524
3525 yyrc = _O32_EndDialog(a, b);
3526 SetFS(sel);
3527
3528 return yyrc;
3529}
3530
3531inline int O32_EndDoc(HDC a)
3532{
3533 int yyrc;
3534 USHORT sel = RestoreOS2FS();
3535
3536 yyrc = _O32_EndDoc(a);
3537 SetFS(sel);
3538
3539 return yyrc;
3540}
3541
3542inline int O32_EndPage(HDC a)
3543{
3544 int yyrc;
3545 USHORT sel = RestoreOS2FS();
3546
3547 yyrc = _O32_EndPage(a);
3548 SetFS(sel);
3549
3550 return yyrc;
3551}
3552
3553inline BOOL O32_EndPath(HDC a)
3554{
3555 BOOL yyrc;
3556 USHORT sel = RestoreOS2FS();
3557
3558 yyrc = _O32_EndPath(a);
3559 SetFS(sel);
3560
3561 return yyrc;
3562}
3563
3564inline BOOL O32_EndPaint(HWND a, CONST PAINTSTRUCT *b)
3565{
3566 BOOL yyrc;
3567 USHORT sel = RestoreOS2FS();
3568
3569 yyrc = _O32_EndPaint(a, b);
3570 SetFS(sel);
3571
3572 return yyrc;
3573}
3574
3575inline VOID O32_EnterCriticalSection(CRITICAL_SECTION *a)
3576{
3577 USHORT sel = RestoreOS2FS();
3578
3579 _O32_EnterCriticalSection(a);
3580 SetFS(sel);
3581}
3582
3583inline BOOL O32_EnumChildWindows(HWND a, WNDENUMPROC_O32 b, LPARAM c)
3584{
3585 BOOL yyrc;
3586 USHORT sel = RestoreOS2FS();
3587
3588 yyrc = _O32_EnumChildWindows(a, b, c);
3589 SetFS(sel);
3590
3591 return yyrc;
3592}
3593
3594inline UINT O32_EnumClipboardFormats(UINT a)
3595{
3596 UINT yyrc;
3597 USHORT sel = RestoreOS2FS();
3598
3599 yyrc = _O32_EnumClipboardFormats(a);
3600 SetFS(sel);
3601
3602 return yyrc;
3603}
3604
3605inline BOOL O32_EnumEnhMetaFile(HDC a, HENHMETAFILE b, ENHMFENUMPROC_O32 c, PVOID d, CONST RECT *e)
3606{
3607 BOOL yyrc;
3608 USHORT sel = RestoreOS2FS();
3609
3610 yyrc = _O32_EnumEnhMetaFile(a, b, c, d, e);
3611 SetFS(sel);
3612
3613 return yyrc;
3614}
3615
3616inline int O32_EnumFonts(HDC a, LPCSTR b, OLDFONTENUMPROC_O32 c, LPARAM d)
3617{
3618 int yyrc;
3619 USHORT sel = RestoreOS2FS();
3620
3621 yyrc = _O32_EnumFonts(a, b, c, d);
3622 SetFS(sel);
3623
3624 return yyrc;
3625}
3626
3627inline int O32_EnumFontFamilies(HDC a, LPCSTR b, FONTENUMPROC_O32 c, LPARAM d)
3628{
3629 int yyrc;
3630 USHORT sel = RestoreOS2FS();
3631
3632 yyrc = _O32_EnumFontFamilies(a, b, c, d);
3633 SetFS(sel);
3634
3635 return yyrc;
3636}
3637
3638inline BOOL O32_EnumMetaFile(HDC a, HMETAFILE b, MFENUMPROC_O32 c, LPARAM d)
3639{
3640 BOOL yyrc;
3641 USHORT sel = RestoreOS2FS();
3642
3643 yyrc = _O32_EnumMetaFile(a, b, c, d);
3644 SetFS(sel);
3645
3646 return yyrc;
3647}
3648
3649inline int O32_EnumObjects(HDC a, int b, GOBJENUMPROC_O32 c, LPARAM d)
3650{
3651 int yyrc;
3652 USHORT sel = RestoreOS2FS();
3653
3654 yyrc = _O32_EnumObjects(a, b, c, d);
3655 SetFS(sel);
3656
3657 return yyrc;
3658}
3659
3660inline BOOL O32_EnumPrinters(DWORD a, LPTSTR b, DWORD c, LPBYTE d, DWORD e, LPDWORD f, LPDWORD g)
3661{
3662 BOOL yyrc;
3663 USHORT sel = RestoreOS2FS();
3664
3665 yyrc = _O32_EnumPrinters(a, b, c, d, e, f, g);
3666 SetFS(sel);
3667
3668 return yyrc;
3669}
3670
3671inline int O32_EnumProps(HWND a, PROPENUMPROC_O32 b)
3672{
3673 int yyrc;
3674 USHORT sel = RestoreOS2FS();
3675
3676 yyrc = _O32_EnumProps(a, b);
3677 SetFS(sel);
3678
3679 return yyrc;
3680}
3681
3682inline int O32_EnumPropsEx(HWND a, PROPENUMPROCEX_O32 b, LPARAM c)
3683{
3684 int yyrc;
3685 USHORT sel = RestoreOS2FS();
3686
3687 yyrc = _O32_EnumPropsEx(a, b, c);
3688 SetFS(sel);
3689
3690 return yyrc;
3691}
3692
3693inline BOOL O32_EnumThreadWindows(DWORD a, WNDENUMPROC_O32 b, LPARAM c)
3694{
3695 BOOL yyrc;
3696 USHORT sel = RestoreOS2FS();
3697
3698 yyrc = _O32_EnumThreadWindows(a, b, c);
3699 SetFS(sel);
3700
3701 return yyrc;
3702}
3703
3704inline BOOL O32_EnumWindows(WNDENUMPROC_O32 a, LPARAM b)
3705{
3706 BOOL yyrc;
3707 USHORT sel = RestoreOS2FS();
3708
3709 yyrc = _O32_EnumWindows(a, b);
3710 SetFS(sel);
3711
3712 return yyrc;
3713}
3714
3715inline BOOL O32_EqualRect(CONST RECT *a, CONST RECT *b)
3716{
3717 BOOL yyrc;
3718 USHORT sel = RestoreOS2FS();
3719
3720 yyrc = _O32_EqualRect(a, b);
3721 SetFS(sel);
3722
3723 return yyrc;
3724}
3725
3726inline BOOL O32_EqualRgn(HRGN a, HRGN b)
3727{
3728 BOOL yyrc;
3729 USHORT sel = RestoreOS2FS();
3730
3731 yyrc = _O32_EqualRgn(a, b);
3732 SetFS(sel);
3733
3734 return yyrc;
3735}
3736
3737inline int O32_Escape(HDC a, int b, int c, LPCSTR d, PVOID e)
3738{
3739 int yyrc;
3740 USHORT sel = RestoreOS2FS();
3741
3742 yyrc = _O32_Escape(a, b, c, d, e);
3743 SetFS(sel);
3744
3745 return yyrc;
3746}
3747
3748inline int O32_ExcludeClipRect(HDC a, int b, int c, int d, int e)
3749{
3750 int yyrc;
3751 USHORT sel = RestoreOS2FS();
3752
3753 yyrc = _O32_ExcludeClipRect(a, b, c, d, e);
3754 SetFS(sel);
3755
3756 return yyrc;
3757}
3758
3759inline BOOL O32_ExcludeUpdateRgn(HDC a, HWND b)
3760{
3761 BOOL yyrc;
3762 USHORT sel = RestoreOS2FS();
3763
3764 yyrc = _O32_ExcludeUpdateRgn(a, b);
3765 SetFS(sel);
3766
3767 return yyrc;
3768}
3769
3770inline VOID O32_ExitProcess(UINT a)
3771{
3772 USHORT sel = RestoreOS2FS();
3773
3774 _O32_ExitProcess(a);
3775 SetFS(sel);
3776}
3777
3778inline VOID O32_ExitThread(DWORD a)
3779{
3780 USHORT sel = RestoreOS2FS();
3781
3782 _O32_ExitThread(a);
3783 SetFS(sel);
3784}
3785
3786inline BOOL O32_ExitWindows(DWORD a, UINT b)
3787{
3788 BOOL yyrc;
3789 USHORT sel = RestoreOS2FS();
3790
3791 yyrc = _O32_ExitWindows(a, b);
3792 SetFS(sel);
3793
3794 return yyrc;
3795}
3796
3797inline BOOL O32_ExitWindowsEx(UINT a, DWORD b)
3798{
3799 BOOL yyrc;
3800 USHORT sel = RestoreOS2FS();
3801
3802 yyrc = _O32_ExitWindowsEx(a, b);
3803 SetFS(sel);
3804
3805 return yyrc;
3806}
3807
3808inline HPEN O32_ExtCreatePen(DWORD a, DWORD b, CONST LOGBRUSH *c, DWORD d, CONST DWORD *e)
3809{
3810 HPEN yyrc;
3811 USHORT sel = RestoreOS2FS();
3812
3813 yyrc = _O32_ExtCreatePen(a, b, c, d, e);
3814 SetFS(sel);
3815
3816 return yyrc;
3817}
3818
3819inline HRGN O32_ExtCreateRegion(CONST XFORM *a, DWORD b, CONST RGNDATA *c)
3820{
3821 HRGN yyrc;
3822 USHORT sel = RestoreOS2FS();
3823
3824 yyrc = _O32_ExtCreateRegion(a, b, c);
3825 SetFS(sel);
3826
3827 return yyrc;
3828}
3829
3830inline BOOL O32_ExtFloodFill(HDC a, int b, int c, COLORREF d, UINT e)
3831{
3832 BOOL yyrc;
3833 USHORT sel = RestoreOS2FS();
3834
3835 yyrc = _O32_ExtFloodFill(a, b, c, d, e);
3836 SetFS(sel);
3837
3838 return yyrc;
3839}
3840
3841inline int O32_ExtSelectClipRgn(HDC a, HRGN b, int c)
3842{
3843 int yyrc;
3844 USHORT sel = RestoreOS2FS();
3845
3846 yyrc = _O32_ExtSelectClipRgn(a, b, c);
3847 SetFS(sel);
3848
3849 return yyrc;
3850}
3851
3852inline BOOL O32_ExtTextOut(HDC a, int b, int c, UINT d, CONST RECT *e, LPCSTR f, UINT g, CONST int *h)
3853{
3854 BOOL yyrc;
3855 USHORT sel = RestoreOS2FS();
3856
3857 yyrc = _O32_ExtTextOut(a, b, c, d, e, f, g, h);
3858 SetFS(sel);
3859
3860 return yyrc;
3861}
3862
3863inline VOID O32_FatalAppExit(UINT a, LPCSTR b)
3864{
3865 USHORT sel = RestoreOS2FS();
3866
3867 _O32_FatalAppExit(a, b);
3868 SetFS(sel);
3869}
3870
3871inline VOID O32_FatalExit(UINT a)
3872{
3873 USHORT sel = RestoreOS2FS();
3874
3875 _O32_FatalExit(a);
3876 SetFS(sel);
3877}
3878
3879inline BOOL O32_FileTimeToDosDateTime(CONST FILETIME *a, LPWORD b, LPWORD c)
3880{
3881 BOOL yyrc;
3882 USHORT sel = RestoreOS2FS();
3883
3884 yyrc = _O32_FileTimeToDosDateTime(a, b, c);
3885 SetFS(sel);
3886
3887 return yyrc;
3888}
3889
3890inline BOOL O32_FileTimeToLocalFileTime(CONST FILETIME *a, FILETIME *b)
3891{
3892 BOOL yyrc;
3893 USHORT sel = RestoreOS2FS();
3894
3895 yyrc = _O32_FileTimeToLocalFileTime(a, b);
3896 SetFS(sel);
3897
3898 return yyrc;
3899}
3900
3901inline BOOL O32_FileTimeToSystemTime(CONST FILETIME *a, LPSYSTEMTIME b)
3902{
3903 BOOL yyrc;
3904 USHORT sel = RestoreOS2FS();
3905
3906 yyrc = _O32_FileTimeToSystemTime(a, b);
3907 SetFS(sel);
3908
3909 return yyrc;
3910}
3911
3912inline BOOL O32_FillPath(HDC a)
3913{
3914 BOOL yyrc;
3915 USHORT sel = RestoreOS2FS();
3916
3917 yyrc = _O32_FillPath(a);
3918 SetFS(sel);
3919
3920 return yyrc;
3921}
3922
3923inline int O32_FillRect(HDC a, CONST RECT *b, HBRUSH c)
3924{
3925 int yyrc;
3926 USHORT sel = RestoreOS2FS();
3927
3928 yyrc = _O32_FillRect(a, b, c);
3929 SetFS(sel);
3930
3931 return yyrc;
3932}
3933
3934inline BOOL O32_FillRgn(HDC a, HRGN b, HBRUSH c)
3935{
3936 BOOL yyrc;
3937 USHORT sel = RestoreOS2FS();
3938
3939 yyrc = _O32_FillRgn(a, b, c);
3940 SetFS(sel);
3941
3942 return yyrc;
3943}
3944
3945inline ATOM O32_FindAtom(LPCSTR a)
3946{
3947 ATOM yyrc;
3948 USHORT sel = RestoreOS2FS();
3949
3950 yyrc = _O32_FindAtom(a);
3951 SetFS(sel);
3952
3953 return yyrc;
3954}
3955
3956inline BOOL O32_FindClose(HANDLE a)
3957{
3958 BOOL yyrc;
3959 USHORT sel = RestoreOS2FS();
3960
3961 yyrc = _O32_FindClose(a);
3962 SetFS(sel);
3963
3964 return yyrc;
3965}
3966
3967inline HANDLE O32_FindFirstFile(LPCSTR a, LPWIN32_FIND_DATAA b)
3968{
3969 HANDLE yyrc;
3970 USHORT sel = RestoreOS2FS();
3971
3972 yyrc = _O32_FindFirstFile(a, b);
3973 SetFS(sel);
3974
3975 return yyrc;
3976}
3977
3978inline BOOL O32_FindNextFile(HANDLE a, LPWIN32_FIND_DATAA b)
3979{
3980 BOOL yyrc;
3981 USHORT sel = RestoreOS2FS();
3982
3983 yyrc = _O32_FindNextFile(a, b);
3984 SetFS(sel);
3985
3986 return yyrc;
3987}
3988
3989inline HRSRC O32_FindResource(HINSTANCE a, LPCSTR b, LPCSTR c)
3990{
3991 HRSRC yyrc;
3992 USHORT sel = RestoreOS2FS();
3993
3994 yyrc = _O32_FindResource(a, b, c);
3995 SetFS(sel);
3996
3997 return yyrc;
3998}
3999
4000inline HWND O32_FindText(LPFINDREPLACEA a)
4001{
4002 HWND yyrc;
4003 USHORT sel = RestoreOS2FS();
4004
4005 yyrc = _O32_FindText(a);
4006 SetFS(sel);
4007
4008 return yyrc;
4009}
4010
4011inline HWND O32_FindWindow(LPCSTR a, LPCSTR b)
4012{
4013 HWND yyrc;
4014 USHORT sel = RestoreOS2FS();
4015
4016 yyrc = _O32_FindWindow(a, b);
4017 SetFS(sel);
4018
4019 return yyrc;
4020}
4021
4022inline BOOL O32_FlashWindow(HWND a, BOOL b)
4023{
4024 BOOL yyrc;
4025 USHORT sel = RestoreOS2FS();
4026
4027 yyrc = _O32_FlashWindow(a, b);
4028 SetFS(sel);
4029
4030 return yyrc;
4031}
4032
4033inline BOOL O32_FlattenPath(HDC a)
4034{
4035 BOOL yyrc;
4036 USHORT sel = RestoreOS2FS();
4037
4038 yyrc = _O32_FlattenPath(a);
4039 SetFS(sel);
4040
4041 return yyrc;
4042}
4043
4044inline BOOL O32_FlushFileBuffers(HANDLE a)
4045{
4046 BOOL yyrc;
4047 USHORT sel = RestoreOS2FS();
4048
4049 yyrc = _O32_FlushFileBuffers(a);
4050 SetFS(sel);
4051
4052 return yyrc;
4053}
4054
4055inline int O32_FrameRect(HDC a, CONST RECT *b, HBRUSH c)
4056{
4057 int yyrc;
4058 USHORT sel = RestoreOS2FS();
4059
4060 yyrc = _O32_FrameRect(a, b, c);
4061 SetFS(sel);
4062
4063 return yyrc;
4064}
4065
4066inline BOOL O32_FrameRgn(HDC a, HRGN b, HBRUSH c, int d, int e)
4067{
4068 BOOL yyrc;
4069 USHORT sel = RestoreOS2FS();
4070
4071 yyrc = _O32_FrameRgn(a, b, c, d, e);
4072 SetFS(sel);
4073
4074 return yyrc;
4075}
4076
4077inline BOOL O32_FreeDDElParam(UINT a, LONG b)
4078{
4079 BOOL yyrc;
4080 USHORT sel = RestoreOS2FS();
4081
4082 yyrc = _O32_FreeDDElParam(a, b);
4083 SetFS(sel);
4084
4085 return yyrc;
4086}
4087
4088inline BOOL O32_FreeLibrary(HINSTANCE a)
4089{
4090 BOOL yyrc;
4091 USHORT sel = RestoreOS2FS();
4092
4093 yyrc = _O32_FreeLibrary(a);
4094 SetFS(sel);
4095
4096 return yyrc;
4097}
4098
4099inline BOOL O32_GdiComment(HDC hdc, UINT cbSize, CONST BYTE * lpData)
4100{
4101 BOOL yyrc;
4102 USHORT sel = RestoreOS2FS();
4103
4104 yyrc = _O32_GdiComment(hdc, cbSize, lpData);
4105 SetFS(sel);
4106
4107 return yyrc;
4108}
4109
4110inline UINT O32_GetACP()
4111{
4112 UINT yyrc;
4113 USHORT sel = RestoreOS2FS();
4114
4115 yyrc = _O32_GetACP();
4116 SetFS(sel);
4117
4118 return yyrc;
4119}
4120
4121inline HWND O32_GetActiveWindow()
4122{
4123 HWND yyrc;
4124 USHORT sel = RestoreOS2FS();
4125
4126 yyrc = _O32_GetActiveWindow();
4127 SetFS(sel);
4128
4129 return yyrc;
4130}
4131
4132inline int O32_GetArcDirection(HDC a)
4133{
4134 int yyrc;
4135 USHORT sel = RestoreOS2FS();
4136
4137 yyrc = _O32_GetArcDirection(a);
4138 SetFS(sel);
4139
4140 return yyrc;
4141}
4142
4143inline BOOL O32_GetAspectRatioFilterEx(HDC a, PSIZE b)
4144{
4145 BOOL yyrc;
4146 USHORT sel = RestoreOS2FS();
4147
4148 yyrc = _O32_GetAspectRatioFilterEx(a, b);
4149 SetFS(sel);
4150
4151 return yyrc;
4152}
4153
4154inline UINT O32_GetAtomName(ATOM a, LPSTR b, int c)
4155{
4156 UINT yyrc;
4157 USHORT sel = RestoreOS2FS();
4158
4159 yyrc = _O32_GetAtomName(a, b, c);
4160 SetFS(sel);
4161
4162 return yyrc;
4163}
4164
4165inline LONG O32_GetBitmapBits(HBITMAP a, LONG b, PVOID c)
4166{
4167 LONG yyrc;
4168 USHORT sel = RestoreOS2FS();
4169
4170 yyrc = _O32_GetBitmapBits(a, b, c);
4171 SetFS(sel);
4172
4173 return yyrc;
4174}
4175
4176inline BOOL O32_GetBitmapDimensionEx(HBITMAP a, PSIZE b)
4177{
4178 BOOL yyrc;
4179 USHORT sel = RestoreOS2FS();
4180
4181 yyrc = _O32_GetBitmapDimensionEx(a, b);
4182 SetFS(sel);
4183
4184 return yyrc;
4185}
4186
4187inline COLORREF O32_GetBkColor(HDC a)
4188{
4189 COLORREF yyrc;
4190 USHORT sel = RestoreOS2FS();
4191
4192 yyrc = _O32_GetBkColor(a);
4193 SetFS(sel);
4194
4195 return yyrc;
4196}
4197
4198inline int O32_GetBkMode(HDC a)
4199{
4200 int yyrc;
4201 USHORT sel = RestoreOS2FS();
4202
4203 yyrc = _O32_GetBkMode(a);
4204 SetFS(sel);
4205
4206 return yyrc;
4207}
4208
4209inline UINT O32_GetBoundsRect(HDC a, PRECT b, UINT c)
4210{
4211 UINT yyrc;
4212 USHORT sel = RestoreOS2FS();
4213
4214 yyrc = _O32_GetBoundsRect(a, b, c);
4215 SetFS(sel);
4216
4217 return yyrc;
4218}
4219
4220inline BOOL O32_GetBrushOrgEx(HDC a, PPOINT b)
4221{
4222 BOOL yyrc;
4223 USHORT sel = RestoreOS2FS();
4224
4225 yyrc = _O32_GetBrushOrgEx(a, b);
4226 SetFS(sel);
4227
4228 return yyrc;
4229}
4230
4231inline HWND O32_GetCapture()
4232{
4233 HWND yyrc;
4234 USHORT sel = RestoreOS2FS();
4235
4236 yyrc = _O32_GetCapture();
4237 SetFS(sel);
4238
4239 return yyrc;
4240}
4241
4242inline UINT O32_GetCaretBlinkTime()
4243{
4244 UINT yyrc;
4245 USHORT sel = RestoreOS2FS();
4246
4247 yyrc = _O32_GetCaretBlinkTime();
4248 SetFS(sel);
4249
4250 return yyrc;
4251}
4252
4253inline BOOL O32_GetCaretPos(PPOINT a)
4254{
4255 BOOL yyrc;
4256 USHORT sel = RestoreOS2FS();
4257
4258 yyrc = _O32_GetCaretPos(a);
4259 SetFS(sel);
4260
4261 return yyrc;
4262}
4263
4264inline BOOL O32_GetCharABCWidths(HDC a, UINT b, UINT c, LPABC d)
4265{
4266 BOOL yyrc;
4267 USHORT sel = RestoreOS2FS();
4268
4269 yyrc = _O32_GetCharABCWidths(a, b, c, d);
4270 SetFS(sel);
4271
4272 return yyrc;
4273}
4274
4275inline BOOL O32_GetCharWidth(HDC a, UINT b, UINT c, PINT d)
4276{
4277 BOOL yyrc;
4278 USHORT sel = RestoreOS2FS();
4279
4280 yyrc = _O32_GetCharWidth(a, b, c, d);
4281 SetFS(sel);
4282
4283 return yyrc;
4284}
4285
4286inline BOOL O32_GetClassInfo(HINSTANCE a, LPCSTR b, WNDCLASSA *c)
4287{
4288 BOOL yyrc;
4289 USHORT sel = RestoreOS2FS();
4290
4291 yyrc = _O32_GetClassInfo(a, b, c);
4292 SetFS(sel);
4293
4294 return yyrc;
4295}
4296
4297inline DWORD O32_GetClassLong(HWND a, int b)
4298{
4299 DWORD yyrc;
4300 USHORT sel = RestoreOS2FS();
4301
4302 yyrc = _O32_GetClassLong(a, b);
4303 SetFS(sel);
4304
4305 return yyrc;
4306}
4307
4308inline int O32_GetClassName(HWND a, LPSTR b, int c)
4309{
4310 int yyrc;
4311 USHORT sel = RestoreOS2FS();
4312
4313 yyrc = _O32_GetClassName(a, b, c);
4314 SetFS(sel);
4315
4316 return yyrc;
4317}
4318
4319inline WORD O32_GetClassWord(HWND a, int b)
4320{
4321 WORD yyrc;
4322 USHORT sel = RestoreOS2FS();
4323
4324 yyrc = _O32_GetClassWord(a, b);
4325 SetFS(sel);
4326
4327 return yyrc;
4328}
4329
4330inline BOOL O32_GetClientRect(HWND a, PRECT b)
4331{
4332 BOOL yyrc;
4333 USHORT sel = RestoreOS2FS();
4334
4335 yyrc = _O32_GetClientRect(a, b);
4336 SetFS(sel);
4337
4338 return yyrc;
4339}
4340
4341inline HANDLE O32_GetClipboardData(UINT a)
4342{
4343 HANDLE yyrc;
4344 USHORT sel = RestoreOS2FS();
4345
4346 yyrc = _O32_GetClipboardData(a);
4347 SetFS(sel);
4348
4349 return yyrc;
4350}
4351
4352inline int O32_GetClipboardFormatName(UINT a, LPSTR b, int c)
4353{
4354 int yyrc;
4355 USHORT sel = RestoreOS2FS();
4356
4357 yyrc = _O32_GetClipboardFormatName(a, b, c);
4358 SetFS(sel);
4359
4360 return yyrc;
4361}
4362
4363inline HWND O32_GetClipboardOwner()
4364{
4365 HWND yyrc;
4366 USHORT sel = RestoreOS2FS();
4367
4368 yyrc = _O32_GetClipboardOwner();
4369 SetFS(sel);
4370
4371 return yyrc;
4372}
4373
4374inline HWND O32_GetClipboardViewer()
4375{
4376 HWND yyrc;
4377 USHORT sel = RestoreOS2FS();
4378
4379 yyrc = _O32_GetClipboardViewer();
4380 SetFS(sel);
4381
4382 return yyrc;
4383}
4384
4385inline int O32_GetClipBox(HDC a, PRECT b)
4386{
4387 int yyrc;
4388 USHORT sel = RestoreOS2FS();
4389
4390 yyrc = _O32_GetClipBox(a, b);
4391 SetFS(sel);
4392
4393 return yyrc;
4394}
4395
4396inline BOOL O32_GetClipCursor(PRECT a)
4397{
4398 BOOL yyrc;
4399 USHORT sel = RestoreOS2FS();
4400
4401 yyrc = _O32_GetClipCursor(a);
4402 SetFS(sel);
4403
4404 return yyrc;
4405}
4406
4407inline int O32_GetClipRgn(HDC a, HRGN b)
4408{
4409 int yyrc;
4410 USHORT sel = RestoreOS2FS();
4411
4412 yyrc = _O32_GetClipRgn(a, b);
4413 SetFS(sel);
4414
4415 return yyrc;
4416}
4417
4418inline LPSTR O32_GetCommandLine()
4419{
4420 LPSTR yyrc;
4421 USHORT sel = RestoreOS2FS();
4422
4423 yyrc = _O32_GetCommandLine();
4424 SetFS(sel);
4425
4426 return yyrc;
4427}
4428
4429inline int O32_GetCurrentDirectory(DWORD a, LPSTR b)
4430{
4431 int yyrc;
4432 USHORT sel = RestoreOS2FS();
4433
4434 yyrc = _O32_GetCurrentDirectory(a, b);
4435 SetFS(sel);
4436
4437 return yyrc;
4438}
4439
4440inline HGDIOBJ O32_GetCurrentObject(HDC a, DWORD b)
4441{
4442 HGDIOBJ yyrc;
4443 USHORT sel = RestoreOS2FS();
4444
4445 yyrc = _O32_GetCurrentObject(a, b);
4446 SetFS(sel);
4447
4448 return yyrc;
4449}
4450
4451inline BOOL O32_GetCurrentPositionEx(HDC a, PPOINT b)
4452{
4453 BOOL yyrc;
4454 USHORT sel = RestoreOS2FS();
4455
4456 yyrc = _O32_GetCurrentPositionEx(a, b);
4457 SetFS(sel);
4458
4459 return yyrc;
4460}
4461
4462inline HANDLE O32_GetCurrentProcess()
4463{
4464 HANDLE yyrc;
4465 USHORT sel = RestoreOS2FS();
4466
4467 yyrc = _O32_GetCurrentProcess();
4468 SetFS(sel);
4469
4470 return yyrc;
4471}
4472
4473inline DWORD O32_GetCurrentProcessId()
4474{
4475 DWORD yyrc;
4476 USHORT sel = RestoreOS2FS();
4477
4478 yyrc = _O32_GetCurrentProcessId();
4479 SetFS(sel);
4480
4481 return yyrc;
4482}
4483
4484inline HANDLE O32_GetCurrentThread()
4485{
4486 HANDLE yyrc;
4487 USHORT sel = RestoreOS2FS();
4488
4489 yyrc = _O32_GetCurrentThread();
4490 SetFS(sel);
4491
4492 return yyrc;
4493}
4494
4495inline DWORD O32_GetCurrentThreadId()
4496{
4497 DWORD yyrc;
4498 USHORT sel = RestoreOS2FS();
4499
4500 yyrc = _O32_GetCurrentThreadId();
4501 SetFS(sel);
4502
4503 return yyrc;
4504}
4505
4506inline DWORD O32_GetCurrentTime()
4507{
4508 DWORD yyrc;
4509 USHORT sel = RestoreOS2FS();
4510
4511 yyrc = _O32_GetCurrentTime();
4512 SetFS(sel);
4513
4514 return yyrc;
4515}
4516
4517inline HCURSOR O32_GetCursor()
4518{
4519 HCURSOR yyrc;
4520 USHORT sel = RestoreOS2FS();
4521
4522 yyrc = _O32_GetCursor();
4523 SetFS(sel);
4524
4525 return yyrc;
4526}
4527
4528inline BOOL O32_GetCursorPos(PPOINT a)
4529{
4530 BOOL yyrc;
4531 USHORT sel = RestoreOS2FS();
4532
4533 yyrc = _O32_GetCursorPos(a);
4534 SetFS(sel);
4535
4536 return yyrc;
4537}
4538
4539inline HDC O32_GetDC(HWND a)
4540{
4541 HDC yyrc;
4542 USHORT sel = RestoreOS2FS();
4543
4544 yyrc = _O32_GetDC(a);
4545 SetFS(sel);
4546
4547 return yyrc;
4548}
4549
4550inline HDC O32_GetDCEx(HWND a, HRGN b, DWORD c)
4551{
4552 HDC yyrc;
4553 USHORT sel = RestoreOS2FS();
4554
4555 yyrc = _O32_GetDCEx(a, b, c);
4556 SetFS(sel);
4557
4558 return yyrc;
4559}
4560
4561inline BOOL O32_GetDCOrgEx(HDC a, PPOINT b)
4562{
4563 BOOL yyrc;
4564 USHORT sel = RestoreOS2FS();
4565
4566 yyrc = _O32_GetDCOrgEx(a, b);
4567 SetFS(sel);
4568
4569 return yyrc;
4570}
4571
4572inline int O32_GetDIBits(HDC a, HBITMAP b, UINT c, UINT d, void *e, PBITMAPINFO f, UINT g)
4573{
4574 int yyrc;
4575 USHORT sel = RestoreOS2FS();
4576
4577 yyrc = _O32_GetDIBits(a, b, c, d, e, f, g);
4578 SetFS(sel);
4579
4580 return yyrc;
4581}
4582
4583inline int O32_GetDeviceCaps(HDC a, int b)
4584{
4585 int yyrc;
4586 USHORT sel = RestoreOS2FS();
4587
4588 yyrc = _O32_GetDeviceCaps(a, b);
4589 SetFS(sel);
4590
4591 return yyrc;
4592}
4593
4594inline LONG O32_GetDialogBaseUnits()
4595{
4596 LONG yyrc;
4597 USHORT sel = RestoreOS2FS();
4598
4599 yyrc = _O32_GetDialogBaseUnits();
4600 SetFS(sel);
4601
4602 return yyrc;
4603}
4604
4605inline BOOL O32_GetDiskFreeSpace(LPCSTR a, PDWORD b, PDWORD c, PDWORD d, PDWORD e)
4606{
4607 BOOL yyrc;
4608 USHORT sel = RestoreOS2FS();
4609
4610 yyrc = _O32_GetDiskFreeSpace(a, b, c, d, e);
4611 SetFS(sel);
4612
4613 return yyrc;
4614}
4615
4616inline int O32_GetDlgCtrlID(HWND a)
4617{
4618 int yyrc;
4619 USHORT sel = RestoreOS2FS();
4620
4621 yyrc = _O32_GetDlgCtrlID(a);
4622 SetFS(sel);
4623
4624 return yyrc;
4625}
4626
4627inline HWND O32_GetDlgItem(HWND a, int b)
4628{
4629 HWND yyrc;
4630 USHORT sel = RestoreOS2FS();
4631
4632 yyrc = _O32_GetDlgItem(a, b);
4633 SetFS(sel);
4634
4635 return yyrc;
4636}
4637
4638inline UINT O32_GetDlgItemInt(HWND a, int b, PBOOL c, BOOL d)
4639{
4640 UINT yyrc;
4641 USHORT sel = RestoreOS2FS();
4642
4643 yyrc = _O32_GetDlgItemInt(a, b, c, d);
4644 SetFS(sel);
4645
4646 return yyrc;
4647}
4648
4649inline UINT O32_GetDlgItemText(HWND a, int b, LPSTR c, int d)
4650{
4651 UINT yyrc;
4652 USHORT sel = RestoreOS2FS();
4653
4654 yyrc = _O32_GetDlgItemText(a, b, c, d);
4655 SetFS(sel);
4656
4657 return yyrc;
4658}
4659
4660inline UINT O32_GetDoubleClickTime()
4661{
4662 UINT yyrc;
4663 USHORT sel = RestoreOS2FS();
4664
4665 yyrc = _O32_GetDoubleClickTime();
4666 SetFS(sel);
4667
4668 return yyrc;
4669}
4670
4671inline UINT O32_GetDriveType(LPCSTR a)
4672{
4673 UINT yyrc;
4674 USHORT sel = RestoreOS2FS();
4675
4676 yyrc = _O32_GetDriveType(a);
4677 SetFS(sel);
4678
4679 return yyrc;
4680}
4681
4682inline HENHMETAFILE O32_GetEnhMetaFile(LPCSTR a)
4683{
4684 HENHMETAFILE yyrc;
4685 USHORT sel = RestoreOS2FS();
4686
4687 yyrc = _O32_GetEnhMetaFile(a);
4688 SetFS(sel);
4689
4690 return yyrc;
4691}
4692
4693inline UINT O32_GetEnhMetaFileBits(HENHMETAFILE a, UINT b, PBYTE c)
4694{
4695 UINT yyrc;
4696 USHORT sel = RestoreOS2FS();
4697
4698 yyrc = _O32_GetEnhMetaFileBits(a, b, c);
4699 SetFS(sel);
4700
4701 return yyrc;
4702}
4703
4704inline UINT O32_GetEnhMetaFileHeader(HENHMETAFILE a, UINT b, LPENHMETAHEADER c)
4705{
4706 UINT yyrc;
4707 USHORT sel = RestoreOS2FS();
4708
4709 yyrc = _O32_GetEnhMetaFileHeader(a, b, c);
4710 SetFS(sel);
4711
4712 return yyrc;
4713}
4714
4715inline UINT O32_GetEnhMetaFilePaletteEntries(HENHMETAFILE a, UINT b, LPPALETTEENTRY c)
4716{
4717 UINT yyrc;
4718 USHORT sel = RestoreOS2FS();
4719
4720 yyrc = _O32_GetEnhMetaFilePaletteEntries(a, b, c);
4721 SetFS(sel);
4722
4723 return yyrc;
4724}
4725
4726inline PVOID O32_GetEnvironmentStrings()
4727{
4728 PVOID yyrc;
4729 USHORT sel = RestoreOS2FS();
4730
4731 yyrc = _O32_GetEnvironmentStrings();
4732 SetFS(sel);
4733
4734 return yyrc;
4735}
4736
4737inline DWORD O32_GetEnvironmentVariable(LPCSTR a, LPSTR b, DWORD c)
4738{
4739 DWORD yyrc;
4740 USHORT sel = RestoreOS2FS();
4741
4742 yyrc = _O32_GetEnvironmentVariable(a, b, c);
4743 SetFS(sel);
4744
4745 return yyrc;
4746}
4747
4748inline BOOL O32_GetExitCodeProcess(HANDLE a, LPDWORD b)
4749{
4750 BOOL yyrc;
4751 USHORT sel = RestoreOS2FS();
4752
4753 yyrc = _O32_GetExitCodeProcess(a, b);
4754 SetFS(sel);
4755
4756 return yyrc;
4757}
4758
4759inline BOOL O32_GetExitCodeThread(HANDLE a, LPDWORD b)
4760{
4761 BOOL yyrc;
4762 USHORT sel = RestoreOS2FS();
4763
4764 yyrc = _O32_GetExitCodeThread(a, b);
4765 SetFS(sel);
4766
4767 return yyrc;
4768}
4769
4770inline DWORD O32_GetFileAttributes(LPSTR a)
4771{
4772 DWORD yyrc;
4773 USHORT sel = RestoreOS2FS();
4774
4775 yyrc = _O32_GetFileAttributes(a);
4776 SetFS(sel);
4777
4778 return yyrc;
4779}
4780
4781inline DWORD O32_GetFileInformationByHandle(HANDLE a, BY_HANDLE_FILE_INFORMATION *b)
4782{
4783 DWORD yyrc;
4784 USHORT sel = RestoreOS2FS();
4785
4786 yyrc = _O32_GetFileInformationByHandle(a, b);
4787 SetFS(sel);
4788
4789 return yyrc;
4790}
4791
4792inline DWORD O32_GetFileSize(HANDLE a, PDWORD b)
4793{
4794 DWORD yyrc;
4795 USHORT sel = RestoreOS2FS();
4796
4797 yyrc = _O32_GetFileSize(a, b);
4798 SetFS(sel);
4799
4800 return yyrc;
4801}
4802
4803inline BOOL O32_GetFileTime(HANDLE a, FILETIME *b, FILETIME *c, FILETIME *d)
4804{
4805 BOOL yyrc;
4806 USHORT sel = RestoreOS2FS();
4807
4808 yyrc = _O32_GetFileTime(a, b, c, d);
4809 SetFS(sel);
4810
4811 return yyrc;
4812}
4813
4814inline short O32_GetFileTitle(LPCSTR a, LPSTR b, WORD c)
4815{
4816 short yyrc;
4817 USHORT sel = RestoreOS2FS();
4818
4819 yyrc = _O32_GetFileTitle(a, b, c);
4820 SetFS(sel);
4821
4822 return yyrc;
4823}
4824
4825inline DWORD O32_GetFileType(HANDLE a)
4826{
4827 DWORD yyrc;
4828 USHORT sel = RestoreOS2FS();
4829
4830 yyrc = _O32_GetFileType(a);
4831 SetFS(sel);
4832
4833 return yyrc;
4834}
4835
4836inline HWND O32_GetFocus()
4837{
4838 HWND yyrc;
4839 USHORT sel = RestoreOS2FS();
4840
4841 yyrc = _O32_GetFocus();
4842 SetFS(sel);
4843
4844 return yyrc;
4845}
4846
4847inline HWND O32_GetForegroundWindow()
4848{
4849 HWND yyrc;
4850 USHORT sel = RestoreOS2FS();
4851
4852 yyrc = _O32_GetForegroundWindow();
4853 SetFS(sel);
4854
4855 return yyrc;
4856}
4857
4858inline DWORD O32_GetFullPathName(LPCSTR a, DWORD b, LPSTR c, LPSTR *d)
4859{
4860 DWORD yyrc;
4861 USHORT sel = RestoreOS2FS();
4862
4863 yyrc = _O32_GetFullPathName(a, b, c, d);
4864 SetFS(sel);
4865
4866 return yyrc;
4867}
4868
4869inline int O32_GetGraphicsMode(HDC a)
4870{
4871 int yyrc;
4872 USHORT sel = RestoreOS2FS();
4873
4874 yyrc = _O32_GetGraphicsMode(a);
4875 SetFS(sel);
4876
4877 return yyrc;
4878}
4879
4880inline BOOL O32_GetIconInfo(HICON a, LPICONINFO b)
4881{
4882 BOOL yyrc;
4883 USHORT sel = RestoreOS2FS();
4884
4885 yyrc = _O32_GetIconInfo(a, b);
4886 SetFS(sel);
4887
4888 return yyrc;
4889}
4890
4891inline DWORD O32_GetKerningPairs(HDC a, DWORD b, LPKERNINGPAIR c)
4892{
4893 DWORD yyrc;
4894 USHORT sel = RestoreOS2FS();
4895
4896 yyrc = _O32_GetKerningPairs(a, b, c);
4897 SetFS(sel);
4898
4899 return yyrc;
4900}
4901
4902inline int O32_GetKeyboardType(int a)
4903{
4904 int yyrc;
4905 USHORT sel = RestoreOS2FS();
4906
4907 yyrc = _O32_GetKeyboardType(a);
4908 SetFS(sel);
4909
4910 return yyrc;
4911}
4912
4913inline int O32_GetKeyNameText(LPARAM a, LPSTR b, int c)
4914{
4915 int yyrc;
4916 USHORT sel = RestoreOS2FS();
4917
4918 yyrc = _O32_GetKeyNameText(a, b, c);
4919 SetFS(sel);
4920
4921 return yyrc;
4922}
4923
4924inline SHORT O32_GetAsyncKeyState(int a)
4925{
4926 SHORT yyrc;
4927 USHORT sel = RestoreOS2FS();
4928
4929 yyrc = _O32_GetAsyncKeyState(a);
4930 SetFS(sel);
4931
4932 return yyrc;
4933}
4934
4935inline SHORT O32_GetKeyState(int a)
4936{
4937 SHORT yyrc;
4938 USHORT sel = RestoreOS2FS();
4939
4940 yyrc = _O32_GetKeyState(a);
4941 SetFS(sel);
4942
4943 return yyrc;
4944}
4945
4946inline HWND O32_GetLastActivePopup(HWND a)
4947{
4948 HWND yyrc;
4949 USHORT sel = RestoreOS2FS();
4950
4951 yyrc = _O32_GetLastActivePopup(a);
4952 SetFS(sel);
4953
4954 return yyrc;
4955}
4956
4957inline DWORD O32_GetLastError()
4958{
4959 DWORD yyrc;
4960 USHORT sel = RestoreOS2FS();
4961
4962 yyrc = _O32_GetLastError();
4963 SetFS(sel);
4964
4965 return yyrc;
4966}
4967
4968inline VOID O32_GetLocalTime(LPSYSTEMTIME a)
4969{
4970 USHORT sel = RestoreOS2FS();
4971
4972 _O32_GetLocalTime(a);
4973 SetFS(sel);
4974}
4975
4976inline DWORD O32_GetLogicalDriveStrings(DWORD a, LPSTR b)
4977{
4978 DWORD yyrc;
4979 USHORT sel = RestoreOS2FS();
4980
4981 yyrc = _O32_GetLogicalDriveStrings(a, b);
4982 SetFS(sel);
4983
4984 return yyrc;
4985}
4986
4987inline DWORD O32_GetLogicalDrives()
4988{
4989 DWORD yyrc;
4990 USHORT sel = RestoreOS2FS();
4991
4992 yyrc = _O32_GetLogicalDrives();
4993 SetFS(sel);
4994
4995 return yyrc;
4996}
4997
4998inline int O32_GetMapMode(HDC a)
4999{
5000 int yyrc;
5001 USHORT sel = RestoreOS2FS();
5002
5003 yyrc = _O32_GetMapMode(a);
5004 SetFS(sel);
5005
5006 return yyrc;
5007}
5008
5009inline HMENU O32_GetMenu(HWND a)
5010{
5011 HMENU yyrc;
5012 USHORT sel = RestoreOS2FS();
5013
5014 yyrc = _O32_GetMenu(a);
5015 SetFS(sel);
5016
5017 return yyrc;
5018}
5019
5020inline LONG O32_GetMenuCheckMarkDimensions()
5021{
5022 LONG yyrc;
5023 USHORT sel = RestoreOS2FS();
5024
5025 yyrc = _O32_GetMenuCheckMarkDimensions();
5026 SetFS(sel);
5027
5028 return yyrc;
5029}
5030
5031inline int O32_GetMenuItemCount(HMENU a)
5032{
5033 int yyrc;
5034 USHORT sel = RestoreOS2FS();
5035
5036 yyrc = _O32_GetMenuItemCount(a);
5037 SetFS(sel);
5038
5039 return yyrc;
5040}
5041
5042inline UINT O32_GetMenuItemID(HMENU a, int b)
5043{
5044 UINT yyrc;
5045 USHORT sel = RestoreOS2FS();
5046
5047 yyrc = _O32_GetMenuItemID(a, b);
5048 SetFS(sel);
5049
5050 return yyrc;
5051}
5052
5053inline UINT O32_GetMenuState(HMENU a, UINT b, UINT c)
5054{
5055 UINT yyrc;
5056 USHORT sel = RestoreOS2FS();
5057
5058 yyrc = _O32_GetMenuState(a, b, c);
5059 SetFS(sel);
5060
5061 return yyrc;
5062}
5063
5064inline int O32_GetMenuString(HMENU a, UINT b, LPSTR c, int d, UINT e)
5065{
5066 int yyrc;
5067 USHORT sel = RestoreOS2FS();
5068
5069 yyrc = _O32_GetMenuString(a, b, c, d, e);
5070 SetFS(sel);
5071
5072 return yyrc;
5073}
5074
5075inline BOOL O32_GetMessage(LPMSG a, HWND b, UINT c, UINT d)
5076{
5077 BOOL yyrc;
5078 USHORT sel = RestoreOS2FS();
5079
5080 yyrc = _O32_GetMessage(a, b, c, d);
5081 SetFS(sel);
5082
5083 return yyrc;
5084}
5085
5086inline LONG O32_GetMessageExtraInfo()
5087{
5088 LONG yyrc;
5089 USHORT sel = RestoreOS2FS();
5090
5091 yyrc = _O32_GetMessageExtraInfo();
5092 SetFS(sel);
5093
5094 return yyrc;
5095}
5096
5097inline DWORD O32_GetMessagePos()
5098{
5099 DWORD yyrc;
5100 USHORT sel = RestoreOS2FS();
5101
5102 yyrc = _O32_GetMessagePos();
5103 SetFS(sel);
5104
5105 return yyrc;
5106}
5107
5108inline LONG O32_GetMessageTime()
5109{
5110 LONG yyrc;
5111 USHORT sel = RestoreOS2FS();
5112
5113 yyrc = _O32_GetMessageTime();
5114 SetFS(sel);
5115
5116 return yyrc;
5117}
5118
5119inline HMETAFILE O32_GetMetaFile(LPCSTR a)
5120{
5121 HMETAFILE yyrc;
5122 USHORT sel = RestoreOS2FS();
5123
5124 yyrc = _O32_GetMetaFile(a);
5125 SetFS(sel);
5126
5127 return yyrc;
5128}
5129
5130inline UINT O32_GetMetaFileBitsEx(HMETAFILE a, UINT b, LPVOID c)
5131{
5132 UINT yyrc;
5133 USHORT sel = RestoreOS2FS();
5134
5135 yyrc = _O32_GetMetaFileBitsEx(a, b, c);
5136 SetFS(sel);
5137
5138 return yyrc;
5139}
5140
5141inline BOOL O32_GetMiterLimit(HDC a, float *b)
5142{
5143 BOOL yyrc;
5144 USHORT sel = RestoreOS2FS();
5145
5146 yyrc = _O32_GetMiterLimit(a, b);
5147 SetFS(sel);
5148
5149 return yyrc;
5150}
5151
5152inline DWORD O32_GetModuleFileName(HINSTANCE a, LPSTR b, DWORD c)
5153{
5154 DWORD yyrc;
5155 USHORT sel = RestoreOS2FS();
5156
5157 yyrc = _O32_GetModuleFileName(a, b, c);
5158 SetFS(sel);
5159
5160 return yyrc;
5161}
5162
5163inline HMODULE O32_GetModuleHandle(LPCSTR a)
5164{
5165 HMODULE yyrc;
5166 USHORT sel = RestoreOS2FS();
5167
5168 yyrc = _O32_GetModuleHandle(a);
5169 SetFS(sel);
5170
5171 return yyrc;
5172}
5173
5174inline COLORREF O32_GetNearestColor(HDC a, COLORREF b)
5175{
5176 COLORREF yyrc;
5177 USHORT sel = RestoreOS2FS();
5178
5179 yyrc = _O32_GetNearestColor(a, b);
5180 SetFS(sel);
5181
5182 return yyrc;
5183}
5184
5185inline UINT O32_GetNearestPaletteIndex(HPALETTE a, COLORREF b)
5186{
5187 UINT yyrc;
5188 USHORT sel = RestoreOS2FS();
5189
5190 yyrc = _O32_GetNearestPaletteIndex(a, b);
5191 SetFS(sel);
5192
5193 return yyrc;
5194}
5195
5196inline HWND O32_GetNextDlgGroupItem(HWND a, HWND b, BOOL c)
5197{
5198 HWND yyrc;
5199 USHORT sel = RestoreOS2FS();
5200
5201 yyrc = _O32_GetNextDlgGroupItem(a, b, c);
5202 SetFS(sel);
5203
5204 return yyrc;
5205}
5206
5207inline HWND O32_GetNextDlgTabItem(HWND a, HWND b, BOOL c)
5208{
5209 HWND yyrc;
5210 USHORT sel = RestoreOS2FS();
5211
5212 yyrc = _O32_GetNextDlgTabItem(a, b, c);
5213 SetFS(sel);
5214
5215 return yyrc;
5216}
5217
5218inline HWND O32_GetNextWindow(HWND a, UINT b)
5219{
5220 HWND yyrc;
5221 USHORT sel = RestoreOS2FS();
5222
5223 yyrc = _O32_GetNextWindow(a, b);
5224 SetFS(sel);
5225
5226 return yyrc;
5227}
5228
5229inline int O32_GetOEMCP()
5230{
5231 int yyrc;
5232 USHORT sel = RestoreOS2FS();
5233
5234 yyrc = _O32_GetOEMCP();
5235 SetFS(sel);
5236
5237 return yyrc;
5238}
5239
5240inline int O32_GetObject(HGDIOBJ a, int b, void *c)
5241{
5242 int yyrc;
5243 USHORT sel = RestoreOS2FS();
5244
5245 yyrc = _O32_GetObject(a, b, c);
5246 SetFS(sel);
5247
5248 return yyrc;
5249}
5250
5251inline DWORD O32_GetObjectType(HGDIOBJ a)
5252{
5253 DWORD yyrc;
5254 USHORT sel = RestoreOS2FS();
5255
5256 yyrc = _O32_GetObjectType(a);
5257 SetFS(sel);
5258
5259 return yyrc;
5260}
5261
5262inline HWND O32_GetOpenClipboardWindow()
5263{
5264 HWND yyrc;
5265 USHORT sel = RestoreOS2FS();
5266
5267 yyrc = _O32_GetOpenClipboardWindow();
5268 SetFS(sel);
5269
5270 return yyrc;
5271}
5272
5273inline BOOL O32_GetOpenFileName(LPOPENFILENAMEA a)
5274{
5275 BOOL yyrc;
5276 USHORT sel = RestoreOS2FS();
5277
5278 yyrc = _O32_GetOpenFileName(a);
5279 SetFS(sel);
5280
5281 return yyrc;
5282}
5283
5284inline UINT O32_GetOutlineTextMetrics(HDC a, UINT b, LPOUTLINETEXTMETRICA c)
5285{
5286 UINT yyrc;
5287 USHORT sel = RestoreOS2FS();
5288
5289 yyrc = _O32_GetOutlineTextMetrics(a, b, c);
5290 SetFS(sel);
5291
5292 return yyrc;
5293}
5294
5295inline BOOL O32_GetOverlappedResult(HANDLE a, LPOVERLAPPED b, LPDWORD c, BOOL d)
5296{
5297 BOOL yyrc;
5298 USHORT sel = RestoreOS2FS();
5299
5300 yyrc = _O32_GetOverlappedResult(a, b, c, d);
5301 SetFS(sel);
5302
5303 return yyrc;
5304}
5305
5306inline UINT O32_GetPaletteEntries(HPALETTE a, UINT b, UINT c, PPALETTEENTRY d)
5307{
5308 UINT yyrc;
5309 USHORT sel = RestoreOS2FS();
5310
5311 yyrc = _O32_GetPaletteEntries(a, b, c, d);
5312 SetFS(sel);
5313
5314 return yyrc;
5315}
5316
5317inline HWND O32_GetParent(HWND a)
5318{
5319 HWND yyrc;
5320 USHORT sel = RestoreOS2FS();
5321
5322 yyrc = _O32_GetParent(a);
5323 SetFS(sel);
5324
5325 return yyrc;
5326}
5327
5328inline UINT O32_GetPath(HDC a, PPOINT b, PBYTE c, int d)
5329{
5330 UINT yyrc;
5331 USHORT sel = RestoreOS2FS();
5332
5333 yyrc = _O32_GetPath(a, b, c, d);
5334 SetFS(sel);
5335
5336 return yyrc;
5337}
5338
5339inline COLORREF O32_GetPixel(HDC a, int b, int c)
5340{
5341 COLORREF yyrc;
5342 USHORT sel = RestoreOS2FS();
5343
5344 yyrc = _O32_GetPixel(a, b, c);
5345 SetFS(sel);
5346
5347 return yyrc;
5348}
5349
5350inline int O32_GetPolyFillMode(HDC a)
5351{
5352 int yyrc;
5353 USHORT sel = RestoreOS2FS();
5354
5355 yyrc = _O32_GetPolyFillMode(a);
5356 SetFS(sel);
5357
5358 return yyrc;
5359}
5360
5361inline DWORD O32_GetPriorityClass(HANDLE a)
5362{
5363 DWORD yyrc;
5364 USHORT sel = RestoreOS2FS();
5365
5366 yyrc = _O32_GetPriorityClass(a);
5367 SetFS(sel);
5368
5369 return yyrc;
5370}
5371
5372inline int O32_GetPriorityClipboardFormat(PUINT a, int b)
5373{
5374 int yyrc;
5375 USHORT sel = RestoreOS2FS();
5376
5377 yyrc = _O32_GetPriorityClipboardFormat(a, b);
5378 SetFS(sel);
5379
5380 return yyrc;
5381}
5382
5383inline UINT O32_GetPrivateProfileInt(LPCSTR a, LPCSTR b, INT c, LPCSTR d)
5384{
5385 UINT yyrc;
5386 USHORT sel = RestoreOS2FS();
5387
5388 yyrc = _O32_GetPrivateProfileInt(a, b, c, d);
5389 SetFS(sel);
5390
5391 return yyrc;
5392}
5393
5394inline DWORD O32_GetPrivateProfileString(LPCSTR a, LPCSTR b, LPCSTR c, LPSTR d, DWORD e, LPCSTR f)
5395{
5396 DWORD yyrc;
5397 USHORT sel = RestoreOS2FS();
5398
5399 yyrc = _O32_GetPrivateProfileString(a, b, c, d, e, f);
5400 SetFS(sel);
5401
5402 return yyrc;
5403}
5404
5405inline FARPROC O32_GetProcAddress(HMODULE a, LPCSTR b)
5406{
5407 FARPROC yyrc;
5408 USHORT sel = RestoreOS2FS();
5409
5410 yyrc = _O32_GetProcAddress(a, b);
5411 SetFS(sel);
5412
5413 return yyrc;
5414}
5415
5416inline UINT O32_GetProfileInt(LPCSTR a, LPCSTR b, INT c)
5417{
5418 UINT yyrc;
5419 USHORT sel = RestoreOS2FS();
5420
5421 yyrc = _O32_GetProfileInt(a, b, c);
5422 SetFS(sel);
5423
5424 return yyrc;
5425}
5426
5427inline DWORD O32_GetProfileString(LPCSTR a, LPCSTR b, LPCSTR c, LPSTR d, DWORD e)
5428{
5429 DWORD yyrc;
5430 USHORT sel = RestoreOS2FS();
5431
5432 yyrc = _O32_GetProfileString(a, b, c, d, e);
5433 SetFS(sel);
5434
5435 return yyrc;
5436}
5437
5438inline HANDLE O32_GetProp(HWND a, LPCSTR b)
5439{
5440 HANDLE yyrc;
5441 USHORT sel = RestoreOS2FS();
5442
5443 yyrc = _O32_GetProp(a, b);
5444 SetFS(sel);
5445
5446 return yyrc;
5447}
5448
5449inline DWORD O32_GetQueueStatus(UINT a)
5450{
5451 DWORD yyrc;
5452 USHORT sel = RestoreOS2FS();
5453
5454 yyrc = _O32_GetQueueStatus(a);
5455 SetFS(sel);
5456
5457 return yyrc;
5458}
5459
5460inline int O32_GetROP2(HDC a)
5461{
5462 int yyrc;
5463 USHORT sel = RestoreOS2FS();
5464
5465 yyrc = _O32_GetROP2(a);
5466 SetFS(sel);
5467
5468 return yyrc;
5469}
5470
5471inline BOOL O32_GetRasterizerCaps(LPRASTERIZER_STATUS a, UINT b)
5472{
5473 BOOL yyrc;
5474 USHORT sel = RestoreOS2FS();
5475
5476 yyrc = _O32_GetRasterizerCaps(a, b);
5477 SetFS(sel);
5478
5479 return yyrc;
5480}
5481
5482inline int O32_GetRgnBox(HRGN a, PRECT b)
5483{
5484 int yyrc;
5485 USHORT sel = RestoreOS2FS();
5486
5487 yyrc = _O32_GetRgnBox(a, b);
5488 SetFS(sel);
5489
5490 return yyrc;
5491}
5492
5493inline DWORD O32_GetRegionData(HRGN a, DWORD b, PRGNDATA c)
5494{
5495 DWORD yyrc;
5496 USHORT sel = RestoreOS2FS();
5497
5498 yyrc = _O32_GetRegionData(a, b, c);
5499 SetFS(sel);
5500
5501 return yyrc;
5502}
5503
5504inline BOOL O32_GetSaveFileName(LPOPENFILENAMEA a)
5505{
5506 BOOL yyrc;
5507 USHORT sel = RestoreOS2FS();
5508
5509 yyrc = _O32_GetSaveFileName(a);
5510 SetFS(sel);
5511
5512 return yyrc;
5513}
5514
5515inline int O32_GetScrollPos(HWND a, int b)
5516{
5517 int yyrc;
5518 USHORT sel = RestoreOS2FS();
5519
5520 yyrc = _O32_GetScrollPos(a, b);
5521 SetFS(sel);
5522
5523 return yyrc;
5524}
5525
5526inline BOOL O32_GetScrollRange(HWND a, int b, int *c, int *d)
5527{
5528 BOOL yyrc;
5529 USHORT sel = RestoreOS2FS();
5530
5531 yyrc = _O32_GetScrollRange(a, b, c, d);
5532 SetFS(sel);
5533
5534 return yyrc;
5535}
5536
5537inline HANDLE O32_GetStdHandle(DWORD a)
5538{
5539 HANDLE yyrc;
5540 USHORT sel = RestoreOS2FS();
5541
5542 yyrc = _O32_GetStdHandle(a);
5543 SetFS(sel);
5544
5545 return yyrc;
5546}
5547
5548inline HGDIOBJ O32_GetStockObject(int a)
5549{
5550 HGDIOBJ yyrc;
5551 USHORT sel = RestoreOS2FS();
5552
5553 yyrc = _O32_GetStockObject(a);
5554 SetFS(sel);
5555
5556 return yyrc;
5557}
5558
5559inline int O32_GetStretchBltMode(HDC a)
5560{
5561 int yyrc;
5562 USHORT sel = RestoreOS2FS();
5563
5564 yyrc = _O32_GetStretchBltMode(a);
5565 SetFS(sel);
5566
5567 return yyrc;
5568}
5569
5570inline HMENU O32_GetSubMenu(HWND a, int b)
5571{
5572 HMENU yyrc;
5573 USHORT sel = RestoreOS2FS();
5574
5575 yyrc = _O32_GetSubMenu(a, b);
5576 SetFS(sel);
5577
5578 return yyrc;
5579}
5580
5581inline DWORD O32_GetSysColor(int a)
5582{
5583 DWORD yyrc;
5584 USHORT sel = RestoreOS2FS();
5585
5586 yyrc = _O32_GetSysColor(a);
5587 SetFS(sel);
5588
5589 return yyrc;
5590}
5591
5592inline UINT O32_GetSystemDirectory(LPSTR a, UINT b)
5593{
5594 UINT yyrc;
5595 USHORT sel = RestoreOS2FS();
5596
5597 yyrc = _O32_GetSystemDirectory(a, b);
5598 SetFS(sel);
5599
5600 return yyrc;
5601}
5602
5603inline HMENU O32_GetSystemMenu(HWND a, BOOL b)
5604{
5605 HMENU yyrc;
5606 USHORT sel = RestoreOS2FS();
5607
5608 yyrc = _O32_GetSystemMenu(a, b);
5609 SetFS(sel);
5610
5611 return yyrc;
5612}
5613
5614inline int O32_GetSystemMetrics(int a)
5615{
5616 int yyrc;
5617 USHORT sel = RestoreOS2FS();
5618
5619 yyrc = _O32_GetSystemMetrics(a);
5620 SetFS(sel);
5621
5622 return yyrc;
5623}
5624
5625inline UINT O32_GetSystemPaletteEntries(HDC a, UINT b, UINT c, PPALETTEENTRY d)
5626{
5627 UINT yyrc;
5628 USHORT sel = RestoreOS2FS();
5629
5630 yyrc = _O32_GetSystemPaletteEntries(a, b, c, d);
5631 SetFS(sel);
5632
5633 return yyrc;
5634}
5635
5636inline void O32_GetSystemTime(LPSYSTEMTIME a)
5637{
5638 USHORT sel = RestoreOS2FS();
5639
5640 _O32_GetSystemTime(a);
5641 SetFS(sel);
5642}
5643
5644inline DWORD O32_GetTabbedTextExtent(HDC a, LPCSTR b, int c, int d, int *e)
5645{
5646 DWORD yyrc;
5647 USHORT sel = RestoreOS2FS();
5648
5649 yyrc = _O32_GetTabbedTextExtent(a, b, c, d, e);
5650 SetFS(sel);
5651
5652 return yyrc;
5653}
5654
5655inline UINT O32_GetTempFileName(LPCSTR a, LPCSTR b, UINT c, LPSTR d)
5656{
5657 UINT yyrc;
5658 USHORT sel = RestoreOS2FS();
5659
5660 yyrc = _O32_GetTempFileName(a, b, c, d);
5661 SetFS(sel);
5662
5663 return yyrc;
5664}
5665
5666inline DWORD O32_GetTempPath(DWORD a, LPSTR b)
5667{
5668 DWORD yyrc;
5669 USHORT sel = RestoreOS2FS();
5670
5671 yyrc = _O32_GetTempPath(a, b);
5672 SetFS(sel);
5673
5674 return yyrc;
5675}
5676
5677inline UINT O32_GetTextAlign(HDC a)
5678{
5679 UINT yyrc;
5680 USHORT sel = RestoreOS2FS();
5681
5682 yyrc = _O32_GetTextAlign(a);
5683 SetFS(sel);
5684
5685 return yyrc;
5686}
5687
5688inline int O32_GetTextCharacterExtra(HDC a)
5689{
5690 int yyrc;
5691 USHORT sel = RestoreOS2FS();
5692
5693 yyrc = _O32_GetTextCharacterExtra(a);
5694 SetFS(sel);
5695
5696 return yyrc;
5697}
5698
5699inline COLORREF O32_GetTextColor(HDC a)
5700{
5701 COLORREF yyrc;
5702 USHORT sel = RestoreOS2FS();
5703
5704 yyrc = _O32_GetTextColor(a);
5705 SetFS(sel);
5706
5707 return yyrc;
5708}
5709
5710inline BOOL O32_GetTextExtentPoint(HDC a, LPCSTR b, int c, PSIZE d)
5711{
5712 BOOL yyrc;
5713 USHORT sel = RestoreOS2FS();
5714
5715 yyrc = _O32_GetTextExtentPoint(a, b, c, d);
5716 SetFS(sel);
5717
5718 return yyrc;
5719}
5720
5721inline BOOL O32_GetTextExtentPoint32(HDC a, LPCSTR b, int c, PSIZE d)
5722{
5723 BOOL yyrc;
5724 USHORT sel = RestoreOS2FS();
5725
5726 yyrc = _O32_GetTextExtentPoint32(a, b, c, d);
5727 SetFS(sel);
5728
5729 return yyrc;
5730}
5731
5732inline int O32_GetTextFace(HDC a, int b, LPSTR c)
5733{
5734 int yyrc;
5735 USHORT sel = RestoreOS2FS();
5736
5737 yyrc = _O32_GetTextFace(a, b, c);
5738 SetFS(sel);
5739
5740 return yyrc;
5741}
5742
5743inline BOOL O32_GetTextMetrics(HDC a, LPTEXTMETRICA b)
5744{
5745 BOOL yyrc;
5746 USHORT sel = RestoreOS2FS();
5747
5748 yyrc = _O32_GetTextMetrics(a, b);
5749 SetFS(sel);
5750
5751 return yyrc;
5752}
5753
5754inline DWORD O32_GetThreadPriority(HANDLE a)
5755{
5756 DWORD yyrc;
5757 USHORT sel = RestoreOS2FS();
5758
5759 yyrc = _O32_GetThreadPriority(a);
5760 SetFS(sel);
5761
5762 return yyrc;
5763}
5764
5765inline DWORD O32_GetTickCount()
5766{
5767 DWORD yyrc;
5768 USHORT sel = RestoreOS2FS();
5769
5770 yyrc = _O32_GetTickCount();
5771 SetFS(sel);
5772
5773 return yyrc;
5774}
5775
5776inline DWORD O32_GetTimeZoneInformation(LPTIME_ZONE_INFORMATION a)
5777{
5778 DWORD yyrc;
5779 USHORT sel = RestoreOS2FS();
5780
5781 yyrc = _O32_GetTimeZoneInformation(a);
5782 SetFS(sel);
5783
5784 return yyrc;
5785}
5786
5787inline HWND O32_GetTopWindow(HWND a)
5788{
5789 HWND yyrc;
5790 USHORT sel = RestoreOS2FS();
5791
5792 yyrc = _O32_GetTopWindow(a);
5793 SetFS(sel);
5794
5795 return yyrc;
5796}
5797
5798inline BOOL O32_GetUpdateRect(HWND a, PRECT b, BOOL c)
5799{
5800 BOOL yyrc;
5801 USHORT sel = RestoreOS2FS();
5802
5803 yyrc = _O32_GetUpdateRect(a, b, c);
5804 SetFS(sel);
5805
5806 return yyrc;
5807}
5808
5809inline int O32_GetUpdateRgn(HWND a, HRGN b, BOOL c)
5810{
5811 int yyrc;
5812 USHORT sel = RestoreOS2FS();
5813
5814 yyrc = _O32_GetUpdateRgn(a, b, c);
5815 SetFS(sel);
5816
5817 return yyrc;
5818}
5819
5820inline BOOL O32_GetViewportExtEx(HDC a, PSIZE b)
5821{
5822 BOOL yyrc;
5823 USHORT sel = RestoreOS2FS();
5824
5825 yyrc = _O32_GetViewportExtEx(a, b);
5826 SetFS(sel);
5827
5828 return yyrc;
5829}
5830
5831inline BOOL O32_GetViewportOrgEx(HDC a, PPOINT b)
5832{
5833 BOOL yyrc;
5834 USHORT sel = RestoreOS2FS();
5835
5836 yyrc = _O32_GetViewportOrgEx(a, b);
5837 SetFS(sel);
5838
5839 return yyrc;
5840}
5841
5842inline DWORD O32_GetVolumeInformation(LPCSTR a, LPSTR b, DWORD c, PDWORD d, PDWORD e, PDWORD f, LPSTR g, DWORD h)
5843{
5844 DWORD yyrc;
5845 USHORT sel = RestoreOS2FS();
5846
5847 yyrc = _O32_GetVolumeInformation(a, b, c, d, e, f, g, h);
5848 SetFS(sel);
5849
5850 return yyrc;
5851}
5852
5853inline UINT O32_GetWinMetaFileBits(HENHMETAFILE a, UINT b, PBYTE c, int d, HDC e)
5854{
5855 UINT yyrc;
5856 USHORT sel = RestoreOS2FS();
5857
5858 yyrc = _O32_GetWinMetaFileBits(a, b, c, d, e);
5859 SetFS(sel);
5860
5861 return yyrc;
5862}
5863
5864inline HWND O32_GetWindow(HWND a, UINT b)
5865{
5866 HWND yyrc;
5867 USHORT sel = RestoreOS2FS();
5868
5869 yyrc = _O32_GetWindow(a, b);
5870 SetFS(sel);
5871
5872 return yyrc;
5873}
5874
5875inline HDC O32_GetWindowDC(HWND a)
5876{
5877 HDC yyrc;
5878 USHORT sel = RestoreOS2FS();
5879
5880 yyrc = _O32_GetWindowDC(a);
5881 SetFS(sel);
5882
5883 return yyrc;
5884}
5885
5886inline BOOL O32_GetWindowExtEx(HDC a, PSIZE b)
5887{
5888 BOOL yyrc;
5889 USHORT sel = RestoreOS2FS();
5890
5891 yyrc = _O32_GetWindowExtEx(a, b);
5892 SetFS(sel);
5893
5894 return yyrc;
5895}
5896
5897inline LONG O32_GetWindowLong(HWND a, int b)
5898{
5899 LONG yyrc;
5900 USHORT sel = RestoreOS2FS();
5901
5902 yyrc = _O32_GetWindowLong(a, b);
5903 SetFS(sel);
5904
5905 return yyrc;
5906}
5907
5908inline BOOL O32_GetWindowOrgEx(HDC a, PPOINT b)
5909{
5910 BOOL yyrc;
5911 USHORT sel = RestoreOS2FS();
5912
5913 yyrc = _O32_GetWindowOrgEx(a, b);
5914 SetFS(sel);
5915
5916 return yyrc;
5917}
5918
5919inline BOOL O32_GetWindowPlacement(HWND a, LPWINDOWPLACEMENT b)
5920{
5921 BOOL yyrc;
5922 USHORT sel = RestoreOS2FS();
5923
5924 yyrc = _O32_GetWindowPlacement(a, b);
5925 SetFS(sel);
5926
5927 return yyrc;
5928}
5929
5930inline BOOL O32_GetWindowRect(HWND a, PRECT b)
5931{
5932 BOOL yyrc;
5933 USHORT sel = RestoreOS2FS();
5934
5935 yyrc = _O32_GetWindowRect(a, b);
5936 SetFS(sel);
5937
5938 return yyrc;
5939}
5940
5941inline UINT O32_GetWindowsDirectory(LPSTR a, UINT b)
5942{
5943 UINT yyrc;
5944 USHORT sel = RestoreOS2FS();
5945
5946 yyrc = _O32_GetWindowsDirectory(a, b);
5947 SetFS(sel);
5948
5949 return yyrc;
5950}
5951
5952inline int O32_GetWindowText(HWND a, LPSTR b, int c)
5953{
5954 int yyrc;
5955 USHORT sel = RestoreOS2FS();
5956
5957 yyrc = _O32_GetWindowText(a, b, c);
5958 SetFS(sel);
5959
5960 return yyrc;
5961}
5962
5963inline int O32_GetWindowTextLength(HWND a)
5964{
5965 int yyrc;
5966 USHORT sel = RestoreOS2FS();
5967
5968 yyrc = _O32_GetWindowTextLength(a);
5969 SetFS(sel);
5970
5971 return yyrc;
5972}
5973
5974inline DWORD O32_GetWindowThreadProcessId(HWND a, PDWORD b)
5975{
5976 DWORD yyrc;
5977 USHORT sel = RestoreOS2FS();
5978
5979 yyrc = _O32_GetWindowThreadProcessId(a, b);
5980 SetFS(sel);
5981
5982 return yyrc;
5983}
5984
5985inline WORD O32_GetWindowWord(HWND a, int b)
5986{
5987 WORD yyrc;
5988 USHORT sel = RestoreOS2FS();
5989
5990 yyrc = _O32_GetWindowWord(a, b);
5991 SetFS(sel);
5992
5993 return yyrc;
5994}
5995
5996inline BOOL O32_GetWorldTransform(HDC a, LPXFORM b)
5997{
5998 BOOL yyrc;
5999 USHORT sel = RestoreOS2FS();
6000
6001 yyrc = _O32_GetWorldTransform(a, b);
6002 SetFS(sel);
6003
6004 return yyrc;
6005}
6006
6007inline ATOM O32_GlobalAddAtom(LPCSTR a)
6008{
6009 ATOM yyrc;
6010 USHORT sel = RestoreOS2FS();
6011
6012 yyrc = _O32_GlobalAddAtom(a);
6013 SetFS(sel);
6014
6015 return yyrc;
6016}
6017
6018inline HGLOBAL O32_GlobalAlloc(UINT a, DWORD b)
6019{
6020 HGLOBAL yyrc;
6021 USHORT sel = RestoreOS2FS();
6022
6023 yyrc = _O32_GlobalAlloc(a, b);
6024 SetFS(sel);
6025
6026 return yyrc;
6027}
6028
6029inline ATOM O32_GlobalDeleteAtom(ATOM a)
6030{
6031 ATOM yyrc;
6032 USHORT sel = RestoreOS2FS();
6033
6034 yyrc = _O32_GlobalDeleteAtom(a);
6035 SetFS(sel);
6036
6037 return yyrc;
6038}
6039
6040inline HGLOBAL O32_GlobalDiscard(HGLOBAL a)
6041{
6042 HGLOBAL yyrc;
6043 USHORT sel = RestoreOS2FS();
6044
6045 yyrc = _O32_GlobalDiscard(a);
6046 SetFS(sel);
6047
6048 return yyrc;
6049}
6050
6051inline ATOM O32_GlobalFindAtom(LPCSTR a)
6052{
6053 ATOM yyrc;
6054 USHORT sel = RestoreOS2FS();
6055
6056 yyrc = _O32_GlobalFindAtom(a);
6057 SetFS(sel);
6058
6059 return yyrc;
6060}
6061
6062inline UINT O32_GlobalFlags(HGLOBAL a)
6063{
6064 UINT yyrc;
6065 USHORT sel = RestoreOS2FS();
6066
6067 yyrc = _O32_GlobalFlags(a);
6068 SetFS(sel);
6069
6070 return yyrc;
6071}
6072
6073inline HGLOBAL O32_GlobalFree(HGLOBAL a)
6074{
6075 HGLOBAL yyrc;
6076 USHORT sel = RestoreOS2FS();
6077
6078 yyrc = _O32_GlobalFree(a);
6079 SetFS(sel);
6080
6081 return yyrc;
6082}
6083
6084inline UINT O32_GlobalGetAtomName(ATOM a, LPSTR b, int c)
6085{
6086 UINT yyrc;
6087 USHORT sel = RestoreOS2FS();
6088
6089 yyrc = _O32_GlobalGetAtomName(a, b, c);
6090 SetFS(sel);
6091
6092 return yyrc;
6093}
6094
6095inline HGLOBAL O32_GlobalHandle(PVOID a)
6096{
6097 HGLOBAL yyrc;
6098 USHORT sel = RestoreOS2FS();
6099
6100 yyrc = _O32_GlobalHandle(a);
6101 SetFS(sel);
6102
6103 return yyrc;
6104}
6105
6106inline PVOID O32_GlobalLock(HGLOBAL a)
6107{
6108 PVOID yyrc;
6109 USHORT sel = RestoreOS2FS();
6110
6111 yyrc = _O32_GlobalLock(a);
6112 SetFS(sel);
6113
6114 return yyrc;
6115}
6116
6117inline VOID O32_GlobalMemoryStatus(LPMEMORYSTATUS a)
6118{
6119 USHORT sel = RestoreOS2FS();
6120
6121 _O32_GlobalMemoryStatus(a);
6122 SetFS(sel);
6123}
6124
6125inline HGLOBAL O32_GlobalReAlloc(HGLOBAL a, DWORD b, UINT c)
6126{
6127 HGLOBAL yyrc;
6128 USHORT sel = RestoreOS2FS();
6129
6130 yyrc = _O32_GlobalReAlloc(a, b, c);
6131 SetFS(sel);
6132
6133 return yyrc;
6134}
6135
6136inline DWORD O32_GlobalSize(HGLOBAL a)
6137{
6138 DWORD yyrc;
6139 USHORT sel = RestoreOS2FS();
6140
6141 yyrc = _O32_GlobalSize(a);
6142 SetFS(sel);
6143
6144 return yyrc;
6145}
6146
6147inline BOOL O32_GlobalUnlock(HGLOBAL a)
6148{
6149 BOOL yyrc;
6150 USHORT sel = RestoreOS2FS();
6151
6152 yyrc = _O32_GlobalUnlock(a);
6153 SetFS(sel);
6154
6155 return yyrc;
6156}
6157
6158inline PVOID O32_HeapAlloc(HANDLE a, DWORD b, DWORD c)
6159{
6160 PVOID yyrc;
6161 USHORT sel = RestoreOS2FS();
6162
6163 yyrc = _O32_HeapAlloc(a, b, c);
6164 SetFS(sel);
6165
6166 return yyrc;
6167}
6168
6169inline HANDLE O32_HeapCreate(DWORD a, DWORD b, DWORD c)
6170{
6171 HANDLE yyrc;
6172 USHORT sel = RestoreOS2FS();
6173
6174 yyrc = _O32_HeapCreate(a, b, c);
6175 SetFS(sel);
6176
6177 return yyrc;
6178}
6179
6180inline BOOL O32_HeapDestroy(HANDLE a)
6181{
6182 BOOL yyrc;
6183 USHORT sel = RestoreOS2FS();
6184
6185 yyrc = _O32_HeapDestroy(a);
6186 SetFS(sel);
6187
6188 return yyrc;
6189}
6190
6191inline BOOL O32_HeapFree(HANDLE a, DWORD b, PVOID c)
6192{
6193 BOOL yyrc;
6194 USHORT sel = RestoreOS2FS();
6195
6196 yyrc = _O32_HeapFree(a, b, c);
6197 SetFS(sel);
6198
6199 return yyrc;
6200}
6201
6202inline PVOID O32_HeapReAlloc(HANDLE a, DWORD b, PVOID c, DWORD d)
6203{
6204 PVOID yyrc;
6205 USHORT sel = RestoreOS2FS();
6206
6207 yyrc = _O32_HeapReAlloc(a, b, c, d);
6208 SetFS(sel);
6209
6210 return yyrc;
6211}
6212
6213inline DWORD O32_HeapSize(HANDLE a, DWORD b, PVOID c)
6214{
6215 DWORD yyrc;
6216 USHORT sel = RestoreOS2FS();
6217
6218 yyrc = _O32_HeapSize(a, b, c);
6219 SetFS(sel);
6220
6221 return yyrc;
6222}
6223
6224inline BOOL O32_HideCaret(HWND a)
6225{
6226 BOOL yyrc;
6227 USHORT sel = RestoreOS2FS();
6228
6229 yyrc = _O32_HideCaret(a);
6230 SetFS(sel);
6231
6232 return yyrc;
6233}
6234
6235inline BOOL O32_HiliteMenuItem(HWND a, HMENU b, UINT c, UINT d)
6236{
6237 BOOL yyrc;
6238 USHORT sel = RestoreOS2FS();
6239
6240 yyrc = _O32_HiliteMenuItem(a, b, c, d);
6241 SetFS(sel);
6242
6243 return yyrc;
6244}
6245
6246inline BOOL O32_InflateRect(PRECT a, int b, int c)
6247{
6248 BOOL yyrc;
6249 USHORT sel = RestoreOS2FS();
6250
6251 yyrc = _O32_InflateRect(a, b, c);
6252 SetFS(sel);
6253
6254 return yyrc;
6255}
6256
6257inline BOOL O32_InSendMessage()
6258{
6259 BOOL yyrc;
6260 USHORT sel = RestoreOS2FS();
6261
6262 yyrc = _O32_InSendMessage();
6263 SetFS(sel);
6264
6265 return yyrc;
6266}
6267
6268inline BOOL O32_InitAtomTable(DWORD a)
6269{
6270 BOOL yyrc;
6271 USHORT sel = RestoreOS2FS();
6272
6273 yyrc = _O32_InitAtomTable(a);
6274 SetFS(sel);
6275
6276 return yyrc;
6277}
6278
6279inline VOID O32_InitializeCriticalSection(CRITICAL_SECTION *a)
6280{
6281 USHORT sel = RestoreOS2FS();
6282
6283 _O32_InitializeCriticalSection(a);
6284 SetFS(sel);
6285}
6286
6287inline BOOL O32_InsertMenu(HMENU a, UINT b, UINT c, UINT d, LPCSTR e)
6288{
6289 BOOL yyrc;
6290 USHORT sel = RestoreOS2FS();
6291
6292 yyrc = _O32_InsertMenu(a, b, c, d, e);
6293 SetFS(sel);
6294
6295 return yyrc;
6296}
6297
6298inline LONG O32_InterlockedDecrement(PLONG a)
6299{
6300 LONG yyrc;
6301 USHORT sel = RestoreOS2FS();
6302
6303 yyrc = _O32_InterlockedDecrement(a);
6304 SetFS(sel);
6305
6306 return yyrc;
6307}
6308
6309inline LONG O32_InterlockedExchange(PLONG a, LONG b)
6310{
6311 LONG yyrc;
6312 USHORT sel = RestoreOS2FS();
6313
6314 yyrc = _O32_InterlockedExchange(a, b);
6315 SetFS(sel);
6316
6317 return yyrc;
6318}
6319
6320inline LONG O32_InterlockedIncrement(PLONG a)
6321{
6322 LONG yyrc;
6323 USHORT sel = RestoreOS2FS();
6324
6325 yyrc = _O32_InterlockedIncrement(a);
6326 SetFS(sel);
6327
6328 return yyrc;
6329}
6330
6331inline int O32_IntersectClipRect(HDC a, int b, int c, int d, int e)
6332{
6333 int yyrc;
6334 USHORT sel = RestoreOS2FS();
6335
6336 yyrc = _O32_IntersectClipRect(a, b, c, d, e);
6337 SetFS(sel);
6338
6339 return yyrc;
6340}
6341
6342inline BOOL O32_IntersectRect(PRECT a, CONST RECT *b, CONST RECT *c)
6343{
6344 BOOL yyrc;
6345 USHORT sel = RestoreOS2FS();
6346
6347 yyrc = _O32_IntersectRect(a, b, c);
6348 SetFS(sel);
6349
6350 return yyrc;
6351}
6352
6353inline BOOL O32_InvalidateRect(HWND a, CONST RECT *b, BOOL c)
6354{
6355 BOOL yyrc;
6356 USHORT sel = RestoreOS2FS();
6357
6358 yyrc = _O32_InvalidateRect(a, b, c);
6359 SetFS(sel);
6360
6361 return yyrc;
6362}
6363
6364inline BOOL O32_InvalidateRgn(HWND a, HRGN b, BOOL c)
6365{
6366 BOOL yyrc;
6367 USHORT sel = RestoreOS2FS();
6368
6369 yyrc = _O32_InvalidateRgn(a, b, c);
6370 SetFS(sel);
6371
6372 return yyrc;
6373}
6374
6375inline BOOL O32_InvertRect(HDC a, CONST RECT *b)
6376{
6377 BOOL yyrc;
6378 USHORT sel = RestoreOS2FS();
6379
6380 yyrc = _O32_InvertRect(a, b);
6381 SetFS(sel);
6382
6383 return yyrc;
6384}
6385
6386inline BOOL O32_InvertRgn(HDC a, HRGN b)
6387{
6388 BOOL yyrc;
6389 USHORT sel = RestoreOS2FS();
6390
6391 yyrc = _O32_InvertRgn(a, b);
6392 SetFS(sel);
6393
6394 return yyrc;
6395}
6396
6397inline BOOL O32_IsBadCodePtr(FARPROC a)
6398{
6399 BOOL yyrc;
6400 USHORT sel = RestoreOS2FS();
6401
6402 yyrc = _O32_IsBadCodePtr(a);
6403 SetFS(sel);
6404
6405 return yyrc;
6406}
6407
6408inline BOOL O32_IsBadReadPtr(CONST VOID *a, UINT b)
6409{
6410 BOOL yyrc;
6411 USHORT sel = RestoreOS2FS();
6412
6413 yyrc = _O32_IsBadReadPtr(a, b);
6414 SetFS(sel);
6415
6416 return yyrc;
6417}
6418
6419inline BOOL O32_IsBadStringPtr(LPCSTR a, UINT b)
6420{
6421 BOOL yyrc;
6422 USHORT sel = RestoreOS2FS();
6423
6424 yyrc = _O32_IsBadStringPtr(a, b);
6425 SetFS(sel);
6426
6427 return yyrc;
6428}
6429
6430inline BOOL O32_IsBadWritePtr(PVOID a, UINT b)
6431{
6432 BOOL yyrc;
6433 USHORT sel = RestoreOS2FS();
6434
6435 yyrc = _O32_IsBadWritePtr(a, b);
6436 SetFS(sel);
6437
6438 return yyrc;
6439}
6440
6441inline BOOL O32_IsChild(HWND a, HWND b)
6442{
6443 BOOL yyrc;
6444 USHORT sel = RestoreOS2FS();
6445
6446 yyrc = _O32_IsChild(a, b);
6447 SetFS(sel);
6448
6449 return yyrc;
6450}
6451
6452inline BOOL O32_IsClipboardFormatAvailable(UINT a)
6453{
6454 BOOL yyrc;
6455 USHORT sel = RestoreOS2FS();
6456
6457 yyrc = _O32_IsClipboardFormatAvailable(a);
6458 SetFS(sel);
6459
6460 return yyrc;
6461}
6462
6463inline BOOL O32_IsDBCSLeadByte(BYTE a)
6464{
6465 BOOL yyrc;
6466 USHORT sel = RestoreOS2FS();
6467
6468 yyrc = _O32_IsDBCSLeadByte(a);
6469 SetFS(sel);
6470
6471 return yyrc;
6472}
6473
6474inline BOOL O32_IsDialogMessage(HWND a, LPMSG b)
6475{
6476 BOOL yyrc;
6477 USHORT sel = RestoreOS2FS();
6478
6479 yyrc = _O32_IsDialogMessage(a, b);
6480 SetFS(sel);
6481
6482 return yyrc;
6483}
6484
6485inline BOOL O32_IsDlgButtonChecked(HWND a, int b)
6486{
6487 BOOL yyrc;
6488 USHORT sel = RestoreOS2FS();
6489
6490 yyrc = _O32_IsDlgButtonChecked(a, b);
6491 SetFS(sel);
6492
6493 return yyrc;
6494}
6495
6496inline BOOL O32_IsIconic(HWND a)
6497{
6498 BOOL yyrc;
6499 USHORT sel = RestoreOS2FS();
6500
6501 yyrc = _O32_IsIconic(a);
6502 SetFS(sel);
6503
6504 return yyrc;
6505}
6506
6507inline BOOL O32_IsMenu(HMENU a)
6508{
6509 BOOL yyrc;
6510 USHORT sel = RestoreOS2FS();
6511
6512 yyrc = _O32_IsMenu(a);
6513 SetFS(sel);
6514
6515 return yyrc;
6516}
6517
6518inline BOOL O32_IsRectEmpty(CONST RECT *a)
6519{
6520 BOOL yyrc;
6521 USHORT sel = RestoreOS2FS();
6522
6523 yyrc = _O32_IsRectEmpty(a);
6524 SetFS(sel);
6525
6526 return yyrc;
6527}
6528
6529inline BOOL O32_IsWindow(HWND a)
6530{
6531 BOOL yyrc;
6532 USHORT sel = RestoreOS2FS();
6533
6534 yyrc = _O32_IsWindow(a);
6535 SetFS(sel);
6536
6537 return yyrc;
6538}
6539
6540inline BOOL O32_IsWindowEnabled(HWND a)
6541{
6542 BOOL yyrc;
6543 USHORT sel = RestoreOS2FS();
6544
6545 yyrc = _O32_IsWindowEnabled(a);
6546 SetFS(sel);
6547
6548 return yyrc;
6549}
6550
6551inline BOOL O32_IsWindowVisible(HWND a)
6552{
6553 BOOL yyrc;
6554 USHORT sel = RestoreOS2FS();
6555
6556 yyrc = _O32_IsWindowVisible(a);
6557 SetFS(sel);
6558
6559 return yyrc;
6560}
6561
6562inline BOOL O32_IsZoomed(HWND a)
6563{
6564 BOOL yyrc;
6565 USHORT sel = RestoreOS2FS();
6566
6567 yyrc = _O32_IsZoomed(a);
6568 SetFS(sel);
6569
6570 return yyrc;
6571}
6572
6573inline BOOL O32_KillTimer(HWND a, UINT b)
6574{
6575 BOOL yyrc;
6576 USHORT sel = RestoreOS2FS();
6577
6578 yyrc = _O32_KillTimer(a, b);
6579 SetFS(sel);
6580
6581 return yyrc;
6582}
6583
6584inline BOOL O32_LPtoDP(HDC a, PPOINT b, int c)
6585{
6586 BOOL yyrc;
6587 USHORT sel = RestoreOS2FS();
6588
6589 yyrc = _O32_LPtoDP(a, b, c);
6590 SetFS(sel);
6591
6592 return yyrc;
6593}
6594
6595inline VOID O32_LeaveCriticalSection(CRITICAL_SECTION *a)
6596{
6597 USHORT sel = RestoreOS2FS();
6598
6599 _O32_LeaveCriticalSection(a);
6600 SetFS(sel);
6601}
6602
6603inline BOOL O32_LineDDA(int a, int b, int c, int d, LINEDDAPROC_O32 e, LPARAM f)
6604{
6605 BOOL yyrc;
6606 USHORT sel = RestoreOS2FS();
6607
6608 yyrc = _O32_LineDDA(a, b, c, d, e, f);
6609 SetFS(sel);
6610
6611 return yyrc;
6612}
6613
6614inline BOOL O32_LineTo(HDC a, int b, int c)
6615{
6616 BOOL yyrc;
6617 USHORT sel = RestoreOS2FS();
6618
6619 yyrc = _O32_LineTo(a, b, c);
6620 SetFS(sel);
6621
6622 return yyrc;
6623}
6624
6625inline HACCEL O32_LoadAccelerators(HINSTANCE a, LPCSTR b)
6626{
6627 HACCEL yyrc;
6628 USHORT sel = RestoreOS2FS();
6629
6630 yyrc = _O32_LoadAccelerators(a, b);
6631 SetFS(sel);
6632
6633 return yyrc;
6634}
6635
6636inline HBITMAP O32_LoadBitmap(HINSTANCE a, LPCSTR b)
6637{
6638 HBITMAP yyrc;
6639 USHORT sel = RestoreOS2FS();
6640
6641 yyrc = _O32_LoadBitmap(a, b);
6642 SetFS(sel);
6643
6644 return yyrc;
6645}
6646
6647inline HCURSOR O32_LoadCursor(HINSTANCE a, LPCSTR b)
6648{
6649 HCURSOR yyrc;
6650 USHORT sel = RestoreOS2FS();
6651
6652 yyrc = _O32_LoadCursor(a, b);
6653 SetFS(sel);
6654
6655 return yyrc;
6656}
6657
6658inline HICON O32_LoadIcon(HINSTANCE a, LPCSTR b)
6659{
6660 HICON yyrc;
6661 USHORT sel = RestoreOS2FS();
6662
6663 yyrc = _O32_LoadIcon(a, b);
6664 SetFS(sel);
6665
6666 return yyrc;
6667}
6668
6669inline HINSTANCE O32_LoadLibrary(LPCSTR a)
6670{
6671 HINSTANCE yyrc;
6672 USHORT sel = RestoreOS2FS();
6673
6674 yyrc = _O32_LoadLibrary(a);
6675 SetFS(sel);
6676
6677 return yyrc;
6678}
6679
6680inline HMENU O32_LoadMenu(HINSTANCE a, LPCSTR b)
6681{
6682 HMENU yyrc;
6683 USHORT sel = RestoreOS2FS();
6684
6685 yyrc = _O32_LoadMenu(a, b);
6686 SetFS(sel);
6687
6688 return yyrc;
6689}
6690
6691inline HMENU O32_LoadMenuIndirect(CONST MENUITEMTEMPLATEHEADER *a)
6692{
6693 HMENU yyrc;
6694 USHORT sel = RestoreOS2FS();
6695
6696 yyrc = _O32_LoadMenuIndirect(a);
6697 SetFS(sel);
6698
6699 return yyrc;
6700}
6701
6702inline DWORD O32_LoadModule(LPCSTR a, PVOID b)
6703{
6704 DWORD yyrc;
6705 USHORT sel = RestoreOS2FS();
6706
6707 yyrc = _O32_LoadModule(a, b);
6708 SetFS(sel);
6709
6710 return yyrc;
6711}
6712
6713inline HGLOBAL O32_LoadResource(HINSTANCE a, HRSRC b)
6714{
6715 HGLOBAL yyrc;
6716 USHORT sel = RestoreOS2FS();
6717
6718 yyrc = _O32_LoadResource(a, b);
6719 SetFS(sel);
6720
6721 return yyrc;
6722}
6723
6724inline PVOID O32_LockResource(HGLOBAL a)
6725{
6726 PVOID yyrc;
6727 USHORT sel = RestoreOS2FS();
6728
6729 yyrc = _O32_LockResource(a);
6730 SetFS(sel);
6731
6732 return yyrc;
6733}
6734
6735inline int O32_LoadString(HINSTANCE a, UINT b, LPSTR c, int d)
6736{
6737 int yyrc;
6738 USHORT sel = RestoreOS2FS();
6739
6740 yyrc = _O32_LoadString(a, b, c, d);
6741 SetFS(sel);
6742
6743 return yyrc;
6744}
6745
6746inline HLOCAL O32_LocalAlloc(UINT a, UINT b)
6747{
6748 HLOCAL yyrc;
6749 USHORT sel = RestoreOS2FS();
6750
6751 yyrc = _O32_LocalAlloc(a, b);
6752 SetFS(sel);
6753
6754 return yyrc;
6755}
6756
6757inline HLOCAL O32_LocalDiscard(HLOCAL a)
6758{
6759 HLOCAL yyrc;
6760 USHORT sel = RestoreOS2FS();
6761
6762 yyrc = _O32_LocalDiscard(a);
6763 SetFS(sel);
6764
6765 return yyrc;
6766}
6767
6768inline UINT O32_LocalFlags(HLOCAL a)
6769{
6770 UINT yyrc;
6771 USHORT sel = RestoreOS2FS();
6772
6773 yyrc = _O32_LocalFlags(a);
6774 SetFS(sel);
6775
6776 return yyrc;
6777}
6778
6779inline BOOL O32_LocalFileTimeToFileTime(CONST FILETIME *a, FILETIME *b)
6780{
6781 BOOL yyrc;
6782 USHORT sel = RestoreOS2FS();
6783
6784 yyrc = _O32_LocalFileTimeToFileTime(a, b);
6785 SetFS(sel);
6786
6787 return yyrc;
6788}
6789
6790inline HLOCAL O32_LocalFree(HLOCAL a)
6791{
6792 HLOCAL yyrc;
6793 USHORT sel = RestoreOS2FS();
6794
6795 yyrc = _O32_LocalFree(a);
6796 SetFS(sel);
6797
6798 return yyrc;
6799}
6800
6801inline HLOCAL O32_LocalHandle(PVOID a)
6802{
6803 HLOCAL yyrc;
6804 USHORT sel = RestoreOS2FS();
6805
6806 yyrc = _O32_LocalHandle(a);
6807 SetFS(sel);
6808
6809 return yyrc;
6810}
6811
6812inline BOOL O32_LocalUnlock(HLOCAL a)
6813{
6814 BOOL yyrc;
6815 USHORT sel = RestoreOS2FS();
6816
6817 yyrc = _O32_LocalUnlock(a);
6818 SetFS(sel);
6819
6820 return yyrc;
6821}
6822
6823inline HLOCAL O32_LocalReAlloc(HLOCAL a, UINT b, UINT c)
6824{
6825 HLOCAL yyrc;
6826 USHORT sel = RestoreOS2FS();
6827
6828 yyrc = _O32_LocalReAlloc(a, b, c);
6829 SetFS(sel);
6830
6831 return yyrc;
6832}
6833
6834inline UINT O32_LocalSize(HLOCAL a)
6835{
6836 UINT yyrc;
6837 USHORT sel = RestoreOS2FS();
6838
6839 yyrc = _O32_LocalSize(a);
6840 SetFS(sel);
6841
6842 return yyrc;
6843}
6844
6845inline PVOID O32_LocalLock(HLOCAL a)
6846{
6847 PVOID yyrc;
6848 USHORT sel = RestoreOS2FS();
6849
6850 yyrc = _O32_LocalLock(a);
6851 SetFS(sel);
6852
6853 return yyrc;
6854}
6855
6856inline BOOL O32_LockFile(HANDLE a, DWORD b, DWORD c, DWORD d, DWORD e)
6857{
6858 BOOL yyrc;
6859 USHORT sel = RestoreOS2FS();
6860
6861 yyrc = _O32_LockFile(a, b, c, d, e);
6862 SetFS(sel);
6863
6864 return yyrc;
6865}
6866
6867inline BOOL O32_LockWindowUpdate(HWND a)
6868{
6869 BOOL yyrc;
6870 USHORT sel = RestoreOS2FS();
6871
6872 yyrc = _O32_LockWindowUpdate(a);
6873 SetFS(sel);
6874
6875 return yyrc;
6876}
6877
6878inline BOOL O32_MapDialogRect(HWND a, PRECT b)
6879{
6880 BOOL yyrc;
6881 USHORT sel = RestoreOS2FS();
6882
6883 yyrc = _O32_MapDialogRect(a, b);
6884 SetFS(sel);
6885
6886 return yyrc;
6887}
6888
6889inline UINT O32_MapVirtualKey(UINT a, UINT b)
6890{
6891 UINT yyrc;
6892 USHORT sel = RestoreOS2FS();
6893
6894 yyrc = _O32_MapVirtualKey(a, b);
6895 SetFS(sel);
6896
6897 return yyrc;
6898}
6899
6900inline int O32_MapWindowPoints(HWND a, HWND b, PPOINT c, int d)
6901{
6902 int yyrc;
6903 USHORT sel = RestoreOS2FS();
6904
6905 yyrc = _O32_MapWindowPoints(a, b, c, d);
6906 SetFS(sel);
6907
6908 return yyrc;
6909}
6910
6911inline BOOL O32_MaskBlt(HDC a, int b, int c, int d, int e, HDC f, int g, int h, HBITMAP i, int j, int k, DWORD l)
6912{
6913 BOOL yyrc;
6914 USHORT sel = RestoreOS2FS();
6915
6916 yyrc = _O32_MaskBlt(a, b, c, d, e, f, g, h, i, j, k, l);
6917 SetFS(sel);
6918
6919 return yyrc;
6920}
6921
6922inline int O32_MessageBox(HWND a, LPCSTR b, LPCSTR c, UINT d)
6923{
6924 int yyrc;
6925 USHORT sel = RestoreOS2FS();
6926
6927 yyrc = _O32_MessageBox(a, b, c, d);
6928 SetFS(sel);
6929
6930 return yyrc;
6931}
6932
6933inline BOOL O32_MessageBeep(UINT a)
6934{
6935 BOOL yyrc;
6936 USHORT sel = RestoreOS2FS();
6937
6938 yyrc = _O32_MessageBeep(a);
6939 SetFS(sel);
6940
6941 return yyrc;
6942}
6943
6944inline DWORD O32_MsgWaitForMultipleObjects(DWORD a, LPHANDLE b, BOOL c, DWORD d, DWORD e)
6945{
6946 DWORD yyrc;
6947 USHORT sel = RestoreOS2FS();
6948
6949 yyrc = _O32_MsgWaitForMultipleObjects(a, b, c, d, e);
6950 SetFS(sel);
6951
6952 return yyrc;
6953}
6954
6955inline BOOL O32_ModifyMenu(HMENU a, UINT b, UINT c, UINT d, LPCSTR e)
6956{
6957 BOOL yyrc;
6958 USHORT sel = RestoreOS2FS();
6959
6960 yyrc = _O32_ModifyMenu(a, b, c, d, e);
6961 SetFS(sel);
6962
6963 return yyrc;
6964}
6965
6966inline BOOL O32_ModifyWorldTransform(HDC a, LPXFORM b, DWORD c)
6967{
6968 BOOL yyrc;
6969 USHORT sel = RestoreOS2FS();
6970
6971 yyrc = _O32_ModifyWorldTransform(a, b, c);
6972 SetFS(sel);
6973
6974 return yyrc;
6975}
6976
6977inline BOOL O32_MoveFile(LPCSTR a, LPCSTR b)
6978{
6979 BOOL yyrc;
6980 USHORT sel = RestoreOS2FS();
6981
6982 yyrc = _O32_MoveFile(a, b);
6983 SetFS(sel);
6984
6985 return yyrc;
6986}
6987
6988inline BOOL O32_MoveToEx(HDC a, int b, int c, PPOINT d)
6989{
6990 BOOL yyrc;
6991 USHORT sel = RestoreOS2FS();
6992
6993 yyrc = _O32_MoveToEx(a, b, c, d);
6994 SetFS(sel);
6995
6996 return yyrc;
6997}
6998
6999inline BOOL O32_MoveWindow(HWND a, int b, int c, int d, int e, BOOL f)
7000{
7001 BOOL yyrc;
7002 USHORT sel = RestoreOS2FS();
7003
7004 yyrc = _O32_MoveWindow(a, b, c, d, e, f);
7005 SetFS(sel);
7006
7007 return yyrc;
7008}
7009
7010inline int O32_MulDiv(int a, int b, int c)
7011{
7012 int yyrc;
7013 USHORT sel = RestoreOS2FS();
7014
7015 yyrc = _O32_MulDiv(a, b, c);
7016 SetFS(sel);
7017
7018 return yyrc;
7019}
7020
7021inline int O32_OffsetClipRgn(HDC a, int b, int c)
7022{
7023 int yyrc;
7024 USHORT sel = RestoreOS2FS();
7025
7026 yyrc = _O32_OffsetClipRgn(a, b, c);
7027 SetFS(sel);
7028
7029 return yyrc;
7030}
7031
7032inline BOOL O32_OffsetRect(PRECT a, int b, int c)
7033{
7034 BOOL yyrc;
7035 USHORT sel = RestoreOS2FS();
7036
7037 yyrc = _O32_OffsetRect(a, b, c);
7038 SetFS(sel);
7039
7040 return yyrc;
7041}
7042
7043inline int O32_OffsetRgn(HRGN a, int b, int c)
7044{
7045 int yyrc;
7046 USHORT sel = RestoreOS2FS();
7047
7048 yyrc = _O32_OffsetRgn(a, b, c);
7049 SetFS(sel);
7050
7051 return yyrc;
7052}
7053
7054inline BOOL O32_OffsetViewportOrgEx(HDC a, int b, int c, PPOINT d)
7055{
7056 BOOL yyrc;
7057 USHORT sel = RestoreOS2FS();
7058
7059 yyrc = _O32_OffsetViewportOrgEx(a, b, c, d);
7060 SetFS(sel);
7061
7062 return yyrc;
7063}
7064
7065inline BOOL O32_OffsetWindowOrgEx(HDC a, int b, int c, PPOINT d)
7066{
7067 BOOL yyrc;
7068 USHORT sel = RestoreOS2FS();
7069
7070 yyrc = _O32_OffsetWindowOrgEx(a, b, c, d);
7071 SetFS(sel);
7072
7073 return yyrc;
7074}
7075
7076inline BOOL O32_OpenClipboard(HWND a)
7077{
7078 BOOL yyrc;
7079 USHORT sel = RestoreOS2FS();
7080
7081 yyrc = _O32_OpenClipboard(a);
7082 SetFS(sel);
7083
7084 return yyrc;
7085}
7086
7087inline HANDLE O32_OpenEvent(DWORD a, BOOL b, LPCSTR c)
7088{
7089 HANDLE yyrc;
7090 USHORT sel = RestoreOS2FS();
7091
7092 yyrc = _O32_OpenEvent(a, b, c);
7093 SetFS(sel);
7094
7095 return yyrc;
7096}
7097
7098inline HFILE O32_OpenFile(LPCSTR a, LPOFSTRUCT b, UINT c)
7099{
7100 HFILE yyrc;
7101 USHORT sel = RestoreOS2FS();
7102
7103 yyrc = _O32_OpenFile(a, b, c);
7104 SetFS(sel);
7105
7106 return yyrc;
7107}
7108
7109inline HANDLE O32_OpenMutex(DWORD a, BOOL b, LPCSTR c)
7110{
7111 HANDLE yyrc;
7112 USHORT sel = RestoreOS2FS();
7113
7114 yyrc = _O32_OpenMutex(a, b, c);
7115 SetFS(sel);
7116
7117 return yyrc;
7118}
7119
7120inline HANDLE O32_OpenProcess(DWORD a, BOOL b, DWORD c)
7121{
7122 HANDLE yyrc;
7123 USHORT sel = RestoreOS2FS();
7124
7125 yyrc = _O32_OpenProcess(a, b, c);
7126 SetFS(sel);
7127
7128 return yyrc;
7129}
7130
7131inline HANDLE O32_OpenSemaphore(DWORD a, BOOL b, LPCSTR c)
7132{
7133 HANDLE yyrc;
7134 USHORT sel = RestoreOS2FS();
7135
7136 yyrc = _O32_OpenSemaphore(a, b, c);
7137 SetFS(sel);
7138
7139 return yyrc;
7140}
7141
7142inline VOID O32_OutputDebugString(LPCSTR a)
7143{
7144 USHORT sel = RestoreOS2FS();
7145
7146 _O32_OutputDebugString(a);
7147 SetFS(sel);
7148}
7149
7150inline LONG O32_PackDDElParam(UINT a, UINT b, UINT c)
7151{
7152 LONG yyrc;
7153 USHORT sel = RestoreOS2FS();
7154
7155 yyrc = _O32_PackDDElParam(a, b, c);
7156 SetFS(sel);
7157
7158 return yyrc;
7159}
7160
7161inline BOOL O32_PaintRgn(HDC a, HRGN b)
7162{
7163 BOOL yyrc;
7164 USHORT sel = RestoreOS2FS();
7165
7166 yyrc = _O32_PaintRgn(a, b);
7167 SetFS(sel);
7168
7169 return yyrc;
7170}
7171
7172inline BOOL O32_PatBlt(HDC a, int b, int c, int d, int e, DWORD f)
7173{
7174 BOOL yyrc;
7175 USHORT sel = RestoreOS2FS();
7176
7177 yyrc = _O32_PatBlt(a, b, c, d, e, f);
7178 SetFS(sel);
7179
7180 return yyrc;
7181}
7182
7183inline HRGN O32_PathToRegion(HDC a)
7184{
7185 HRGN yyrc;
7186 USHORT sel = RestoreOS2FS();
7187
7188 yyrc = _O32_PathToRegion(a);
7189 SetFS(sel);
7190
7191 return yyrc;
7192}
7193
7194inline BOOL O32_PeekMessage(LPMSG a, HWND b, UINT c, UINT d, UINT e)
7195{
7196 BOOL yyrc;
7197 USHORT sel = RestoreOS2FS();
7198
7199 yyrc = _O32_PeekMessage(a, b, c, d, e);
7200 SetFS(sel);
7201
7202 return yyrc;
7203}
7204
7205inline BOOL O32_Pie(HDC a, int b, int c, int d, int e, int f, int g, int h, int i)
7206{
7207 BOOL yyrc;
7208 USHORT sel = RestoreOS2FS();
7209
7210 yyrc = _O32_Pie(a, b, c, d, e, f, g, h, i);
7211 SetFS(sel);
7212
7213 return yyrc;
7214}
7215
7216inline BOOL O32_PlayEnhMetaFile(HDC a, HENHMETAFILE b, CONST RECT *c)
7217{
7218 BOOL yyrc;
7219 USHORT sel = RestoreOS2FS();
7220
7221 yyrc = _O32_PlayEnhMetaFile(a, b, c);
7222 SetFS(sel);
7223
7224 return yyrc;
7225}
7226
7227inline BOOL O32_PlayMetaFile(HDC a, HMETAFILE b)
7228{
7229 BOOL yyrc;
7230 USHORT sel = RestoreOS2FS();
7231
7232 yyrc = _O32_PlayMetaFile(a, b);
7233 SetFS(sel);
7234
7235 return yyrc;
7236}
7237
7238inline BOOL O32_PlayMetaFileRecord(HDC a, LPHANDLETABLE b, PMETARECORD c, int d)
7239{
7240 BOOL yyrc;
7241 USHORT sel = RestoreOS2FS();
7242
7243 yyrc = _O32_PlayMetaFileRecord(a, b, c, d);
7244 SetFS(sel);
7245
7246 return yyrc;
7247}
7248
7249inline BOOL O32_PolyBezier(HDC a, CONST POINT *b, int c)
7250{
7251 BOOL yyrc;
7252 USHORT sel = RestoreOS2FS();
7253
7254 yyrc = _O32_PolyBezier(a, b, c);
7255 SetFS(sel);
7256
7257 return yyrc;
7258}
7259
7260inline BOOL O32_PolyBezierTo(HDC a, CONST POINT *b, DWORD c)
7261{
7262 BOOL yyrc;
7263 USHORT sel = RestoreOS2FS();
7264
7265 yyrc = _O32_PolyBezierTo(a, b, c);
7266 SetFS(sel);
7267
7268 return yyrc;
7269}
7270
7271inline BOOL O32_PolyDraw(HDC a, CONST POINT *b, CONST BYTE *c, int d)
7272{
7273 BOOL yyrc;
7274 USHORT sel = RestoreOS2FS();
7275
7276 yyrc = _O32_PolyDraw(a, b, c, d);
7277 SetFS(sel);
7278
7279 return yyrc;
7280}
7281
7282inline BOOL O32_Polygon(HDC a, CONST POINT *b, int c)
7283{
7284 BOOL yyrc;
7285 USHORT sel = RestoreOS2FS();
7286
7287 yyrc = _O32_Polygon(a, b, c);
7288 SetFS(sel);
7289
7290 return yyrc;
7291}
7292
7293inline BOOL O32_Polyline(HDC a, CONST POINT *b, int c)
7294{
7295 BOOL yyrc;
7296 USHORT sel = RestoreOS2FS();
7297
7298 yyrc = _O32_Polyline(a, b, c);
7299 SetFS(sel);
7300
7301 return yyrc;
7302}
7303
7304inline BOOL O32_PolylineTo(HDC a, CONST POINT *b, DWORD c)
7305{
7306 BOOL yyrc;
7307 USHORT sel = RestoreOS2FS();
7308
7309 yyrc = _O32_PolylineTo(a, b, c);
7310 SetFS(sel);
7311
7312 return yyrc;
7313}
7314
7315inline BOOL O32_PolyPolygon(HDC a, CONST POINT *b, CONST int *c, int d)
7316{
7317 BOOL yyrc;
7318 USHORT sel = RestoreOS2FS();
7319
7320 yyrc = _O32_PolyPolygon(a, b, c, d);
7321 SetFS(sel);
7322
7323 return yyrc;
7324}
7325
7326inline BOOL O32_PolyPolyline(HDC a, CONST POINT *b, CONST DWORD *c, DWORD d)
7327{
7328 BOOL yyrc;
7329 USHORT sel = RestoreOS2FS();
7330
7331 yyrc = _O32_PolyPolyline(a, b, c, d);
7332 SetFS(sel);
7333
7334 return yyrc;
7335}
7336
7337inline VOID O32_PostQuitMessage(int a)
7338{
7339 USHORT sel = RestoreOS2FS();
7340
7341 _O32_PostQuitMessage(a);
7342 SetFS(sel);
7343}
7344
7345inline BOOL O32_PostMessage(HWND a, UINT b, WPARAM c, LPARAM d)
7346{
7347 BOOL yyrc;
7348 USHORT sel = RestoreOS2FS();
7349
7350 yyrc = _O32_PostMessage(a, b, c, d);
7351 SetFS(sel);
7352
7353 return yyrc;
7354}
7355
7356inline BOOL O32_PostThreadMessage(DWORD a, UINT b, WPARAM c, LPARAM d)
7357{
7358 BOOL yyrc;
7359 USHORT sel = RestoreOS2FS();
7360
7361 yyrc = _O32_PostThreadMessage(a, b, c, d);
7362 SetFS(sel);
7363
7364 return yyrc;
7365}
7366
7367inline BOOL O32_PtInRect(CONST RECT *a, POINT b)
7368{
7369 BOOL yyrc;
7370 USHORT sel = RestoreOS2FS();
7371
7372 yyrc = _O32_PtInRect(a, b);
7373 SetFS(sel);
7374
7375 return yyrc;
7376}
7377
7378inline BOOL O32_PtInRegion(HRGN a, int b, int c)
7379{
7380 BOOL yyrc;
7381 USHORT sel = RestoreOS2FS();
7382
7383 yyrc = _O32_PtInRegion(a, b, c);
7384 SetFS(sel);
7385
7386 return yyrc;
7387}
7388
7389inline BOOL O32_PtVisible(HDC a, int b, int c)
7390{
7391 BOOL yyrc;
7392 USHORT sel = RestoreOS2FS();
7393
7394 yyrc = _O32_PtVisible(a, b, c);
7395 SetFS(sel);
7396
7397 return yyrc;
7398}
7399
7400inline BOOL O32_PrintDlg(LPPRINTDLGA a)
7401{
7402 BOOL yyrc;
7403 USHORT sel = RestoreOS2FS();
7404
7405 yyrc = _O32_PrintDlg(a);
7406 SetFS(sel);
7407
7408 return yyrc;
7409}
7410
7411inline BOOL O32_PulseEvent(HANDLE a)
7412{
7413 BOOL yyrc;
7414 USHORT sel = RestoreOS2FS();
7415
7416 yyrc = _O32_PulseEvent(a);
7417 SetFS(sel);
7418
7419 return yyrc;
7420}
7421
7422inline BOOL O32_ReadFile(HANDLE a, PVOID b, DWORD c, PDWORD d, LPOVERLAPPED e)
7423{
7424 BOOL yyrc;
7425 USHORT sel = RestoreOS2FS();
7426
7427 yyrc = _O32_ReadFile(a, b, c, d, e);
7428 SetFS(sel);
7429
7430 return yyrc;
7431}
7432
7433inline UINT O32_RealizePalette(HDC a)
7434{
7435 UINT yyrc;
7436 USHORT sel = RestoreOS2FS();
7437
7438 yyrc = _O32_RealizePalette(a);
7439 SetFS(sel);
7440
7441 return yyrc;
7442}
7443
7444inline BOOL O32_RectInRegion(HRGN a, CONST RECT *b)
7445{
7446 BOOL yyrc;
7447 USHORT sel = RestoreOS2FS();
7448
7449 yyrc = _O32_RectInRegion(a, b);
7450 SetFS(sel);
7451
7452 return yyrc;
7453}
7454
7455inline BOOL O32_RectVisible(HDC a, CONST RECT *b)
7456{
7457 BOOL yyrc;
7458 USHORT sel = RestoreOS2FS();
7459
7460 yyrc = _O32_RectVisible(a, b);
7461 SetFS(sel);
7462
7463 return yyrc;
7464}
7465
7466inline BOOL O32_Rectangle(HDC a, int b, int c, int d, int e)
7467{
7468 BOOL yyrc;
7469 USHORT sel = RestoreOS2FS();
7470
7471 yyrc = _O32_Rectangle(a, b, c, d, e);
7472 SetFS(sel);
7473
7474 return yyrc;
7475}
7476
7477inline BOOL O32_RedrawWindow(HWND a, CONST RECT *b, HRGN c, DWORD d)
7478{
7479 BOOL yyrc;
7480 USHORT sel = RestoreOS2FS();
7481
7482 yyrc = _O32_RedrawWindow(a, b, c, d);
7483 SetFS(sel);
7484
7485 return yyrc;
7486}
7487
7488inline LONG O32_RegCloseKey(HKEY a)
7489{
7490 LONG yyrc;
7491 USHORT sel = RestoreOS2FS();
7492
7493 yyrc = _O32_RegCloseKey(a);
7494 SetFS(sel);
7495
7496 return yyrc;
7497}
7498
7499inline LONG O32_RegCreateKey(HKEY a, LPCSTR b, PHKEY c)
7500{
7501 LONG yyrc;
7502 USHORT sel = RestoreOS2FS();
7503
7504 yyrc = _O32_RegCreateKey(a, b, c);
7505 SetFS(sel);
7506
7507 return yyrc;
7508}
7509
7510inline LONG O32_RegCreateKeyEx(HKEY a, LPCSTR b, DWORD c, LPSTR d, DWORD e, REGSAM f, LPSECURITY_ATTRIBUTES g, PHKEY h, PDWORD i)
7511{
7512 LONG yyrc;
7513 USHORT sel = RestoreOS2FS();
7514
7515 yyrc = _O32_RegCreateKeyEx(a, b, c, d, e, f, g, h, i);
7516 SetFS(sel);
7517
7518 return yyrc;
7519}
7520
7521inline LONG O32_RegDeleteKey(HKEY a, LPCSTR b)
7522{
7523 LONG yyrc;
7524 USHORT sel = RestoreOS2FS();
7525
7526 yyrc = _O32_RegDeleteKey(a, b);
7527 SetFS(sel);
7528
7529 return yyrc;
7530}
7531
7532inline LONG O32_RegDeleteValue(HKEY a, LPSTR b)
7533{
7534 LONG yyrc;
7535 USHORT sel = RestoreOS2FS();
7536
7537 yyrc = _O32_RegDeleteValue(a, b);
7538 SetFS(sel);
7539
7540 return yyrc;
7541}
7542
7543inline LONG O32_RegEnumKey(HKEY a, DWORD b, LPSTR c, DWORD d)
7544{
7545 LONG yyrc;
7546 USHORT sel = RestoreOS2FS();
7547
7548 yyrc = _O32_RegEnumKey(a, b, c, d);
7549 SetFS(sel);
7550
7551 return yyrc;
7552}
7553
7554inline LONG O32_RegEnumKeyEx(HKEY a, DWORD b, LPSTR c, PDWORD d, PDWORD e, LPSTR f, PDWORD g, FILETIME *h)
7555{
7556 LONG yyrc;
7557 USHORT sel = RestoreOS2FS();
7558
7559 yyrc = _O32_RegEnumKeyEx(a, b, c, d, e, f, g, h);
7560 SetFS(sel);
7561
7562 return yyrc;
7563}
7564
7565inline LONG O32_RegEnumValue(HKEY a, DWORD b, LPSTR c, PDWORD d, PDWORD e, PDWORD f, LPBYTE g, PDWORD h)
7566{
7567 LONG yyrc;
7568 USHORT sel = RestoreOS2FS();
7569
7570 yyrc = _O32_RegEnumValue(a, b, c, d, e, f, g, h);
7571 SetFS(sel);
7572
7573 return yyrc;
7574}
7575
7576inline LONG O32_RegOpenKey(HKEY a, LPCSTR b, PHKEY c)
7577{
7578 LONG yyrc;
7579 USHORT sel = RestoreOS2FS();
7580
7581 yyrc = _O32_RegOpenKey(a, b, c);
7582 SetFS(sel);
7583
7584 return yyrc;
7585}
7586
7587inline LONG O32_RegOpenKeyEx(HKEY a, LPCSTR b, DWORD c, REGSAM d, PHKEY e)
7588{
7589 LONG yyrc;
7590 USHORT sel = RestoreOS2FS();
7591
7592 yyrc = _O32_RegOpenKeyEx(a, b, c, d, e);
7593 SetFS(sel);
7594
7595 return yyrc;
7596}
7597
7598inline LONG O32_RegQueryInfoKey(HKEY a, LPSTR b, PDWORD c, PDWORD d, PDWORD e, PDWORD f, PDWORD g, PDWORD h, PDWORD i, PDWORD j, PDWORD k, FILETIME *l)
7599{
7600 LONG yyrc;
7601 USHORT sel = RestoreOS2FS();
7602
7603 yyrc = _O32_RegQueryInfoKey(a, b, c, d, e, f, g, h, i, j, k, l);
7604 SetFS(sel);
7605
7606 return yyrc;
7607}
7608
7609inline LONG O32_RegQueryValue(HKEY a, LPCSTR b, LPSTR c, PLONG d)
7610{
7611 LONG yyrc;
7612 USHORT sel = RestoreOS2FS();
7613
7614 yyrc = _O32_RegQueryValue(a, b, c, d);
7615 SetFS(sel);
7616
7617 return yyrc;
7618}
7619
7620inline LONG O32_RegQueryValueEx(HKEY a, LPCSTR b, PDWORD c, PDWORD d, LPBYTE e, PDWORD f)
7621{
7622 LONG yyrc;
7623 USHORT sel = RestoreOS2FS();
7624
7625 yyrc = _O32_RegQueryValueEx(a, b, c, d, e, f);
7626 SetFS(sel);
7627
7628 return yyrc;
7629}
7630
7631inline LONG O32_RegSetValue(HKEY a, LPCSTR b, DWORD c, LPCSTR d, DWORD e)
7632{
7633 LONG yyrc;
7634 USHORT sel = RestoreOS2FS();
7635
7636 yyrc = _O32_RegSetValue(a, b, c, d, e);
7637 SetFS(sel);
7638
7639 return yyrc;
7640}
7641
7642inline LONG O32_RegSetValueEx(HKEY a, LPCSTR b, DWORD c, DWORD d, CONST BYTE *e, DWORD f)
7643{
7644 LONG yyrc;
7645 USHORT sel = RestoreOS2FS();
7646
7647 yyrc = _O32_RegSetValueEx(a, b, c, d, e, f);
7648 SetFS(sel);
7649
7650 return yyrc;
7651}
7652
7653inline WORD O32_RegisterClass(CONST WNDCLASSA *a)
7654{
7655 WORD yyrc;
7656 USHORT sel = RestoreOS2FS();
7657
7658 yyrc = _O32_RegisterClass(a);
7659 SetFS(sel);
7660
7661 return yyrc;
7662}
7663
7664inline UINT O32_RegisterClipboardFormat(LPCSTR a)
7665{
7666 UINT yyrc;
7667 USHORT sel = RestoreOS2FS();
7668
7669 yyrc = _O32_RegisterClipboardFormat(a);
7670 SetFS(sel);
7671
7672 return yyrc;
7673}
7674
7675inline UINT O32_RegisterWindowMessage(LPCSTR a)
7676{
7677 UINT yyrc;
7678 USHORT sel = RestoreOS2FS();
7679
7680 yyrc = _O32_RegisterWindowMessage(a);
7681 SetFS(sel);
7682
7683 return yyrc;
7684}
7685
7686inline BOOL O32_ReleaseCapture()
7687{
7688 BOOL yyrc;
7689 USHORT sel = RestoreOS2FS();
7690
7691 yyrc = _O32_ReleaseCapture();
7692 SetFS(sel);
7693
7694 return yyrc;
7695}
7696
7697inline int O32_ReleaseDC(HWND a, HDC b)
7698{
7699 int yyrc;
7700 USHORT sel = RestoreOS2FS();
7701
7702 yyrc = _O32_ReleaseDC(a, b);
7703 SetFS(sel);
7704
7705 return yyrc;
7706}
7707
7708inline BOOL O32_ReleaseMutex(HANDLE a)
7709{
7710 BOOL yyrc;
7711 USHORT sel = RestoreOS2FS();
7712
7713 yyrc = _O32_ReleaseMutex(a);
7714 SetFS(sel);
7715
7716 return yyrc;
7717}
7718
7719inline BOOL O32_ReleaseSemaphore(HANDLE a, LONG b, PLONG c)
7720{
7721 BOOL yyrc;
7722 USHORT sel = RestoreOS2FS();
7723
7724 yyrc = _O32_ReleaseSemaphore(a, b, c);
7725 SetFS(sel);
7726
7727 return yyrc;
7728}
7729
7730inline BOOL O32_RemoveDirectory(LPCSTR a)
7731{
7732 BOOL yyrc;
7733 USHORT sel = RestoreOS2FS();
7734
7735 yyrc = _O32_RemoveDirectory(a);
7736 SetFS(sel);
7737
7738 return yyrc;
7739}
7740
7741inline BOOL O32_RemoveFontResource(LPCSTR a)
7742{
7743 BOOL yyrc;
7744 USHORT sel = RestoreOS2FS();
7745
7746 yyrc = _O32_RemoveFontResource(a);
7747 SetFS(sel);
7748
7749 return yyrc;
7750}
7751
7752inline BOOL O32_RemoveMenu(HMENU a, UINT b, UINT c)
7753{
7754 BOOL yyrc;
7755 USHORT sel = RestoreOS2FS();
7756
7757 yyrc = _O32_RemoveMenu(a, b, c);
7758 SetFS(sel);
7759
7760 return yyrc;
7761}
7762
7763inline HANDLE O32_RemoveProp(HWND a, LPCSTR b)
7764{
7765 HANDLE yyrc;
7766 USHORT sel = RestoreOS2FS();
7767
7768 yyrc = _O32_RemoveProp(a, b);
7769 SetFS(sel);
7770
7771 return yyrc;
7772}
7773
7774inline HWND O32_ReplaceText(LPFINDREPLACEA a)
7775{
7776 HWND yyrc;
7777 USHORT sel = RestoreOS2FS();
7778
7779 yyrc = _O32_ReplaceText(a);
7780 SetFS(sel);
7781
7782 return yyrc;
7783}
7784
7785inline BOOL O32_ReplyMessage(LRESULT a)
7786{
7787 BOOL yyrc;
7788 USHORT sel = RestoreOS2FS();
7789
7790 yyrc = _O32_ReplyMessage(a);
7791 SetFS(sel);
7792
7793 return yyrc;
7794}
7795
7796inline BOOL O32_ResetDC(HDC a, CONST DEVMODEA *b)
7797{
7798 BOOL yyrc;
7799 USHORT sel = RestoreOS2FS();
7800
7801 yyrc = _O32_ResetDC(a, b);
7802 SetFS(sel);
7803
7804 return yyrc;
7805}
7806
7807inline BOOL O32_ResetEvent(HANDLE a)
7808{
7809 BOOL yyrc;
7810 USHORT sel = RestoreOS2FS();
7811
7812 yyrc = _O32_ResetEvent(a);
7813 SetFS(sel);
7814
7815 return yyrc;
7816}
7817
7818inline BOOL O32_ResizePalette(HPALETTE a, UINT b)
7819{
7820 BOOL yyrc;
7821 USHORT sel = RestoreOS2FS();
7822
7823 yyrc = _O32_ResizePalette(a, b);
7824 SetFS(sel);
7825
7826 return yyrc;
7827}
7828
7829inline BOOL O32_RestoreDC(HDC a, int b)
7830{
7831 BOOL yyrc;
7832 USHORT sel = RestoreOS2FS();
7833
7834 yyrc = _O32_RestoreDC(a, b);
7835 SetFS(sel);
7836
7837 return yyrc;
7838}
7839
7840inline DWORD O32_ResumeThread(HANDLE a)
7841{
7842 DWORD yyrc;
7843 USHORT sel = RestoreOS2FS();
7844
7845 yyrc = _O32_ResumeThread(a);
7846 SetFS(sel);
7847
7848 return yyrc;
7849}
7850
7851inline LONG O32_ReuseDDElParam(LONG a, UINT b, UINT c, UINT d, UINT e)
7852{
7853 LONG yyrc;
7854 USHORT sel = RestoreOS2FS();
7855
7856 yyrc = _O32_ReuseDDElParam(a, b, c, d, e);
7857 SetFS(sel);
7858
7859 return yyrc;
7860}
7861
7862inline BOOL O32_RoundRect(HDC a, int b, int c, int d, int e, int f, int g)
7863{
7864 BOOL yyrc;
7865 USHORT sel = RestoreOS2FS();
7866
7867 yyrc = _O32_RoundRect(a, b, c, d, e, f, g);
7868 SetFS(sel);
7869
7870 return yyrc;
7871}
7872
7873inline int O32_SaveDC(HDC a)
7874{
7875 int yyrc;
7876 USHORT sel = RestoreOS2FS();
7877
7878 yyrc = _O32_SaveDC(a);
7879 SetFS(sel);
7880
7881 return yyrc;
7882}
7883
7884inline BOOL O32_ScaleViewportExtEx(HDC a, int b, int c, int d, int e, PSIZE f)
7885{
7886 BOOL yyrc;
7887 USHORT sel = RestoreOS2FS();
7888
7889 yyrc = _O32_ScaleViewportExtEx(a, b, c, d, e, f);
7890 SetFS(sel);
7891
7892 return yyrc;
7893}
7894
7895inline BOOL O32_ScaleWindowExtEx(HDC a, int b, int c, int d, int e, PSIZE f)
7896{
7897 BOOL yyrc;
7898 USHORT sel = RestoreOS2FS();
7899
7900 yyrc = _O32_ScaleWindowExtEx(a, b, c, d, e, f);
7901 SetFS(sel);
7902
7903 return yyrc;
7904}
7905
7906inline BOOL O32_ScreenToClient(HWND a, PPOINT b)
7907{
7908 BOOL yyrc;
7909 USHORT sel = RestoreOS2FS();
7910
7911 yyrc = _O32_ScreenToClient(a, b);
7912 SetFS(sel);
7913
7914 return yyrc;
7915}
7916
7917inline BOOL O32_ScrollDC(HDC a, int b, int c, CONST RECT *d, CONST RECT *e, HRGN f, PRECT g)
7918{
7919 BOOL yyrc;
7920 USHORT sel = RestoreOS2FS();
7921
7922 yyrc = _O32_ScrollDC(a, b, c, d, e, f, g);
7923 SetFS(sel);
7924
7925 return yyrc;
7926}
7927
7928inline BOOL O32_ScrollWindow(HWND a, int b, int c, CONST RECT *d, CONST RECT *e)
7929{
7930 BOOL yyrc;
7931 USHORT sel = RestoreOS2FS();
7932
7933 yyrc = _O32_ScrollWindow(a, b, c, d, e);
7934 SetFS(sel);
7935
7936 return yyrc;
7937}
7938
7939inline BOOL O32_ScrollWindowEx(HWND a, int b, int c, CONST RECT *d, CONST RECT *e, HRGN f, PRECT g, UINT h)
7940{
7941 BOOL yyrc;
7942 USHORT sel = RestoreOS2FS();
7943
7944 yyrc = _O32_ScrollWindowEx(a, b, c, d, e, f, g, h);
7945 SetFS(sel);
7946
7947 return yyrc;
7948}
7949
7950inline DWORD O32_SearchPath(LPCSTR a, LPCSTR b, LPCSTR c, DWORD d, LPSTR e, LPSTR *f)
7951{
7952 DWORD yyrc;
7953 USHORT sel = RestoreOS2FS();
7954
7955 yyrc = _O32_SearchPath(a, b, c, d, e, f);
7956 SetFS(sel);
7957
7958 return yyrc;
7959}
7960
7961inline int O32_SelectClipRgn(HDC a, HRGN b)
7962{
7963 int yyrc;
7964 USHORT sel = RestoreOS2FS();
7965
7966 yyrc = _O32_SelectClipRgn(a, b);
7967 SetFS(sel);
7968
7969 return yyrc;
7970}
7971
7972inline HGDIOBJ O32_SelectObject(HDC a, HGDIOBJ b)
7973{
7974 HGDIOBJ yyrc;
7975 USHORT sel = RestoreOS2FS();
7976
7977 yyrc = _O32_SelectObject(a, b);
7978 SetFS(sel);
7979
7980 return yyrc;
7981}
7982
7983inline HPALETTE O32_SelectPalette(HDC a, HPALETTE b, BOOL c)
7984{
7985 HPALETTE yyrc;
7986 USHORT sel = RestoreOS2FS();
7987
7988 yyrc = _O32_SelectPalette(a, b, c);
7989 SetFS(sel);
7990
7991 return yyrc;
7992}
7993
7994inline LONG O32_SendDlgItemMessage(HWND a, int b, UINT c, WPARAM d, LPARAM e)
7995{
7996 LONG yyrc;
7997 USHORT sel = RestoreOS2FS();
7998
7999 yyrc = _O32_SendDlgItemMessage(a, b, c, d, e);
8000 SetFS(sel);
8001
8002 return yyrc;
8003}
8004
8005inline LRESULT O32_SendMessage(HWND a, UINT b, WPARAM c, LPARAM d)
8006{
8007 LRESULT yyrc;
8008 USHORT sel = RestoreOS2FS();
8009
8010 yyrc = _O32_SendMessage(a, b, c, d);
8011 SetFS(sel);
8012
8013 return yyrc;
8014}
8015
8016inline HWND O32_SetActiveWindow(HWND a)
8017{
8018 HWND yyrc;
8019 USHORT sel = RestoreOS2FS();
8020
8021 yyrc = _O32_SetActiveWindow(a);
8022 SetFS(sel);
8023
8024 return yyrc;
8025}
8026
8027inline int O32_SetArcDirection(HDC a, int b)
8028{
8029 int yyrc;
8030 USHORT sel = RestoreOS2FS();
8031
8032 yyrc = _O32_SetArcDirection(a, b);
8033 SetFS(sel);
8034
8035 return yyrc;
8036}
8037
8038inline LONG O32_SetBitmapBits(HBITMAP a, DWORD b, CONST VOID *c)
8039{
8040 LONG yyrc;
8041 USHORT sel = RestoreOS2FS();
8042
8043 yyrc = _O32_SetBitmapBits(a, b, c);
8044 SetFS(sel);
8045
8046 return yyrc;
8047}
8048
8049inline BOOL O32_SetBitmapDimensionEx(HBITMAP a, int b, int c, PSIZE d)
8050{
8051 BOOL yyrc;
8052 USHORT sel = RestoreOS2FS();
8053
8054 yyrc = _O32_SetBitmapDimensionEx(a, b, c, d);
8055 SetFS(sel);
8056
8057 return yyrc;
8058}
8059
8060inline COLORREF O32_SetBkColor(HDC a, COLORREF b)
8061{
8062 COLORREF yyrc;
8063 USHORT sel = RestoreOS2FS();
8064
8065 yyrc = _O32_SetBkColor(a, b);
8066 SetFS(sel);
8067
8068 return yyrc;
8069}
8070
8071inline int O32_SetBkMode(HDC a, int b)
8072{
8073 int yyrc;
8074 USHORT sel = RestoreOS2FS();
8075
8076 yyrc = _O32_SetBkMode(a, b);
8077 SetFS(sel);
8078
8079 return yyrc;
8080}
8081
8082inline LONG O32_SetBoundsRect(HDC a, CONST RECT *b, UINT c)
8083{
8084 LONG yyrc;
8085 USHORT sel = RestoreOS2FS();
8086
8087 yyrc = _O32_SetBoundsRect(a, b, c);
8088 SetFS(sel);
8089
8090 return yyrc;
8091}
8092
8093inline BOOL O32_SetBrushOrgEx(HDC a, int b, int c, PPOINT d)
8094{
8095 BOOL yyrc;
8096 USHORT sel = RestoreOS2FS();
8097
8098 yyrc = _O32_SetBrushOrgEx(a, b, c, d);
8099 SetFS(sel);
8100
8101 return yyrc;
8102}
8103
8104inline HWND O32_SetCapture(HWND a)
8105{
8106 HWND yyrc;
8107 USHORT sel = RestoreOS2FS();
8108
8109 yyrc = _O32_SetCapture(a);
8110 SetFS(sel);
8111
8112 return yyrc;
8113}
8114
8115inline BOOL O32_SetCaretBlinkTime(UINT a)
8116{
8117 BOOL yyrc;
8118 USHORT sel = RestoreOS2FS();
8119
8120 yyrc = _O32_SetCaretBlinkTime(a);
8121 SetFS(sel);
8122
8123 return yyrc;
8124}
8125
8126inline BOOL O32_SetCaretPos(int a, int b)
8127{
8128 BOOL yyrc;
8129 USHORT sel = RestoreOS2FS();
8130
8131 yyrc = _O32_SetCaretPos(a, b);
8132 SetFS(sel);
8133
8134 return yyrc;
8135}
8136
8137inline DWORD O32_SetClassLong(HWND a, int b, LONG c)
8138{
8139 DWORD yyrc;
8140 USHORT sel = RestoreOS2FS();
8141
8142 yyrc = _O32_SetClassLong(a, b, c);
8143 SetFS(sel);
8144
8145 return yyrc;
8146}
8147
8148inline WORD O32_SetClassWord(HWND a, int b, WORD c)
8149{
8150 WORD yyrc;
8151 USHORT sel = RestoreOS2FS();
8152
8153 yyrc = _O32_SetClassWord(a, b, c);
8154 SetFS(sel);
8155
8156 return yyrc;
8157}
8158
8159inline HANDLE O32_SetClipboardData(UINT a, HANDLE b)
8160{
8161 HANDLE yyrc;
8162 USHORT sel = RestoreOS2FS();
8163
8164 yyrc = _O32_SetClipboardData(a, b);
8165 SetFS(sel);
8166
8167 return yyrc;
8168}
8169
8170inline HWND O32_SetClipboardViewer(HWND a)
8171{
8172 HWND yyrc;
8173 USHORT sel = RestoreOS2FS();
8174
8175 yyrc = _O32_SetClipboardViewer(a);
8176 SetFS(sel);
8177
8178 return yyrc;
8179}
8180
8181inline BOOL O32_SetCurrentDirectory(LPSTR a)
8182{
8183 BOOL yyrc;
8184 USHORT sel = RestoreOS2FS();
8185
8186 yyrc = _O32_SetCurrentDirectory(a);
8187 SetFS(sel);
8188
8189 return yyrc;
8190}
8191
8192inline HCURSOR O32_SetCursor(HCURSOR a)
8193{
8194 HCURSOR yyrc;
8195 USHORT sel = RestoreOS2FS();
8196
8197 yyrc = _O32_SetCursor(a);
8198 SetFS(sel);
8199
8200 return yyrc;
8201}
8202
8203inline BOOL O32_SetCursorPos(int a, int b)
8204{
8205 BOOL yyrc;
8206 USHORT sel = RestoreOS2FS();
8207
8208 yyrc = _O32_SetCursorPos(a, b);
8209 SetFS(sel);
8210
8211 return yyrc;
8212}
8213
8214inline int O32_SetDIBits(HDC a, HBITMAP b, UINT c, UINT d, CONST VOID *e, CONST BITMAPINFO *f, UINT g)
8215{
8216 int yyrc;
8217 USHORT sel = RestoreOS2FS();
8218
8219 yyrc = _O32_SetDIBits(a, b, c, d, e, f, g);
8220 SetFS(sel);
8221
8222 return yyrc;
8223}
8224
8225inline int O32_SetDIBitsToDevice(HDC a, int b, int c, int d, int e, int f, int g, UINT h, UINT i, PVOID j, PBITMAPINFO k, UINT l)
8226{
8227 int yyrc;
8228 USHORT sel = RestoreOS2FS();
8229
8230 yyrc = _O32_SetDIBitsToDevice(a, b, c, d, e, f, g, h, i, j, k, l);
8231 SetFS(sel);
8232
8233 return yyrc;
8234}
8235
8236inline BOOL O32_SetDlgItemInt(HWND a, int b, UINT c, BOOL d)
8237{
8238 BOOL yyrc;
8239 USHORT sel = RestoreOS2FS();
8240
8241 yyrc = _O32_SetDlgItemInt(a, b, c, d);
8242 SetFS(sel);
8243
8244 return yyrc;
8245}
8246
8247inline BOOL O32_SetDlgItemText(HWND a, int b, LPCSTR c)
8248{
8249 BOOL yyrc;
8250 USHORT sel = RestoreOS2FS();
8251
8252 yyrc = _O32_SetDlgItemText(a, b, c);
8253 SetFS(sel);
8254
8255 return yyrc;
8256}
8257
8258inline BOOL O32_SetDoubleClickTime(UINT a)
8259{
8260 BOOL yyrc;
8261 USHORT sel = RestoreOS2FS();
8262
8263 yyrc = _O32_SetDoubleClickTime(a);
8264 SetFS(sel);
8265
8266 return yyrc;
8267}
8268
8269inline BOOL O32_SetEndOfFile(HANDLE a)
8270{
8271 BOOL yyrc;
8272 USHORT sel = RestoreOS2FS();
8273
8274 yyrc = _O32_SetEndOfFile(a);
8275 SetFS(sel);
8276
8277 return yyrc;
8278}
8279
8280inline HENHMETAFILE O32_SetEnhMetaFileBits(UINT a, CONST BYTE *b)
8281{
8282 HENHMETAFILE yyrc;
8283 USHORT sel = RestoreOS2FS();
8284
8285 yyrc = _O32_SetEnhMetaFileBits(a, b);
8286 SetFS(sel);
8287
8288 return yyrc;
8289}
8290
8291inline BOOL O32_SetEnvironmentVariable(LPCSTR a, LPCSTR b)
8292{
8293 BOOL yyrc;
8294 USHORT sel = RestoreOS2FS();
8295
8296 yyrc = _O32_SetEnvironmentVariable(a, b);
8297 SetFS(sel);
8298
8299 return yyrc;
8300}
8301
8302inline BOOL O32_SetEvent(HANDLE a)
8303{
8304 BOOL yyrc;
8305 USHORT sel = RestoreOS2FS();
8306
8307 yyrc = _O32_SetEvent(a);
8308 SetFS(sel);
8309
8310 return yyrc;
8311}
8312
8313inline BOOL O32_SetFileAttributes(LPCSTR a, DWORD b)
8314{
8315 BOOL yyrc;
8316 USHORT sel = RestoreOS2FS();
8317
8318 yyrc = _O32_SetFileAttributes(a, b);
8319 SetFS(sel);
8320
8321 return yyrc;
8322}
8323
8324inline DWORD O32_SetFilePointer(HANDLE a, LONG b, PLONG c, DWORD d)
8325{
8326 DWORD yyrc;
8327 USHORT sel = RestoreOS2FS();
8328
8329 yyrc = _O32_SetFilePointer(a, b, c, d);
8330 SetFS(sel);
8331
8332 return yyrc;
8333}
8334
8335inline BOOL O32_SetFileTime(HANDLE a, CONST FILETIME *b, CONST FILETIME *c, CONST FILETIME *d)
8336{
8337 BOOL yyrc;
8338 USHORT sel = RestoreOS2FS();
8339
8340 yyrc = _O32_SetFileTime(a, b, c, d);
8341 SetFS(sel);
8342
8343 return yyrc;
8344}
8345
8346inline HWND O32_SetFocus(HWND a)
8347{
8348 HWND yyrc;
8349 USHORT sel = RestoreOS2FS();
8350
8351 yyrc = _O32_SetFocus(a);
8352 SetFS(sel);
8353
8354 return yyrc;
8355}
8356
8357inline BOOL O32_SetForegroundWindow(HWND a)
8358{
8359 BOOL yyrc;
8360 USHORT sel = RestoreOS2FS();
8361
8362 yyrc = _O32_SetForegroundWindow(a);
8363 SetFS(sel);
8364
8365 return yyrc;
8366}
8367
8368inline int O32_SetGraphicsMode(HDC a, int b)
8369{
8370 int yyrc;
8371 USHORT sel = RestoreOS2FS();
8372
8373 yyrc = _O32_SetGraphicsMode(a, b);
8374 SetFS(sel);
8375
8376 return yyrc;
8377}
8378
8379inline UINT O32_SetHandleCount(UINT a)
8380{
8381 UINT yyrc;
8382 USHORT sel = RestoreOS2FS();
8383
8384 yyrc = _O32_SetHandleCount(a);
8385 SetFS(sel);
8386
8387 return yyrc;
8388}
8389
8390inline VOID O32_SetLastError(DWORD a)
8391{
8392 USHORT sel = RestoreOS2FS();
8393
8394 _O32_SetLastError(a);
8395 SetFS(sel);
8396}
8397
8398inline BOOL O32_SetLocalTime(CONST SYSTEMTIME *a)
8399{
8400 BOOL yyrc;
8401 USHORT sel = RestoreOS2FS();
8402
8403 yyrc = _O32_SetLocalTime(a);
8404 SetFS(sel);
8405
8406 return yyrc;
8407}
8408
8409inline int O32_SetMapMode(HDC a, int b)
8410{
8411 int yyrc;
8412 USHORT sel = RestoreOS2FS();
8413
8414 yyrc = _O32_SetMapMode(a, b);
8415 SetFS(sel);
8416
8417 return yyrc;
8418}
8419
8420inline DWORD O32_SetMapperFlags(HDC a, DWORD b)
8421{
8422 DWORD yyrc;
8423 USHORT sel = RestoreOS2FS();
8424
8425 yyrc = _O32_SetMapperFlags(a, b);
8426 SetFS(sel);
8427
8428 return yyrc;
8429}
8430
8431inline BOOL O32_SetMenu(HWND a, HMENU b)
8432{
8433 BOOL yyrc;
8434 USHORT sel = RestoreOS2FS();
8435
8436 yyrc = _O32_SetMenu(a, b);
8437 SetFS(sel);
8438
8439 return yyrc;
8440}
8441
8442inline BOOL O32_SetMenuItemBitmaps(HMENU a, UINT b, UINT c, HBITMAP d, HBITMAP e)
8443{
8444 BOOL yyrc;
8445 USHORT sel = RestoreOS2FS();
8446
8447 yyrc = _O32_SetMenuItemBitmaps(a, b, c, d, e);
8448 SetFS(sel);
8449
8450 return yyrc;
8451}
8452
8453inline HMETAFILE O32_SetMetaFileBitsEx(UINT a, PBYTE b)
8454{
8455 HMETAFILE yyrc;
8456 USHORT sel = RestoreOS2FS();
8457
8458 yyrc = _O32_SetMetaFileBitsEx(a, b);
8459 SetFS(sel);
8460
8461 return yyrc;
8462}
8463
8464inline BOOL O32_SetMiterLimit(HDC a, float b, float *c)
8465{
8466 BOOL yyrc;
8467 USHORT sel = RestoreOS2FS();
8468
8469 yyrc = _O32_SetMiterLimit(a, b, c);
8470 SetFS(sel);
8471
8472 return yyrc;
8473}
8474
8475inline UINT O32_SetPaletteEntries(HPALETTE a, UINT b, UINT c, CONST PALETTEENTRY *d)
8476{
8477 UINT yyrc;
8478 USHORT sel = RestoreOS2FS();
8479
8480 yyrc = _O32_SetPaletteEntries(a, b, c, d);
8481 SetFS(sel);
8482
8483 return yyrc;
8484}
8485
8486inline HWND O32_SetParent(HWND a, HWND b)
8487{
8488 HWND yyrc;
8489 USHORT sel = RestoreOS2FS();
8490
8491 yyrc = _O32_SetParent(a, b);
8492 SetFS(sel);
8493
8494 return yyrc;
8495}
8496
8497inline COLORREF O32_SetPixel(HDC a, int b, int c, COLORREF d)
8498{
8499 COLORREF yyrc;
8500 USHORT sel = RestoreOS2FS();
8501
8502 yyrc = _O32_SetPixel(a, b, c, d);
8503 SetFS(sel);
8504
8505 return yyrc;
8506}
8507
8508inline int O32_SetPolyFillMode(HDC a, int b)
8509{
8510 int yyrc;
8511 USHORT sel = RestoreOS2FS();
8512
8513 yyrc = _O32_SetPolyFillMode(a, b);
8514 SetFS(sel);
8515
8516 return yyrc;
8517}
8518
8519inline BOOL O32_SetPriorityClass(HANDLE a, DWORD b)
8520{
8521 BOOL yyrc;
8522 USHORT sel = RestoreOS2FS();
8523
8524 yyrc = _O32_SetPriorityClass(a, b);
8525 SetFS(sel);
8526
8527 return yyrc;
8528}
8529
8530inline BOOL O32_SetProp(HWND a, LPCSTR b, HANDLE c)
8531{
8532 BOOL yyrc;
8533 USHORT sel = RestoreOS2FS();
8534
8535 yyrc = _O32_SetProp(a, b, c);
8536 SetFS(sel);
8537
8538 return yyrc;
8539}
8540
8541inline BOOL O32_SetRect(PRECT a, int b, int c, int d, int e)
8542{
8543 BOOL yyrc;
8544 USHORT sel = RestoreOS2FS();
8545
8546 yyrc = _O32_SetRect(a, b, c, d, e);
8547 SetFS(sel);
8548
8549 return yyrc;
8550}
8551
8552inline BOOL O32_SetRectEmpty(PRECT a)
8553{
8554 BOOL yyrc;
8555 USHORT sel = RestoreOS2FS();
8556
8557 yyrc = _O32_SetRectEmpty(a);
8558 SetFS(sel);
8559
8560 return yyrc;
8561}
8562
8563inline BOOL O32_SetRectRgn(HRGN a, int b, int c, int d, int e)
8564{
8565 BOOL yyrc;
8566 USHORT sel = RestoreOS2FS();
8567
8568 yyrc = _O32_SetRectRgn(a, b, c, d, e);
8569 SetFS(sel);
8570
8571 return yyrc;
8572}
8573
8574inline int O32_SetROP2(HDC a, int b)
8575{
8576 int yyrc;
8577 USHORT sel = RestoreOS2FS();
8578
8579 yyrc = _O32_SetROP2(a, b);
8580 SetFS(sel);
8581
8582 return yyrc;
8583}
8584
8585inline int O32_SetScrollPos(HWND a, int b, int c, BOOL d)
8586{
8587 int yyrc;
8588 USHORT sel = RestoreOS2FS();
8589
8590 yyrc = _O32_SetScrollPos(a, b, c, d);
8591 SetFS(sel);
8592
8593 return yyrc;
8594}
8595
8596inline BOOL O32_SetScrollRange(HWND a, int b, int c, int d, BOOL e)
8597{
8598 BOOL yyrc;
8599 USHORT sel = RestoreOS2FS();
8600
8601 yyrc = _O32_SetScrollRange(a, b, c, d, e);
8602 SetFS(sel);
8603
8604 return yyrc;
8605}
8606
8607inline BOOL O32_SetStdHandle(DWORD a, HANDLE b)
8608{
8609 BOOL yyrc;
8610 USHORT sel = RestoreOS2FS();
8611
8612 yyrc = _O32_SetStdHandle(a, b);
8613 SetFS(sel);
8614
8615 return yyrc;
8616}
8617
8618inline int O32_SetStretchBltMode(HDC a, int b)
8619{
8620 int yyrc;
8621 USHORT sel = RestoreOS2FS();
8622
8623 yyrc = _O32_SetStretchBltMode(a, b);
8624 SetFS(sel);
8625
8626 return yyrc;
8627}
8628
8629inline UINT O32_SetSysColors(int a, CONST int *b, CONST COLORREF *c)
8630{
8631 UINT yyrc;
8632 USHORT sel = RestoreOS2FS();
8633
8634 yyrc = _O32_SetSysColors(a, b, c);
8635 SetFS(sel);
8636
8637 return yyrc;
8638}
8639
8640inline BOOL O32_SetSystemTime(CONST SYSTEMTIME *a)
8641{
8642 BOOL yyrc;
8643 USHORT sel = RestoreOS2FS();
8644
8645 yyrc = _O32_SetSystemTime(a);
8646 SetFS(sel);
8647
8648 return yyrc;
8649}
8650
8651inline BOOL O32_SetTimeZoneInformation(CONST TIME_ZONE_INFORMATION *a)
8652{
8653 BOOL yyrc;
8654 USHORT sel = RestoreOS2FS();
8655
8656 yyrc = _O32_SetTimeZoneInformation(a);
8657 SetFS(sel);
8658
8659 return yyrc;
8660}
8661
8662inline UINT O32_SetTextAlign(HDC a, UINT b)
8663{
8664 UINT yyrc;
8665 USHORT sel = RestoreOS2FS();
8666
8667 yyrc = _O32_SetTextAlign(a, b);
8668 SetFS(sel);
8669
8670 return yyrc;
8671}
8672
8673inline int O32_SetTextCharacterExtra(HDC a, int b)
8674{
8675 int yyrc;
8676 USHORT sel = RestoreOS2FS();
8677
8678 yyrc = _O32_SetTextCharacterExtra(a, b);
8679 SetFS(sel);
8680
8681 return yyrc;
8682}
8683
8684inline COLORREF O32_SetTextColor(HDC a, COLORREF b)
8685{
8686 COLORREF yyrc;
8687 USHORT sel = RestoreOS2FS();
8688
8689 yyrc = _O32_SetTextColor(a, b);
8690 SetFS(sel);
8691
8692 return yyrc;
8693}
8694
8695inline BOOL O32_SetTextJustification(HDC a, int b, int c)
8696{
8697 BOOL yyrc;
8698 USHORT sel = RestoreOS2FS();
8699
8700 yyrc = _O32_SetTextJustification(a, b, c);
8701 SetFS(sel);
8702
8703 return yyrc;
8704}
8705
8706inline BOOL O32_SetThreadPriority(HANDLE a, int b)
8707{
8708 BOOL yyrc;
8709 USHORT sel = RestoreOS2FS();
8710
8711 yyrc = _O32_SetThreadPriority(a, b);
8712 SetFS(sel);
8713
8714 return yyrc;
8715}
8716
8717inline UINT O32_SetTimer(HWND a, UINT b, UINT c, TIMERPROC_O32 d)
8718{
8719 UINT yyrc;
8720 USHORT sel = RestoreOS2FS();
8721
8722 yyrc = _O32_SetTimer(a, b, c, d);
8723 SetFS(sel);
8724
8725 return yyrc;
8726}
8727
8728inline BOOL O32_SetViewportExtEx(HDC a, int b, int c, PSIZE d)
8729{
8730 BOOL yyrc;
8731 USHORT sel = RestoreOS2FS();
8732
8733 yyrc = _O32_SetViewportExtEx(a, b, c, d);
8734 SetFS(sel);
8735
8736 return yyrc;
8737}
8738
8739inline BOOL O32_SetViewportOrgEx(HDC a, int b, int c, PPOINT d)
8740{
8741 BOOL yyrc;
8742 USHORT sel = RestoreOS2FS();
8743
8744 yyrc = _O32_SetViewportOrgEx(a, b, c, d);
8745 SetFS(sel);
8746
8747 return yyrc;
8748}
8749
8750inline BOOL O32_SetVolumeLabel(LPCSTR a, LPCSTR b)
8751{
8752 BOOL yyrc;
8753 USHORT sel = RestoreOS2FS();
8754
8755 yyrc = _O32_SetVolumeLabel(a, b);
8756 SetFS(sel);
8757
8758 return yyrc;
8759}
8760
8761inline BOOL O32_SetWindowExtEx(HDC a, int b, int c, PSIZE d)
8762{
8763 BOOL yyrc;
8764 USHORT sel = RestoreOS2FS();
8765
8766 yyrc = _O32_SetWindowExtEx(a, b, c, d);
8767 SetFS(sel);
8768
8769 return yyrc;
8770}
8771
8772inline LONG O32_SetWindowLong(HWND a, int b, LONG c)
8773{
8774 LONG yyrc;
8775 USHORT sel = RestoreOS2FS();
8776
8777 yyrc = _O32_SetWindowLong(a, b, c);
8778 SetFS(sel);
8779
8780 return yyrc;
8781}
8782
8783inline BOOL O32_SetWindowOrgEx(HDC a, int b, int c, PPOINT d)
8784{
8785 BOOL yyrc;
8786 USHORT sel = RestoreOS2FS();
8787
8788 yyrc = _O32_SetWindowOrgEx(a, b, c, d);
8789 SetFS(sel);
8790
8791 return yyrc;
8792}
8793
8794inline BOOL O32_SetWindowPlacement(HWND a, CONST WINDOWPLACEMENT *b)
8795{
8796 BOOL yyrc;
8797 USHORT sel = RestoreOS2FS();
8798
8799 yyrc = _O32_SetWindowPlacement(a, b);
8800 SetFS(sel);
8801
8802 return yyrc;
8803}
8804
8805inline BOOL O32_SetWindowPos(HWND a, HWND b, int c, int d, int e, int f, UINT g)
8806{
8807 BOOL yyrc;
8808 USHORT sel = RestoreOS2FS();
8809
8810 yyrc = _O32_SetWindowPos(a, b, c, d, e, f, g);
8811 SetFS(sel);
8812
8813 return yyrc;
8814}
8815
8816inline HHOOK O32_SetWindowsHookEx(int a, HOOKPROC_O32 b, HINSTANCE c, DWORD d)
8817{
8818 HHOOK yyrc;
8819 USHORT sel = RestoreOS2FS();
8820
8821 yyrc = _O32_SetWindowsHookEx(a, b, c, d);
8822 SetFS(sel);
8823
8824 return yyrc;
8825}
8826
8827inline BOOL O32_SetWindowText(HWND a, LPCSTR b)
8828{
8829 BOOL yyrc;
8830 USHORT sel = RestoreOS2FS();
8831
8832 yyrc = _O32_SetWindowText(a, b);
8833 SetFS(sel);
8834
8835 return yyrc;
8836}
8837
8838inline WORD O32_SetWindowWord(HWND a, int b, WORD c)
8839{
8840 WORD yyrc;
8841 USHORT sel = RestoreOS2FS();
8842
8843 yyrc = _O32_SetWindowWord(a, b, c);
8844 SetFS(sel);
8845
8846 return yyrc;
8847}
8848
8849inline HENHMETAFILE O32_SetWinMetaFileBits(UINT a, CONST BYTE *b, HDC c, CONST METAFILEPICT *d)
8850{
8851 HENHMETAFILE yyrc;
8852 USHORT sel = RestoreOS2FS();
8853
8854 yyrc = _O32_SetWinMetaFileBits(a, b, c, d);
8855 SetFS(sel);
8856
8857 return yyrc;
8858}
8859
8860inline BOOL O32_SetWorldTransform(HDC a, LPXFORM b)
8861{
8862 BOOL yyrc;
8863 USHORT sel = RestoreOS2FS();
8864
8865 yyrc = _O32_SetWorldTransform(a, b);
8866 SetFS(sel);
8867
8868 return yyrc;
8869}
8870
8871inline BOOL O32_ShowCaret(HWND a)
8872{
8873 BOOL yyrc;
8874 USHORT sel = RestoreOS2FS();
8875
8876 yyrc = _O32_ShowCaret(a);
8877 SetFS(sel);
8878
8879 return yyrc;
8880}
8881
8882inline int O32_ShowCursor(BOOL a)
8883{
8884 int yyrc;
8885 USHORT sel = RestoreOS2FS();
8886
8887 yyrc = _O32_ShowCursor(a);
8888 SetFS(sel);
8889
8890 return yyrc;
8891}
8892
8893inline BOOL O32_ShowOwnedPopups(HWND a, BOOL b)
8894{
8895 BOOL yyrc;
8896 USHORT sel = RestoreOS2FS();
8897
8898 yyrc = _O32_ShowOwnedPopups(a, b);
8899 SetFS(sel);
8900
8901 return yyrc;
8902}
8903
8904inline BOOL O32_ShowScrollBar(HWND a, int b, BOOL c)
8905{
8906 BOOL yyrc;
8907 USHORT sel = RestoreOS2FS();
8908
8909 yyrc = _O32_ShowScrollBar(a, b, c);
8910 SetFS(sel);
8911
8912 return yyrc;
8913}
8914
8915inline BOOL O32_ShowWindow(HWND a, int b)
8916{
8917 BOOL yyrc;
8918 USHORT sel = RestoreOS2FS();
8919
8920 yyrc = _O32_ShowWindow(a, b);
8921 SetFS(sel);
8922
8923 return yyrc;
8924}
8925
8926inline DWORD O32_SizeofResource(HINSTANCE a, HRSRC b)
8927{
8928 DWORD yyrc;
8929 USHORT sel = RestoreOS2FS();
8930
8931 yyrc = _O32_SizeofResource(a, b);
8932 SetFS(sel);
8933
8934 return yyrc;
8935}
8936
8937inline VOID O32_Sleep(DWORD a)
8938{
8939 USHORT sel = RestoreOS2FS();
8940
8941 _O32_Sleep(a);
8942 SetFS(sel);
8943}
8944
8945inline int O32_StartDoc(HDC a, LPDOCINFOA b)
8946{
8947 int yyrc;
8948 USHORT sel = RestoreOS2FS();
8949
8950 yyrc = _O32_StartDoc(a, b);
8951 SetFS(sel);
8952
8953 return yyrc;
8954}
8955
8956inline int O32_StartPage(HDC a)
8957{
8958 int yyrc;
8959 USHORT sel = RestoreOS2FS();
8960
8961 yyrc = _O32_StartPage(a);
8962 SetFS(sel);
8963
8964 return yyrc;
8965}
8966
8967inline int O32_StretchDIBits(HDC a, int b, int c, int d, int e, int f, int g, int h, int i, void *j, PBITMAPINFO k, UINT l, DWORD m)
8968{
8969 int yyrc;
8970 USHORT sel = RestoreOS2FS();
8971
8972 yyrc = _O32_StretchDIBits(a, b, c, d, e, f, g, h, i, j, k, l, m);
8973 SetFS(sel);
8974
8975 return yyrc;
8976}
8977
8978inline BOOL O32_StretchBlt(HDC a, int b, int c, int d, int e, HDC f, int g, int h, int i, int j, DWORD k)
8979{
8980 BOOL yyrc;
8981 USHORT sel = RestoreOS2FS();
8982
8983 yyrc = _O32_StretchBlt(a, b, c, d, e, f, g, h, i, j, k);
8984 SetFS(sel);
8985
8986 return yyrc;
8987}
8988
8989inline BOOL O32_StrokeAndFillPath(HDC a)
8990{
8991 BOOL yyrc;
8992 USHORT sel = RestoreOS2FS();
8993
8994 yyrc = _O32_StrokeAndFillPath(a);
8995 SetFS(sel);
8996
8997 return yyrc;
8998}
8999
9000inline BOOL O32_StrokePath(HDC a)
9001{
9002 BOOL yyrc;
9003 USHORT sel = RestoreOS2FS();
9004
9005 yyrc = _O32_StrokePath(a);
9006 SetFS(sel);
9007
9008 return yyrc;
9009}
9010
9011inline BOOL O32_SubtractRect(PRECT a, CONST RECT *b, CONST RECT *c)
9012{
9013 BOOL yyrc;
9014 USHORT sel = RestoreOS2FS();
9015
9016 yyrc = _O32_SubtractRect(a, b, c);
9017 SetFS(sel);
9018
9019 return yyrc;
9020}
9021
9022inline DWORD O32_SuspendThread(HANDLE a)
9023{
9024 DWORD yyrc;
9025 USHORT sel = RestoreOS2FS();
9026
9027 yyrc = _O32_SuspendThread(a);
9028 SetFS(sel);
9029
9030 return yyrc;
9031}
9032
9033inline BOOL O32_SwapMouseButton(BOOL a)
9034{
9035 BOOL yyrc;
9036 USHORT sel = RestoreOS2FS();
9037
9038 yyrc = _O32_SwapMouseButton(a);
9039 SetFS(sel);
9040
9041 return yyrc;
9042}
9043
9044inline UINT O32_SystemParametersInfo(UINT a, UINT b, PVOID c, UINT d)
9045{
9046 UINT yyrc;
9047 USHORT sel = RestoreOS2FS();
9048
9049 yyrc = _O32_SystemParametersInfo(a, b, c, d);
9050 SetFS(sel);
9051
9052 return yyrc;
9053}
9054
9055inline BOOL O32_SystemTimeToFileTime(CONST SYSTEMTIME *a, FILETIME *b)
9056{
9057 BOOL yyrc;
9058 USHORT sel = RestoreOS2FS();
9059
9060 yyrc = _O32_SystemTimeToFileTime(a, b);
9061 SetFS(sel);
9062
9063 return yyrc;
9064}
9065
9066inline BOOL O32_SystemTimeToTzSpecificLocalTime(LPTIME_ZONE_INFORMATION a, LPSYSTEMTIME b, LPSYSTEMTIME c)
9067{
9068 BOOL yyrc;
9069 USHORT sel = RestoreOS2FS();
9070
9071 yyrc = _O32_SystemTimeToTzSpecificLocalTime(a, b, c);
9072 SetFS(sel);
9073
9074 return yyrc;
9075}
9076
9077inline LONG O32_TabbedTextOut(HDC a, int b, int c, LPCSTR d, int e, int f, int *g, int h)
9078{
9079 LONG yyrc;
9080 USHORT sel = RestoreOS2FS();
9081
9082 yyrc = _O32_TabbedTextOut(a, b, c, d, e, f, g, h);
9083 SetFS(sel);
9084
9085 return yyrc;
9086}
9087
9088inline BOOL O32_TerminateProcess(HANDLE a, UINT b)
9089{
9090 BOOL yyrc;
9091 USHORT sel = RestoreOS2FS();
9092
9093 yyrc = _O32_TerminateProcess(a, b);
9094 SetFS(sel);
9095
9096 return yyrc;
9097}
9098
9099inline BOOL O32_TerminateThread(HANDLE a, DWORD b)
9100{
9101 BOOL yyrc;
9102 USHORT sel = RestoreOS2FS();
9103
9104 yyrc = _O32_TerminateThread(a, b);
9105 SetFS(sel);
9106
9107 return yyrc;
9108}
9109
9110inline BOOL O32_TextOut(HDC a, int b, int c, LPCSTR d, int e)
9111{
9112 BOOL yyrc;
9113 USHORT sel = RestoreOS2FS();
9114
9115 yyrc = _O32_TextOut(a, b, c, d, e);
9116 SetFS(sel);
9117
9118 return yyrc;
9119}
9120
9121inline DWORD O32_TlsAlloc()
9122{
9123 DWORD yyrc;
9124 USHORT sel = RestoreOS2FS();
9125
9126 yyrc = _O32_TlsAlloc();
9127 SetFS(sel);
9128
9129 return yyrc;
9130}
9131
9132inline BOOL O32_TlsFree(DWORD a)
9133{
9134 BOOL yyrc;
9135 USHORT sel = RestoreOS2FS();
9136
9137 yyrc = _O32_TlsFree(a);
9138 SetFS(sel);
9139
9140 return yyrc;
9141}
9142
9143inline PVOID O32_TlsGetValue(DWORD a)
9144{
9145 PVOID yyrc;
9146 USHORT sel = RestoreOS2FS();
9147
9148 yyrc = _O32_TlsGetValue(a);
9149 SetFS(sel);
9150
9151 return yyrc;
9152}
9153
9154inline BOOL O32_TlsSetValue(DWORD a, PVOID b)
9155{
9156 BOOL yyrc;
9157 USHORT sel = RestoreOS2FS();
9158
9159 yyrc = _O32_TlsSetValue(a, b);
9160 SetFS(sel);
9161
9162 return yyrc;
9163}
9164
9165inline BOOL O32_TrackPopupMenu(HMENU a, UINT b, int c, int d, int e, HWND f, CONST RECT *g)
9166{
9167 BOOL yyrc;
9168 USHORT sel = RestoreOS2FS();
9169
9170 yyrc = _O32_TrackPopupMenu(a, b, c, d, e, f, g);
9171 SetFS(sel);
9172
9173 return yyrc;
9174}
9175
9176inline int O32_TranslateAccelerator(HWND a, HACCEL b, LPMSG c)
9177{
9178 int yyrc;
9179 USHORT sel = RestoreOS2FS();
9180
9181 yyrc = _O32_TranslateAccelerator(a, b, c);
9182 SetFS(sel);
9183
9184 return yyrc;
9185}
9186
9187inline BOOL O32_TranslateMDISysAccel(HWND a, LPMSG b)
9188{
9189 BOOL yyrc;
9190 USHORT sel = RestoreOS2FS();
9191
9192 yyrc = _O32_TranslateMDISysAccel(a, b);
9193 SetFS(sel);
9194
9195 return yyrc;
9196}
9197
9198inline BOOL O32_TranslateMessage(CONST MSG *a)
9199{
9200 BOOL yyrc;
9201 USHORT sel = RestoreOS2FS();
9202
9203 yyrc = _O32_TranslateMessage(a);
9204 SetFS(sel);
9205
9206 return yyrc;
9207}
9208
9209inline BOOL O32_UnhookWindowsHookEx(HHOOK a)
9210{
9211 BOOL yyrc;
9212 USHORT sel = RestoreOS2FS();
9213
9214 yyrc = _O32_UnhookWindowsHookEx(a);
9215 SetFS(sel);
9216
9217 return yyrc;
9218}
9219
9220inline BOOL O32_UnionRect(PRECT a, CONST RECT *b, CONST RECT *c)
9221{
9222 BOOL yyrc;
9223 USHORT sel = RestoreOS2FS();
9224
9225 yyrc = _O32_UnionRect(a, b, c);
9226 SetFS(sel);
9227
9228 return yyrc;
9229}
9230
9231inline BOOL O32_UnlockFile(HANDLE a, DWORD b, DWORD c, DWORD d, DWORD e)
9232{
9233 BOOL yyrc;
9234 USHORT sel = RestoreOS2FS();
9235
9236 yyrc = _O32_UnlockFile(a, b, c, d, e);
9237 SetFS(sel);
9238
9239 return yyrc;
9240}
9241
9242inline BOOL O32_UnpackDDElParam(UINT a, LONG b, PUINT c, PUINT d)
9243{
9244 BOOL yyrc;
9245 USHORT sel = RestoreOS2FS();
9246
9247 yyrc = _O32_UnpackDDElParam(a, b, c, d);
9248 SetFS(sel);
9249
9250 return yyrc;
9251}
9252
9253inline BOOL O32_UnrealizeObject(HGDIOBJ a)
9254{
9255 BOOL yyrc;
9256 USHORT sel = RestoreOS2FS();
9257
9258 yyrc = _O32_UnrealizeObject(a);
9259 SetFS(sel);
9260
9261 return yyrc;
9262}
9263
9264inline BOOL O32_UnregisterClass(LPCSTR a, HINSTANCE b)
9265{
9266 BOOL yyrc;
9267 USHORT sel = RestoreOS2FS();
9268
9269 yyrc = _O32_UnregisterClass(a, b);
9270 SetFS(sel);
9271
9272 return yyrc;
9273}
9274
9275inline BOOL O32_UpdateWindow(HWND a)
9276{
9277 BOOL yyrc;
9278 USHORT sel = RestoreOS2FS();
9279
9280 yyrc = _O32_UpdateWindow(a);
9281 SetFS(sel);
9282
9283 return yyrc;
9284}
9285
9286inline BOOL O32_ValidateRect(HWND a, CONST RECT *b)
9287{
9288 BOOL yyrc;
9289 USHORT sel = RestoreOS2FS();
9290
9291 yyrc = _O32_ValidateRect(a, b);
9292 SetFS(sel);
9293
9294 return yyrc;
9295}
9296
9297inline BOOL O32_ValidateRgn(HWND a, HRGN b)
9298{
9299 BOOL yyrc;
9300 USHORT sel = RestoreOS2FS();
9301
9302 yyrc = _O32_ValidateRgn(a, b);
9303 SetFS(sel);
9304
9305 return yyrc;
9306}
9307
9308inline SHORT O32_VkKeyScan(char a)
9309{
9310 SHORT yyrc;
9311 USHORT sel = RestoreOS2FS();
9312
9313 yyrc = _O32_VkKeyScan(a);
9314 SetFS(sel);
9315
9316 return yyrc;
9317}
9318
9319inline DWORD O32_WaitForMultipleObjects(DWORD a, CONST HANDLE *b, BOOL c, DWORD d)
9320{
9321 DWORD yyrc;
9322 USHORT sel = RestoreOS2FS();
9323
9324 yyrc = _O32_WaitForMultipleObjects(a, b, c, d);
9325 SetFS(sel);
9326
9327 return yyrc;
9328}
9329
9330inline DWORD O32_WaitForSingleObject(HANDLE a, DWORD b)
9331{
9332 DWORD yyrc;
9333 USHORT sel = RestoreOS2FS();
9334
9335 yyrc = _O32_WaitForSingleObject(a, b);
9336 SetFS(sel);
9337
9338 return yyrc;
9339}
9340
9341inline BOOL O32_WaitMessage()
9342{
9343 BOOL yyrc;
9344 USHORT sel = RestoreOS2FS();
9345
9346 yyrc = _O32_WaitMessage();
9347 SetFS(sel);
9348
9349 return yyrc;
9350}
9351
9352inline BOOL O32_WidenPath(HDC a)
9353{
9354 BOOL yyrc;
9355 USHORT sel = RestoreOS2FS();
9356
9357 yyrc = _O32_WidenPath(a);
9358 SetFS(sel);
9359
9360 return yyrc;
9361}
9362
9363inline UINT O32_WinExec(LPCSTR a, UINT b)
9364{
9365 UINT yyrc;
9366 USHORT sel = RestoreOS2FS();
9367
9368 yyrc = _O32_WinExec(a, b);
9369 SetFS(sel);
9370
9371 return yyrc;
9372}
9373
9374inline BOOL O32_WinHelp(HWND a, LPCSTR b, UINT c, DWORD d)
9375{
9376 BOOL yyrc;
9377 USHORT sel = RestoreOS2FS();
9378
9379 yyrc = _O32_WinHelp(a, b, c, d);
9380 SetFS(sel);
9381
9382 return yyrc;
9383}
9384
9385inline HWND O32_WindowFromPoint(POINT a)
9386{
9387 HWND yyrc;
9388 USHORT sel = RestoreOS2FS();
9389
9390 yyrc = _O32_WindowFromPoint(a);
9391 SetFS(sel);
9392
9393 return yyrc;
9394}
9395
9396inline HWND O32_WindowFromDC(HDC a)
9397{
9398 HWND yyrc;
9399 USHORT sel = RestoreOS2FS();
9400
9401 yyrc = _O32_WindowFromDC(a);
9402 SetFS(sel);
9403
9404 return yyrc;
9405}
9406
9407inline BOOL O32_WriteFile(HANDLE a, CONST VOID *b, DWORD c, PDWORD d, LPOVERLAPPED e)
9408{
9409 BOOL yyrc;
9410 USHORT sel = RestoreOS2FS();
9411
9412 yyrc = _O32_WriteFile(a, b, c, d, e);
9413 SetFS(sel);
9414
9415 return yyrc;
9416}
9417
9418inline BOOL O32_WritePrivateProfileString(LPCSTR a, LPCSTR b, LPCSTR c, LPCSTR d)
9419{
9420 BOOL yyrc;
9421 USHORT sel = RestoreOS2FS();
9422
9423 yyrc = _O32_WritePrivateProfileString(a, b, c, d);
9424 SetFS(sel);
9425
9426 return yyrc;
9427}
9428
9429inline BOOL O32_WriteProfileString(LPCSTR a, LPCSTR b, LPCSTR c)
9430{
9431 BOOL yyrc;
9432 USHORT sel = RestoreOS2FS();
9433
9434 yyrc = _O32_WriteProfileString(a, b, c);
9435 SetFS(sel);
9436
9437 return yyrc;
9438}
9439
9440inline VOID O32_ZeroMemory(PVOID a, DWORD b)
9441{
9442 USHORT sel = RestoreOS2FS();
9443
9444 _O32_ZeroMemory(a, b);
9445 SetFS(sel);
9446}
9447
9448inline HFILE O32__lclose(HFILE a)
9449{
9450 HFILE yyrc;
9451 USHORT sel = RestoreOS2FS();
9452
9453 yyrc = _O32__lclose(a);
9454 SetFS(sel);
9455
9456 return yyrc;
9457}
9458
9459inline HFILE O32__lcreat(LPCSTR a, int b)
9460{
9461 HFILE yyrc;
9462 USHORT sel = RestoreOS2FS();
9463
9464 yyrc = _O32__lcreat(a, b);
9465 SetFS(sel);
9466
9467 return yyrc;
9468}
9469
9470inline HFILE O32__lopen(LPCSTR a, int b)
9471{
9472 HFILE yyrc;
9473 USHORT sel = RestoreOS2FS();
9474
9475 yyrc = _O32__lopen(a, b);
9476 SetFS(sel);
9477
9478 return yyrc;
9479}
9480
9481inline UINT O32__lread(HFILE a, PVOID b, UINT c)
9482{
9483 UINT yyrc;
9484 USHORT sel = RestoreOS2FS();
9485
9486 yyrc = _O32__lread(a, b, c);
9487 SetFS(sel);
9488
9489 return yyrc;
9490}
9491
9492inline LONG O32__llseek(HFILE a, LONG b, int c)
9493{
9494 LONG yyrc;
9495 USHORT sel = RestoreOS2FS();
9496
9497 yyrc = _O32__llseek(a, b, c);
9498 SetFS(sel);
9499
9500 return yyrc;
9501}
9502
9503inline UINT O32__lwrite(HFILE a, CONST VOID *b, UINT c)
9504{
9505 UINT yyrc;
9506 USHORT sel = RestoreOS2FS();
9507
9508 yyrc = _O32__lwrite(a, b, c);
9509 SetFS(sel);
9510
9511 return yyrc;
9512}
9513
9514inline DWORD O32_timeGetSystemTime(LPMMTIME a, UINT b)
9515{
9516 DWORD yyrc;
9517 USHORT sel = RestoreOS2FS();
9518
9519 yyrc = _O32_timeGetSystemTime(a, b);
9520 SetFS(sel);
9521
9522 return yyrc;
9523}
9524
9525inline DWORD O32_timeGetTime()
9526{
9527 DWORD yyrc;
9528 USHORT sel = RestoreOS2FS();
9529
9530 yyrc = _O32_timeGetTime();
9531 SetFS(sel);
9532
9533 return yyrc;
9534}
9535
9536inline int O32_wvsprintf(LPSTR a, LPCSTR b, CONST VOID *c)
9537{
9538 int yyrc;
9539 USHORT sel = RestoreOS2FS();
9540
9541 yyrc = _O32_wvsprintf(a, b, c);
9542 SetFS(sel);
9543
9544 return yyrc;
9545}
9546
9547inline LPSTR O32_CharNext(LPCSTR a)
9548{
9549 LPSTR yyrc;
9550 USHORT sel = RestoreOS2FS();
9551
9552 yyrc = _O32_CharNext(a);
9553 SetFS(sel);
9554
9555 return yyrc;
9556}
9557
9558inline LPSTR O32_CharPrev(LPCSTR a, LPCSTR b)
9559{
9560 LPSTR yyrc;
9561 USHORT sel = RestoreOS2FS();
9562
9563 yyrc = _O32_CharPrev(a, b);
9564 SetFS(sel);
9565
9566 return yyrc;
9567}
9568
9569inline HWND O32_GetDesktopWindow()
9570{
9571 HWND yyrc;
9572 USHORT sel = RestoreOS2FS();
9573
9574 yyrc = _O32_GetDesktopWindow();
9575 SetFS(sel);
9576
9577 return yyrc;
9578}
9579
9580inline BOOL O32_CharToOem(LPCSTR a, LPSTR b)
9581{
9582 BOOL yyrc;
9583 USHORT sel = RestoreOS2FS();
9584
9585 yyrc = _O32_CharToOem(a, b);
9586 SetFS(sel);
9587
9588 return yyrc;
9589}
9590
9591inline BOOL O32_OemToChar(LPCSTR a, LPSTR b)
9592{
9593 BOOL yyrc;
9594 USHORT sel = RestoreOS2FS();
9595
9596 yyrc = _O32_OemToChar(a, b);
9597 SetFS(sel);
9598
9599 return yyrc;
9600}
9601
9602inline BOOL O32_CharToOemBuff(LPCSTR a, LPSTR b, DWORD c)
9603{
9604 BOOL yyrc;
9605 USHORT sel = RestoreOS2FS();
9606
9607 yyrc = _O32_CharToOemBuff(a, b, c);
9608 SetFS(sel);
9609
9610 return yyrc;
9611}
9612
9613inline BOOL O32_OemToCharBuff(LPCSTR a, LPSTR b, DWORD c)
9614{
9615 BOOL yyrc;
9616 USHORT sel = RestoreOS2FS();
9617
9618 yyrc = _O32_OemToCharBuff(a, b, c);
9619 SetFS(sel);
9620
9621 return yyrc;
9622}
9623
9624inline BOOL O32_IsBadHugeReadPtr(CONST void *a, UINT b)
9625{
9626 BOOL yyrc;
9627 USHORT sel = RestoreOS2FS();
9628
9629 yyrc = _O32_IsBadHugeReadPtr(a, b);
9630 SetFS(sel);
9631
9632 return yyrc;
9633}
9634
9635inline BOOL O32_IsBadHugeWritePtr(PVOID a, UINT b)
9636{
9637 BOOL yyrc;
9638 USHORT sel = RestoreOS2FS();
9639
9640 yyrc = _O32_IsBadHugeWritePtr(a, b);
9641 SetFS(sel);
9642
9643 return yyrc;
9644}
9645
9646inline BOOL O32_FloodFill(HDC a, int b, int c, COLORREF d)
9647{
9648 BOOL yyrc;
9649 USHORT sel = RestoreOS2FS();
9650
9651 yyrc = _O32_FloodFill(a, b, c, d);
9652 SetFS(sel);
9653
9654 return yyrc;
9655}
9656
9657inline BOOL O32_IsCharAlpha(WCHAR a)
9658{
9659 BOOL yyrc;
9660 USHORT sel = RestoreOS2FS();
9661
9662 yyrc = _O32_IsCharAlpha(a);
9663 SetFS(sel);
9664
9665 return yyrc;
9666}
9667
9668inline BOOL O32_IsCharAlphaNumeric(WCHAR a)
9669{
9670 BOOL yyrc;
9671 USHORT sel = RestoreOS2FS();
9672
9673 yyrc = _O32_IsCharAlphaNumeric(a);
9674 SetFS(sel);
9675
9676 return yyrc;
9677}
9678
9679inline BOOL O32_IsCharLower(WCHAR a)
9680{
9681 BOOL yyrc;
9682 USHORT sel = RestoreOS2FS();
9683
9684 yyrc = _O32_IsCharLower(a);
9685 SetFS(sel);
9686
9687 return yyrc;
9688}
9689
9690inline BOOL O32_IsCharUpper(WCHAR a)
9691{
9692 BOOL yyrc;
9693 USHORT sel = RestoreOS2FS();
9694
9695 yyrc = _O32_IsCharUpper(a);
9696 SetFS(sel);
9697
9698 return yyrc;
9699}
9700
9701inline LPSTR O32_lstrcat(LPSTR a, LPCSTR b)
9702{
9703 LPSTR yyrc;
9704 USHORT sel = RestoreOS2FS();
9705
9706 yyrc = _O32_lstrcat(a, b);
9707 SetFS(sel);
9708
9709 return yyrc;
9710}
9711
9712inline int O32_lstrcmp(LPCSTR a, LPCSTR b)
9713{
9714 int yyrc;
9715 USHORT sel = RestoreOS2FS();
9716
9717 yyrc = _O32_lstrcmp(a, b);
9718 SetFS(sel);
9719
9720 return yyrc;
9721}
9722
9723inline int O32_lstrcmpi(LPCSTR a, LPCSTR b)
9724{
9725 int yyrc;
9726 USHORT sel = RestoreOS2FS();
9727
9728 yyrc = _O32_lstrcmpi(a, b);
9729 SetFS(sel);
9730
9731 return yyrc;
9732}
9733
9734inline LPSTR O32_lstrcpy(LPSTR a, LPCSTR b)
9735{
9736 LPSTR yyrc;
9737 USHORT sel = RestoreOS2FS();
9738
9739 yyrc = _O32_lstrcpy(a, b);
9740 SetFS(sel);
9741
9742 return yyrc;
9743}
9744
9745inline int O32_lstrlen(LPCSTR a)
9746{
9747 int yyrc;
9748 USHORT sel = RestoreOS2FS();
9749
9750 yyrc = _O32_lstrlen(a);
9751 SetFS(sel);
9752
9753 return yyrc;
9754}
9755
9756inline int O32_WinCallWinMain(int a, char **b, FNMAIN_O32 c, int d)
9757{
9758 int yyrc;
9759 USHORT sel = RestoreOS2FS();
9760
9761 yyrc = _O32_WinCallWinMain(a, b, c, d);
9762 SetFS(sel);
9763
9764 return yyrc;
9765}
9766
9767inline BOOL O32_WinTranslateDevicePoints(HDC a, HWND b, PPOINT c, INT d, XLATEDIR e)
9768{
9769 BOOL yyrc;
9770 USHORT sel = RestoreOS2FS();
9771
9772 yyrc = _O32_WinTranslateDevicePoints(a, b, c, d, e);
9773 SetFS(sel);
9774
9775 return yyrc;
9776}
9777
9778inline BOOL O32_WinTranslateDeviceRects(HDC a, HWND b, PRECT c, INT d, XLATEDIR e)
9779{
9780 BOOL yyrc;
9781 USHORT sel = RestoreOS2FS();
9782
9783 yyrc = _O32_WinTranslateDeviceRects(a, b, c, d, e);
9784 SetFS(sel);
9785
9786 return yyrc;
9787}
9788
9789inline ULONG O32_WinTranslateGraphicsObjectHandle(HGDIOBJ a, XLATEDIR b, ULONG c)
9790{
9791 ULONG yyrc;
9792 USHORT sel = RestoreOS2FS();
9793
9794 yyrc = _O32_WinTranslateGraphicsObjectHandle(a, b, c);
9795 SetFS(sel);
9796
9797 return yyrc;
9798}
9799
9800inline ULONG O32_WinTranslateMnemonicString(LPCSTR a, LPSTR *b, ULONG c, XLATEDIR d)
9801{
9802 ULONG yyrc;
9803 USHORT sel = RestoreOS2FS();
9804
9805 yyrc = _O32_WinTranslateMnemonicString(a, b, c, d);
9806 SetFS(sel);
9807
9808 return yyrc;
9809}
9810
9811inline DWORD O32_WinQueryTranslateMode()
9812{
9813 DWORD yyrc;
9814 USHORT sel = RestoreOS2FS();
9815
9816 yyrc = _O32_WinQueryTranslateMode();
9817 SetFS(sel);
9818
9819 return yyrc;
9820}
9821
9822inline BOOL O32_WinSetTranslateMode(DWORD a)
9823{
9824 BOOL yyrc;
9825 USHORT sel = RestoreOS2FS();
9826
9827 yyrc = _O32_WinSetTranslateMode(a);
9828 SetFS(sel);
9829
9830 return yyrc;
9831}
9832
9833inline DWORD O32_WaitForInputIdle(HANDLE hProcess, DWORD dwTimeOut)
9834{
9835 DWORD yyrc;
9836 USHORT sel = RestoreOS2FS();
9837
9838 yyrc = _O32_WaitForInputIdle(hProcess, dwTimeOut);
9839 SetFS(sel);
9840
9841 return yyrc;
9842}
9843
9844#endif /* ifdef _OS2WIN_H */
Note: See TracBrowser for help on using the repository browser.