source: trunk/include/OS2WIN.H@ 2694

Last change on this file since 2694 was 2694, checked in by sandervl, 26 years ago

YD: header updates + added WaitForInputIdle

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