Changeset 873


Ignore:
Timestamp:
Jun 30, 2011, 12:36:31 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

general: Restore the FPU Control Word completely after making Win and Gpi calls known to unexpectedly change it, as there are Qt applications relying on other bits as well. Closes #222.

Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/mkspecs/os2-g++/API_FPU_CW_Wrappers.h

    r430 r873  
    1515#define API_FPU_CW_WRAPPERS_H
    1616
    17 inline void __FPU_CW_Restore()
    18 {
    19     asm("pushl %%eax\n\t"       /* Dummy for storing control word */
    20         "fstcw 0(%%esp)\n\t"    /* Store control word into memory */
    21         "orw $5, 0(%%esp)\n\t"  /* Set EM_INVALID (0x1) | EM_ZERODIVIDE (0x4) */
    22         "fldcw 0(%%esp)\n\t"    /* Load control word back */
    23         "popl %%eax\n\t"
    24         ::: "eax");
    25 }
    26 
    27 inline BOOL APIENTRY __FPU_CW_WinCancelShutdown (HMQ hmq, BOOL fCancelAlways)
    28 {
     17extern inline unsigned int __FPU_CW_Get (void)
     18{
     19    unsigned int cw;
     20    asm volatile ("fstcw %0" : "=m" (cw));
     21    return cw;
     22}
     23
     24extern inline void __FPU_CW_Set (unsigned int cw)
     25{
     26    asm volatile ("fldcw %0" : : "m" (cw));
     27}
     28
     29extern inline BOOL APIENTRY __FPU_CW_WinCancelShutdown (HMQ hmq, BOOL fCancelAlways)
     30{
     31    unsigned int cw = __FPU_CW_Get();
    2932    BOOL ret = WinCancelShutdown (hmq, fCancelAlways);
    30     __FPU_CW_Restore();
     33    __FPU_CW_Set(cw);
    3134    return ret;
    3235}
    3336#define WinCancelShutdown __FPU_CW_WinCancelShutdown
    3437
    35 inline HMQ APIENTRY __FPU_CW_WinCreateMsgQueue (HAB hab, LONG cmsg)
    36 {
     38extern inline HMQ APIENTRY __FPU_CW_WinCreateMsgQueue (HAB hab, LONG cmsg)
     39{
     40    unsigned int cw = __FPU_CW_Get();
    3741    HMQ ret = WinCreateMsgQueue (hab, cmsg);
    38     __FPU_CW_Restore();
     42    __FPU_CW_Set(cw);
    3943    return ret;
    4044}
    4145#define WinCreateMsgQueue __FPU_CW_WinCreateMsgQueue
    4246
    43 inline BOOL APIENTRY __FPU_CW_WinDestroyMsgQueue (HMQ hmq)
    44 {
     47extern inline BOOL APIENTRY __FPU_CW_WinDestroyMsgQueue (HMQ hmq)
     48{
     49    unsigned int cw = __FPU_CW_Get();
    4550    BOOL ret = WinDestroyMsgQueue (hmq);
    46     __FPU_CW_Restore();
     51    __FPU_CW_Set(cw);
    4752    return ret;
    4853}
    4954#define WinDestroyMsgQueue __FPU_CW_WinDestroyMsgQueue
    5055
    51 inline MRESULT APIENTRY __FPU_CW_WinDispatchMsg (HAB hab, PQMSG pqmsg)
    52 {
     56extern inline MRESULT APIENTRY __FPU_CW_WinDispatchMsg (HAB hab, PQMSG pqmsg)
     57{
     58    unsigned int cw = __FPU_CW_Get();
    5359    MRESULT ret = WinDispatchMsg (hab, pqmsg);
    54     __FPU_CW_Restore();
     60    __FPU_CW_Set(cw);
    5561    return ret;
    5662}
    5763#define WinDispatchMsg __FPU_CW_WinDispatchMsg
    5864
    59 inline BOOL APIENTRY __FPU_CW_WinGetMsg (HAB hab, PQMSG pqmsg, HWND hwndFilter, ULONG msgFilterFirst,    ULONG msgFilterLast)
    60 {
     65extern inline BOOL APIENTRY __FPU_CW_WinGetMsg (HAB hab, PQMSG pqmsg, HWND hwndFilter, ULONG msgFilterFirst,    ULONG msgFilterLast)
     66{
     67    unsigned int cw = __FPU_CW_Get();
    6168    BOOL ret = WinGetMsg (hab, pqmsg, hwndFilter, msgFilterFirst,    msgFilterLast);
    62     __FPU_CW_Restore();
     69    __FPU_CW_Set(cw);
    6370    return ret;
    6471}
    6572#define WinGetMsg __FPU_CW_WinGetMsg
    6673
    67 inline BOOL APIENTRY __FPU_CW_WinLockInput (HMQ hmq, ULONG fLock)
    68 {
     74extern inline BOOL APIENTRY __FPU_CW_WinLockInput (HMQ hmq, ULONG fLock)
     75{
     76    unsigned int cw = __FPU_CW_Get();
    6977    BOOL ret = WinLockInput (hmq, fLock);
    70     __FPU_CW_Restore();
     78    __FPU_CW_Set(cw);
    7179    return ret;
    7280}
    7381#define WinLockInput __FPU_CW_WinLockInput
    7482
    75 inline BOOL APIENTRY __FPU_CW_WinPeekMsg (HAB hab, PQMSG pqmsg, HWND hwndFilter, ULONG msgFilterFirst,    ULONG msgFilterLast, ULONG fl)
    76 {
     83extern inline BOOL APIENTRY __FPU_CW_WinPeekMsg (HAB hab, PQMSG pqmsg, HWND hwndFilter, ULONG msgFilterFirst,    ULONG msgFilterLast, ULONG fl)
     84{
     85    unsigned int cw = __FPU_CW_Get();
    7786    BOOL ret = WinPeekMsg (hab, pqmsg, hwndFilter, msgFilterFirst,    msgFilterLast, fl);
    78     __FPU_CW_Restore();
     87    __FPU_CW_Set(cw);
    7988    return ret;
    8089}
    8190#define WinPeekMsg __FPU_CW_WinPeekMsg
    8291
    83 inline BOOL APIENTRY __FPU_CW_WinPostMsg (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
    84 {
     92extern inline BOOL APIENTRY __FPU_CW_WinPostMsg (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
     93{
     94    unsigned int cw = __FPU_CW_Get();
    8595    BOOL ret = WinPostMsg (hwnd, msg, mp1, mp2);
    86     __FPU_CW_Restore();
     96    __FPU_CW_Set(cw);
    8797    return ret;
    8898}
    8999#define WinPostMsg __FPU_CW_WinPostMsg
    90100
    91 inline HMQ APIENTRY __FPU_CW_WinQueueFromID (HAB hab, PID pid, TID tid)
    92 {
     101extern inline HMQ APIENTRY __FPU_CW_WinQueueFromID (HAB hab, PID pid, TID tid)
     102{
     103    unsigned int cw = __FPU_CW_Get();
    93104    HMQ ret = WinQueueFromID (hab, pid, tid);
    94     __FPU_CW_Restore();
     105    __FPU_CW_Set(cw);
    95106    return ret;
    96107}
    97108#define WinQueueFromID __FPU_CW_WinQueueFromID
    98109
    99 inline BOOL APIENTRY __FPU_CW_WinQueryQueueInfo (HMQ hmq, PMQINFO pmqi, ULONG cbCopy)
    100 {
     110extern inline BOOL APIENTRY __FPU_CW_WinQueryQueueInfo (HMQ hmq, PMQINFO pmqi, ULONG cbCopy)
     111{
     112    unsigned int cw = __FPU_CW_Get();
    101113    BOOL ret = WinQueryQueueInfo (hmq, pmqi, cbCopy);
    102     __FPU_CW_Restore();
     114    __FPU_CW_Set(cw);
    103115    return ret;
    104116}
    105117#define WinQueryQueueInfo __FPU_CW_WinQueryQueueInfo
    106118
    107 inline HMQ APIENTRY __FPU_CW_WinQuerySendMsg (HAB hab, HMQ hmqSender, HMQ hmqReceiver, PQMSG pqmsg)
    108 {
     119extern inline HMQ APIENTRY __FPU_CW_WinQuerySendMsg (HAB hab, HMQ hmqSender, HMQ hmqReceiver, PQMSG pqmsg)
     120{
     121    unsigned int cw = __FPU_CW_Get();
    109122    HMQ ret = WinQuerySendMsg (hab, hmqSender, hmqReceiver, pqmsg);
    110     __FPU_CW_Restore();
     123    __FPU_CW_Set(cw);
    111124    return ret;
    112125}
    113126#define WinQuerySendMsg __FPU_CW_WinQuerySendMsg
    114127
    115 inline BOOL APIENTRY __FPU_CW_WinRegisterUserDatatype (HAB hab, LONG datatype, LONG count, PLONG types)
    116 {
     128extern inline BOOL APIENTRY __FPU_CW_WinRegisterUserDatatype (HAB hab, LONG datatype, LONG count, PLONG types)
     129{
     130    unsigned int cw = __FPU_CW_Get();
    117131    BOOL ret = WinRegisterUserDatatype (hab, datatype, count, types);
    118     __FPU_CW_Restore();
     132    __FPU_CW_Set(cw);
    119133    return ret;
    120134}
    121135#define WinRegisterUserDatatype __FPU_CW_WinRegisterUserDatatype
    122136
    123 inline BOOL APIENTRY __FPU_CW_WinRegisterUserMsg (HAB hab, ULONG msgid, LONG datatype1, LONG dir1,    LONG datatype2, LONG dir2, LONG datatyper)
    124 {
     137extern inline BOOL APIENTRY __FPU_CW_WinRegisterUserMsg (HAB hab, ULONG msgid, LONG datatype1, LONG dir1,    LONG datatype2, LONG dir2, LONG datatyper)
     138{
     139    unsigned int cw = __FPU_CW_Get();
    125140    BOOL ret = WinRegisterUserMsg (hab, msgid, datatype1, dir1,    datatype2, dir2, datatyper);
    126     __FPU_CW_Restore();
     141    __FPU_CW_Set(cw);
    127142    return ret;
    128143}
    129144#define WinRegisterUserMsg __FPU_CW_WinRegisterUserMsg
    130145
    131 inline BOOL APIENTRY __FPU_CW_WinReplyMsg (HAB hab, HMQ hmqSender, HMQ hmqReceiver, MRESULT mresult)
    132 {
     146extern inline BOOL APIENTRY __FPU_CW_WinReplyMsg (HAB hab, HMQ hmqSender, HMQ hmqReceiver, MRESULT mresult)
     147{
     148    unsigned int cw = __FPU_CW_Get();
    133149    BOOL ret = WinReplyMsg (hab, hmqSender, hmqReceiver, mresult);
    134     __FPU_CW_Restore();
     150    __FPU_CW_Set(cw);
    135151    return ret;
    136152}
    137153#define WinReplyMsg __FPU_CW_WinReplyMsg
    138154
    139 inline MRESULT APIENTRY __FPU_CW_WinSendMsg (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
    140 {
     155extern inline MRESULT APIENTRY __FPU_CW_WinSendMsg (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
     156{
     157    unsigned int cw = __FPU_CW_Get();
    141158    MRESULT ret = WinSendMsg (hwnd, msg, mp1, mp2);
    142     __FPU_CW_Restore();
     159    __FPU_CW_Set(cw);
    143160    return ret;
    144161}
    145162#define WinSendMsg __FPU_CW_WinSendMsg
    146163
    147 inline BOOL APIENTRY __FPU_CW_WinSetMsgMode (HAB hab, PCSZ classname, LONG control)
    148 {
     164extern inline BOOL APIENTRY __FPU_CW_WinSetMsgMode (HAB hab, PCSZ classname, LONG control)
     165{
     166    unsigned int cw = __FPU_CW_Get();
    149167    BOOL ret = WinSetMsgMode (hab, classname, control);
    150     __FPU_CW_Restore();
     168    __FPU_CW_Set(cw);
    151169    return ret;
    152170}
    153171#define WinSetMsgMode __FPU_CW_WinSetMsgMode
    154172
    155 inline BOOL APIENTRY __FPU_CW_WinSetSynchroMode (HAB hab, LONG mode)
    156 {
     173extern inline BOOL APIENTRY __FPU_CW_WinSetSynchroMode (HAB hab, LONG mode)
     174{
     175    unsigned int cw = __FPU_CW_Get();
    157176    BOOL ret = WinSetSynchroMode (hab, mode);
    158     __FPU_CW_Restore();
     177    __FPU_CW_Set(cw);
    159178    return ret;
    160179}
    161180#define WinSetSynchroMode __FPU_CW_WinSetSynchroMode
    162181
    163 inline BOOL APIENTRY __FPU_CW_WinThreadAssocQueue (HAB hab, HMQ hmq)
    164 {
     182extern inline BOOL APIENTRY __FPU_CW_WinThreadAssocQueue (HAB hab, HMQ hmq)
     183{
     184    unsigned int cw = __FPU_CW_Get();
    165185    BOOL ret = WinThreadAssocQueue (hab, hmq);
    166     __FPU_CW_Restore();
     186    __FPU_CW_Set(cw);
    167187    return ret;
    168188}
    169189#define WinThreadAssocQueue __FPU_CW_WinThreadAssocQueue
    170190
    171 inline BOOL APIENTRY __FPU_CW_WinWakeThread (HMQ hmq)
    172 {
     191extern inline BOOL APIENTRY __FPU_CW_WinWakeThread (HMQ hmq)
     192{
     193    unsigned int cw = __FPU_CW_Get();
    173194    BOOL ret = WinWakeThread (hmq);
    174     __FPU_CW_Restore();
     195    __FPU_CW_Set(cw);
    175196    return ret;
    176197}
    177198#define WinWakeThread __FPU_CW_WinWakeThread
    178199
    179 inline HWND APIENTRY __FPU_CW_WinCreateWindow (HWND hwndParent, PCSZ pszClass, PCSZ pszName,    ULONG flStyle, LONG x, LONG y, LONG cx, LONG cy, HWND hwndOwner,    HWND hwndInsertBehind, ULONG id, PVOID pCtlData, PVOID pPresParams)
    180 {
     200extern inline HWND APIENTRY __FPU_CW_WinCreateWindow (HWND hwndParent, PCSZ pszClass, PCSZ pszName,    ULONG flStyle, LONG x, LONG y, LONG cx, LONG cy, HWND hwndOwner,    HWND hwndInsertBehind, ULONG id, PVOID pCtlData, PVOID pPresParams)
     201{
     202    unsigned int cw = __FPU_CW_Get();
    181203    HWND ret = WinCreateWindow (hwndParent, pszClass, pszName,    flStyle, x, y, cx, cy, hwndOwner,    hwndInsertBehind, id, pCtlData, pPresParams);
    182     __FPU_CW_Restore();
     204    __FPU_CW_Set(cw);
    183205    return ret;
    184206}
    185207#define WinCreateWindow __FPU_CW_WinCreateWindow
    186208
    187 inline BOOL APIENTRY __FPU_CW_WinDrawBitmap (HPS hpsDst, HBITMAP hbm, __const__ RECTL *pwrcSrc,    __const__ POINTL *pptlDst, LONG clrFore, LONG clrBack, ULONG fl)
    188 {
     209extern inline BOOL APIENTRY __FPU_CW_WinDrawBitmap (HPS hpsDst, HBITMAP hbm, __const__ RECTL *pwrcSrc,    __const__ POINTL *pptlDst, LONG clrFore, LONG clrBack, ULONG fl)
     210{
     211    unsigned int cw = __FPU_CW_Get();
    189212    BOOL ret = WinDrawBitmap (hpsDst, hbm, pwrcSrc,    pptlDst, clrFore, clrBack, fl);
    190     __FPU_CW_Restore();
     213    __FPU_CW_Set(cw);
    191214    return ret;
    192215}
    193216#define WinDrawBitmap __FPU_CW_WinDrawBitmap
    194217
    195 inline BOOL APIENTRY __FPU_CW_WinDrawBorder (HPS hps, __const__ RECTL *prcl, LONG cx, LONG cy,    LONG clrFore, LONG clrBack, ULONG flCmd)
    196 {
     218extern inline BOOL APIENTRY __FPU_CW_WinDrawBorder (HPS hps, __const__ RECTL *prcl, LONG cx, LONG cy,    LONG clrFore, LONG clrBack, ULONG flCmd)
     219{
     220    unsigned int cw = __FPU_CW_Get();
    197221    BOOL ret = WinDrawBorder (hps, prcl, cx, cy,    clrFore, clrBack, flCmd);
    198     __FPU_CW_Restore();
     222    __FPU_CW_Set(cw);
    199223    return ret;
    200224}
    201225#define WinDrawBorder __FPU_CW_WinDrawBorder
    202226
    203 inline LONG APIENTRY __FPU_CW_WinDrawText (HPS hps, LONG cchText, PCCH lpchText, PRECTL prcl,    LONG clrFore, LONG clrBack, ULONG flCmd)
    204 {
     227extern inline LONG APIENTRY __FPU_CW_WinDrawText (HPS hps, LONG cchText, PCCH lpchText, PRECTL prcl,    LONG clrFore, LONG clrBack, ULONG flCmd)
     228{
     229    unsigned int cw = __FPU_CW_Get();
    205230    LONG ret = WinDrawText (hps, cchText, lpchText, prcl,    clrFore, clrBack, flCmd);
    206     __FPU_CW_Restore();
     231    __FPU_CW_Set(cw);
    207232    return ret;
    208233}
    209234#define WinDrawText __FPU_CW_WinDrawText
    210235
    211 inline BOOL APIENTRY __FPU_CW_WinEnableWindow (HWND hwnd, BOOL fEnable)
    212 {
     236extern inline BOOL APIENTRY __FPU_CW_WinEnableWindow (HWND hwnd, BOOL fEnable)
     237{
     238    unsigned int cw = __FPU_CW_Get();
    213239    BOOL ret = WinEnableWindow (hwnd, fEnable);
    214     __FPU_CW_Restore();
     240    __FPU_CW_Set(cw);
    215241    return ret;
    216242}
    217243#define WinEnableWindow __FPU_CW_WinEnableWindow
    218244
    219 inline BOOL APIENTRY __FPU_CW_WinEnableWindowUpdate (HWND hwnd, BOOL fEnable)
    220 {
     245extern inline BOOL APIENTRY __FPU_CW_WinEnableWindowUpdate (HWND hwnd, BOOL fEnable)
     246{
     247    unsigned int cw = __FPU_CW_Get();
    221248    BOOL ret = WinEnableWindowUpdate (hwnd, fEnable);
    222     __FPU_CW_Restore();
     249    __FPU_CW_Set(cw);
    223250    return ret;
    224251}
    225252#define WinEnableWindowUpdate __FPU_CW_WinEnableWindowUpdate
    226253
    227 inline BOOL APIENTRY __FPU_CW_WinInvalidateRect (HWND hwnd, __const__ RECTL *prcl,    BOOL fIncludeChildren)
    228 {
     254extern inline BOOL APIENTRY __FPU_CW_WinInvalidateRect (HWND hwnd, __const__ RECTL *prcl,    BOOL fIncludeChildren)
     255{
     256    unsigned int cw = __FPU_CW_Get();
    229257    BOOL ret = WinInvalidateRect (hwnd, prcl,    fIncludeChildren);
    230     __FPU_CW_Restore();
     258    __FPU_CW_Set(cw);
    231259    return ret;
    232260}
    233261#define WinInvalidateRect __FPU_CW_WinInvalidateRect
    234262
    235 inline BOOL APIENTRY __FPU_CW_WinInvalidateRegion (HWND hwnd, HRGN hrgn, BOOL fIncludeChildren)
    236 {
     263extern inline BOOL APIENTRY __FPU_CW_WinInvalidateRegion (HWND hwnd, HRGN hrgn, BOOL fIncludeChildren)
     264{
     265    unsigned int cw = __FPU_CW_Get();
    237266    BOOL ret = WinInvalidateRegion (hwnd, hrgn, fIncludeChildren);
    238     __FPU_CW_Restore();
     267    __FPU_CW_Set(cw);
    239268    return ret;
    240269}
    241270#define WinInvalidateRegion __FPU_CW_WinInvalidateRegion
    242271
    243 inline BOOL APIENTRY __FPU_CW_WinInvertRect (HPS hps, __const__ RECTL *prcl)
    244 {
     272extern inline BOOL APIENTRY __FPU_CW_WinInvertRect (HPS hps, __const__ RECTL *prcl)
     273{
     274    unsigned int cw = __FPU_CW_Get();
    245275    BOOL ret = WinInvertRect (hps, prcl);
    246     __FPU_CW_Restore();
     276    __FPU_CW_Set(cw);
    247277    return ret;
    248278}
    249279#define WinInvertRect __FPU_CW_WinInvertRect
    250280
    251 inline BOOL APIENTRY __FPU_CW_WinIsChild (HWND hwnd, HWND hwndParent)
    252 {
     281extern inline BOOL APIENTRY __FPU_CW_WinIsChild (HWND hwnd, HWND hwndParent)
     282{
     283    unsigned int cw = __FPU_CW_Get();
    253284    BOOL ret = WinIsChild (hwnd, hwndParent);
    254     __FPU_CW_Restore();
     285    __FPU_CW_Set(cw);
    255286    return ret;
    256287}
    257288#define WinIsChild __FPU_CW_WinIsChild
    258289
    259 inline BOOL APIENTRY __FPU_CW_WinIsWindow (HAB hab, HWND hwnd)
    260 {
     290extern inline BOOL APIENTRY __FPU_CW_WinIsWindow (HAB hab, HWND hwnd)
     291{
     292    unsigned int cw = __FPU_CW_Get();
    261293    BOOL ret = WinIsWindow (hab, hwnd);
    262     __FPU_CW_Restore();
     294    __FPU_CW_Set(cw);
    263295    return ret;
    264296}
    265297#define WinIsWindow __FPU_CW_WinIsWindow
    266298
    267 inline BOOL APIENTRY __FPU_CW_WinIsWindowEnabled (HWND hwnd)
    268 {
     299extern inline BOOL APIENTRY __FPU_CW_WinIsWindowEnabled (HWND hwnd)
     300{
     301    unsigned int cw = __FPU_CW_Get();
    269302    BOOL ret = WinIsWindowEnabled (hwnd);
    270     __FPU_CW_Restore();
     303    __FPU_CW_Set(cw);
    271304    return ret;
    272305}
    273306#define WinIsWindowEnabled __FPU_CW_WinIsWindowEnabled
    274307
    275 inline BOOL APIENTRY __FPU_CW_WinIsWindowVisible (HWND hwnd)
    276 {
     308extern inline BOOL APIENTRY __FPU_CW_WinIsWindowVisible (HWND hwnd)
     309{
     310    unsigned int cw = __FPU_CW_Get();
    277311    BOOL ret = WinIsWindowVisible (hwnd);
    278     __FPU_CW_Restore();
     312    __FPU_CW_Set(cw);
    279313    return ret;
    280314}
    281315#define WinIsWindowVisible __FPU_CW_WinIsWindowVisible
    282316
    283 inline LONG APIENTRY __FPU_CW_WinLoadMessage (HAB hab, HMODULE hmod, ULONG id, LONG cchMax,    PSZ pchBuffer)
    284 {
     317extern inline LONG APIENTRY __FPU_CW_WinLoadMessage (HAB hab, HMODULE hmod, ULONG id, LONG cchMax,    PSZ pchBuffer)
     318{
     319    unsigned int cw = __FPU_CW_Get();
    285320    LONG ret = WinLoadMessage (hab, hmod, id, cchMax,    pchBuffer);
    286     __FPU_CW_Restore();
     321    __FPU_CW_Set(cw);
    287322    return ret;
    288323}
    289324#define WinLoadMessage __FPU_CW_WinLoadMessage
    290325
    291 inline LONG APIENTRY __FPU_CW_WinLoadString (HAB hab, HMODULE hmod, ULONG id, LONG cchMax,    PSZ pchBuffer)
    292 {
     326extern inline LONG APIENTRY __FPU_CW_WinLoadString (HAB hab, HMODULE hmod, ULONG id, LONG cchMax,    PSZ pchBuffer)
     327{
     328    unsigned int cw = __FPU_CW_Get();
    293329    LONG ret = WinLoadString (hab, hmod, id, cchMax,    pchBuffer);
    294     __FPU_CW_Restore();
     330    __FPU_CW_Set(cw);
    295331    return ret;
    296332}
    297333#define WinLoadString __FPU_CW_WinLoadString
    298334
    299 inline LONG APIENTRY __FPU_CW_WinMultWindowFromIDs (HWND hwndParent, PHWND prghwnd, ULONG idFirst,    ULONG idLast)
    300 {
     335extern inline LONG APIENTRY __FPU_CW_WinMultWindowFromIDs (HWND hwndParent, PHWND prghwnd, ULONG idFirst,    ULONG idLast)
     336{
     337    unsigned int cw = __FPU_CW_Get();
    301338    LONG ret = WinMultWindowFromIDs (hwndParent, prghwnd, idFirst,    idLast);
    302     __FPU_CW_Restore();
     339    __FPU_CW_Set(cw);
    303340    return ret;
    304341}
    305342#define WinMultWindowFromIDs __FPU_CW_WinMultWindowFromIDs
    306343
    307 inline HWND APIENTRY __FPU_CW_WinQueryDesktopWindow (HAB hab, HDC hdc)
    308 {
     344extern inline HWND APIENTRY __FPU_CW_WinQueryDesktopWindow (HAB hab, HDC hdc)
     345{
     346    unsigned int cw = __FPU_CW_Get();
    309347    HWND ret = WinQueryDesktopWindow (hab, hdc);
    310     __FPU_CW_Restore();
     348    __FPU_CW_Set(cw);
    311349    return ret;
    312350}
    313351#define WinQueryDesktopWindow __FPU_CW_WinQueryDesktopWindow
    314352
    315 inline HWND APIENTRY __FPU_CW_WinQueryObjectWindow (HWND hwndDesktop)
    316 {
     353extern inline HWND APIENTRY __FPU_CW_WinQueryObjectWindow (HWND hwndDesktop)
     354{
     355    unsigned int cw = __FPU_CW_Get();
    317356    HWND ret = WinQueryObjectWindow (hwndDesktop);
    318     __FPU_CW_Restore();
     357    __FPU_CW_Set(cw);
    319358    return ret;
    320359}
    321360#define WinQueryObjectWindow __FPU_CW_WinQueryObjectWindow
    322361
    323 inline HPOINTER APIENTRY __FPU_CW_WinQueryPointer (HWND hwndDesktop)
    324 {
     362extern inline HPOINTER APIENTRY __FPU_CW_WinQueryPointer (HWND hwndDesktop)
     363{
     364    unsigned int cw = __FPU_CW_Get();
    325365    HPOINTER ret = WinQueryPointer (hwndDesktop);
    326     __FPU_CW_Restore();
     366    __FPU_CW_Set(cw);
    327367    return ret;
    328368}
    329369#define WinQueryPointer __FPU_CW_WinQueryPointer
    330370
    331 inline HWND APIENTRY __FPU_CW_WinQueryWindow (HWND hwnd, LONG cmd)
    332 {
     371extern inline HWND APIENTRY __FPU_CW_WinQueryWindow (HWND hwnd, LONG cmd)
     372{
     373    unsigned int cw = __FPU_CW_Get();
    333374    HWND ret = WinQueryWindow (hwnd, cmd);
    334     __FPU_CW_Restore();
     375    __FPU_CW_Set(cw);
    335376    return ret;
    336377}
    337378#define WinQueryWindow __FPU_CW_WinQueryWindow
    338379
    339 inline BOOL APIENTRY __FPU_CW_WinQueryWindowPos (HWND hwnd, PSWP pswp)
    340 {
     380extern inline BOOL APIENTRY __FPU_CW_WinQueryWindowPos (HWND hwnd, PSWP pswp)
     381{
     382    unsigned int cw = __FPU_CW_Get();
    341383    BOOL ret = WinQueryWindowPos (hwnd, pswp);
    342     __FPU_CW_Restore();
     384    __FPU_CW_Set(cw);
    343385    return ret;
    344386}
    345387#define WinQueryWindowPos __FPU_CW_WinQueryWindowPos
    346388
    347 inline BOOL APIENTRY __FPU_CW_WinQueryWindowProcess (HWND hwnd, PPID ppid, PTID ptid)
    348 {
     389extern inline BOOL APIENTRY __FPU_CW_WinQueryWindowProcess (HWND hwnd, PPID ppid, PTID ptid)
     390{
     391    unsigned int cw = __FPU_CW_Get();
    349392    BOOL ret = WinQueryWindowProcess (hwnd, ppid, ptid);
    350     __FPU_CW_Restore();
     393    __FPU_CW_Set(cw);
    351394    return ret;
    352395}
    353396#define WinQueryWindowProcess __FPU_CW_WinQueryWindowProcess
    354397
    355 inline LONG APIENTRY __FPU_CW_WinQueryWindowText (HWND hwnd, LONG cchBufferMax, PCH pchBuffer)
    356 {
     398extern inline LONG APIENTRY __FPU_CW_WinQueryWindowText (HWND hwnd, LONG cchBufferMax, PCH pchBuffer)
     399{
     400    unsigned int cw = __FPU_CW_Get();
    357401    LONG ret = WinQueryWindowText (hwnd, cchBufferMax, pchBuffer);
    358     __FPU_CW_Restore();
     402    __FPU_CW_Set(cw);
    359403    return ret;
    360404}
    361405#define WinQueryWindowText __FPU_CW_WinQueryWindowText
    362406
    363 inline LONG APIENTRY __FPU_CW_WinQueryWindowTextLength (HWND hwnd)
    364 {
     407extern inline LONG APIENTRY __FPU_CW_WinQueryWindowTextLength (HWND hwnd)
     408{
     409    unsigned int cw = __FPU_CW_Get();
    365410    LONG ret = WinQueryWindowTextLength (hwnd);
    366     __FPU_CW_Restore();
     411    __FPU_CW_Set(cw);
    367412    return ret;
    368413}
    369414#define WinQueryWindowTextLength __FPU_CW_WinQueryWindowTextLength
    370415
    371 inline BOOL APIENTRY __FPU_CW_WinSetMultWindowPos (HAB hab, __const__ SWP *pswp, ULONG cswp)
    372 {
     416extern inline BOOL APIENTRY __FPU_CW_WinSetMultWindowPos (HAB hab, __const__ SWP *pswp, ULONG cswp)
     417{
     418    unsigned int cw = __FPU_CW_Get();
    373419    BOOL ret = WinSetMultWindowPos (hab, pswp, cswp);
    374     __FPU_CW_Restore();
     420    __FPU_CW_Set(cw);
    375421    return ret;
    376422}
    377423#define WinSetMultWindowPos __FPU_CW_WinSetMultWindowPos
    378424
    379 inline BOOL APIENTRY __FPU_CW_WinSetOwner (HWND hwnd, HWND hwndNewOwner)
    380 {
     425extern inline BOOL APIENTRY __FPU_CW_WinSetOwner (HWND hwnd, HWND hwndNewOwner)
     426{
     427    unsigned int cw = __FPU_CW_Get();
    381428    BOOL ret = WinSetOwner (hwnd, hwndNewOwner);
    382     __FPU_CW_Restore();
     429    __FPU_CW_Set(cw);
    383430    return ret;
    384431}
    385432#define WinSetOwner __FPU_CW_WinSetOwner
    386433
    387 inline BOOL APIENTRY __FPU_CW_WinSetParent (HWND hwnd, HWND hwndNewParent, BOOL fRedraw)
    388 {
     434extern inline BOOL APIENTRY __FPU_CW_WinSetParent (HWND hwnd, HWND hwndNewParent, BOOL fRedraw)
     435{
     436    unsigned int cw = __FPU_CW_Get();
    389437    BOOL ret = WinSetParent (hwnd, hwndNewParent, fRedraw);
    390     __FPU_CW_Restore();
     438    __FPU_CW_Set(cw);
    391439    return ret;
    392440}
    393441#define WinSetParent __FPU_CW_WinSetParent
    394442
    395 inline BOOL APIENTRY __FPU_CW_WinSetWindowPos (HWND hwnd, HWND hwndInsertBehind, LONG x, LONG y,    LONG cx, LONG cy, ULONG fl)
    396 {
     443extern inline BOOL APIENTRY __FPU_CW_WinSetWindowPos (HWND hwnd, HWND hwndInsertBehind, LONG x, LONG y,    LONG cx, LONG cy, ULONG fl)
     444{
     445    unsigned int cw = __FPU_CW_Get();
    397446    BOOL ret = WinSetWindowPos (hwnd, hwndInsertBehind, x, y,    cx, cy, fl);
    398     __FPU_CW_Restore();
     447    __FPU_CW_Set(cw);
    399448    return ret;
    400449}
    401450#define WinSetWindowPos __FPU_CW_WinSetWindowPos
    402451
    403 inline BOOL APIENTRY __FPU_CW_WinSetWindowText (HWND hwnd, PCSZ pszText)
    404 {
     452extern inline BOOL APIENTRY __FPU_CW_WinSetWindowText (HWND hwnd, PCSZ pszText)
     453{
     454    unsigned int cw = __FPU_CW_Get();
    405455    BOOL ret = WinSetWindowText (hwnd, pszText);
    406     __FPU_CW_Restore();
     456    __FPU_CW_Set(cw);
    407457    return ret;
    408458}
    409459#define WinSetWindowText __FPU_CW_WinSetWindowText
    410460
    411 inline BOOL APIENTRY __FPU_CW_WinUpdateWindow (HWND hwnd)
    412 {
     461extern inline BOOL APIENTRY __FPU_CW_WinUpdateWindow (HWND hwnd)
     462{
     463    unsigned int cw = __FPU_CW_Get();
    413464    BOOL ret = WinUpdateWindow (hwnd);
    414     __FPU_CW_Restore();
     465    __FPU_CW_Set(cw);
    415466    return ret;
    416467}
    417468#define WinUpdateWindow __FPU_CW_WinUpdateWindow
    418469
    419 inline HWND APIENTRY __FPU_CW_WinWindowFromID (HWND hwndParent, ULONG id)
    420 {
     470extern inline HWND APIENTRY __FPU_CW_WinWindowFromID (HWND hwndParent, ULONG id)
     471{
     472    unsigned int cw = __FPU_CW_Get();
    421473    HWND ret = WinWindowFromID (hwndParent, id);
    422     __FPU_CW_Restore();
     474    __FPU_CW_Set(cw);
    423475    return ret;
    424476}
    425477#define WinWindowFromID __FPU_CW_WinWindowFromID
    426478
    427 inline HWND APIENTRY __FPU_CW_WinCreateStdWindow (HWND hwndParent, ULONG flStyle,    PULONG pflCreateFlags, PCSZ pszClientClass, PCSZ pszTitle,    ULONG styleClient, HMODULE hmod, ULONG idResources, PHWND phwndClient)
    428 {
     479extern inline HWND APIENTRY __FPU_CW_WinCreateStdWindow (HWND hwndParent, ULONG flStyle,    PULONG pflCreateFlags, PCSZ pszClientClass, PCSZ pszTitle,    ULONG styleClient, HMODULE hmod, ULONG idResources, PHWND phwndClient)
     480{
     481    unsigned int cw = __FPU_CW_Get();
    429482    HWND ret = WinCreateStdWindow (hwndParent, flStyle,    pflCreateFlags, pszClientClass, pszTitle,    styleClient, hmod, idResources, phwndClient);
    430     __FPU_CW_Restore();
     483    __FPU_CW_Set(cw);
    431484    return ret;
    432485}
    433486#define WinCreateStdWindow __FPU_CW_WinCreateStdWindow
    434487
    435 inline BOOL APIENTRY __FPU_CW_WinCalcFrameRect (HWND hwndFrame, PRECTL prcl, BOOL fClient)
    436 {
     488extern inline BOOL APIENTRY __FPU_CW_WinCalcFrameRect (HWND hwndFrame, PRECTL prcl, BOOL fClient)
     489{
     490    unsigned int cw = __FPU_CW_Get();
    437491    BOOL ret = WinCalcFrameRect (hwndFrame, prcl, fClient);
    438     __FPU_CW_Restore();
     492    __FPU_CW_Set(cw);
    439493    return ret;
    440494}
    441495#define WinCalcFrameRect __FPU_CW_WinCalcFrameRect
    442496
    443 inline BOOL APIENTRY __FPU_CW_WinCreateFrameControls (HWND hwndFrame, PFRAMECDATA pfcdata,    PCSZ pszTitle)
    444 {
     497extern inline BOOL APIENTRY __FPU_CW_WinCreateFrameControls (HWND hwndFrame, PFRAMECDATA pfcdata,    PCSZ pszTitle)
     498{
     499    unsigned int cw = __FPU_CW_Get();
    445500    BOOL ret = WinCreateFrameControls (hwndFrame, pfcdata,    pszTitle);
    446     __FPU_CW_Restore();
     501    __FPU_CW_Set(cw);
    447502    return ret;
    448503}
    449504#define WinCreateFrameControls __FPU_CW_WinCreateFrameControls
    450505
    451 inline BOOL APIENTRY __FPU_CW_WinFlashWindow (HWND hwndFrame, BOOL fFlash)
    452 {
     506extern inline BOOL APIENTRY __FPU_CW_WinFlashWindow (HWND hwndFrame, BOOL fFlash)
     507{
     508    unsigned int cw = __FPU_CW_Get();
    453509    BOOL ret = WinFlashWindow (hwndFrame, fFlash);
    454     __FPU_CW_Restore();
     510    __FPU_CW_Set(cw);
    455511    return ret;
    456512}
    457513#define WinFlashWindow __FPU_CW_WinFlashWindow
    458514
    459 inline BOOL APIENTRY __FPU_CW_WinGetMaxPosition (HWND hwnd, PSWP pswp)
    460 {
     515extern inline BOOL APIENTRY __FPU_CW_WinGetMaxPosition (HWND hwnd, PSWP pswp)
     516{
     517    unsigned int cw = __FPU_CW_Get();
    461518    BOOL ret = WinGetMaxPosition (hwnd, pswp);
    462     __FPU_CW_Restore();
     519    __FPU_CW_Set(cw);
    463520    return ret;
    464521}
    465522#define WinGetMaxPosition __FPU_CW_WinGetMaxPosition
    466523
    467 inline BOOL APIENTRY __FPU_CW_WinGetMinPosition (HWND hwnd, PSWP pswp, __const__ POINTL *pptl)
    468 {
     524extern inline BOOL APIENTRY __FPU_CW_WinGetMinPosition (HWND hwnd, PSWP pswp, __const__ POINTL *pptl)
     525{
     526    unsigned int cw = __FPU_CW_Get();
    469527    BOOL ret = WinGetMinPosition (hwnd, pswp, pptl);
    470     __FPU_CW_Restore();
     528    __FPU_CW_Set(cw);
    471529    return ret;
    472530}
    473531#define WinGetMinPosition __FPU_CW_WinGetMinPosition
    474532
    475 inline BOOL APIENTRY __FPU_CW_WinSaveWindowPos (HSAVEWP hsvwp, PSWP pswp, ULONG cswp)
    476 {
     533extern inline BOOL APIENTRY __FPU_CW_WinSaveWindowPos (HSAVEWP hsvwp, PSWP pswp, ULONG cswp)
     534{
     535    unsigned int cw = __FPU_CW_Get();
    477536    BOOL ret = WinSaveWindowPos (hsvwp, pswp, cswp);
    478     __FPU_CW_Restore();
     537    __FPU_CW_Set(cw);
    479538    return ret;
    480539}
    481540#define WinSaveWindowPos __FPU_CW_WinSaveWindowPos
    482541
    483 inline HPS APIENTRY __FPU_CW_WinBeginPaint (HWND hwnd, HPS hps, PRECTL prclPaint)
    484 {
     542extern inline HPS APIENTRY __FPU_CW_WinBeginPaint (HWND hwnd, HPS hps, PRECTL prclPaint)
     543{
     544    unsigned int cw = __FPU_CW_Get();
    485545    HPS ret = WinBeginPaint (hwnd, hps, prclPaint);
    486     __FPU_CW_Restore();
     546    __FPU_CW_Set(cw);
    487547    return ret;
    488548}
    489549#define WinBeginPaint __FPU_CW_WinBeginPaint
    490550
    491 inline MRESULT APIENTRY __FPU_CW_WinDefWindowProc (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
    492 {
     551extern inline MRESULT APIENTRY __FPU_CW_WinDefWindowProc (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
     552{
     553    unsigned int cw = __FPU_CW_Get();
    493554    MRESULT ret = WinDefWindowProc (hwnd, msg, mp1, mp2);
    494     __FPU_CW_Restore();
     555    __FPU_CW_Set(cw);
    495556    return ret;
    496557}
    497558#define WinDefWindowProc __FPU_CW_WinDefWindowProc
    498559
    499 inline BOOL APIENTRY __FPU_CW_WinDestroyWindow (HWND hwnd)
    500 {
     560extern inline BOOL APIENTRY __FPU_CW_WinDestroyWindow (HWND hwnd)
     561{
     562    unsigned int cw = __FPU_CW_Get();
    501563    BOOL ret = WinDestroyWindow (hwnd);
    502     __FPU_CW_Restore();
     564    __FPU_CW_Set(cw);
    503565    return ret;
    504566}
    505567#define WinDestroyWindow __FPU_CW_WinDestroyWindow
    506568
    507 inline BOOL APIENTRY __FPU_CW_WinEndPaint (HPS hps)
    508 {
     569extern inline BOOL APIENTRY __FPU_CW_WinEndPaint (HPS hps)
     570{
     571    unsigned int cw = __FPU_CW_Get();
    509572    BOOL ret = WinEndPaint (hps);
    510     __FPU_CW_Restore();
     573    __FPU_CW_Set(cw);
    511574    return ret;
    512575}
    513576#define WinEndPaint __FPU_CW_WinEndPaint
    514577
    515 inline BOOL APIENTRY __FPU_CW_WinFillRect (HPS hps, __const__ RECTL *prcl, LONG lColor)
    516 {
     578extern inline BOOL APIENTRY __FPU_CW_WinFillRect (HPS hps, __const__ RECTL *prcl, LONG lColor)
     579{
     580    unsigned int cw = __FPU_CW_Get();
    517581    BOOL ret = WinFillRect (hps, prcl, lColor);
    518     __FPU_CW_Restore();
     582    __FPU_CW_Set(cw);
    519583    return ret;
    520584}
    521585#define WinFillRect __FPU_CW_WinFillRect
    522586
    523 inline HPS APIENTRY __FPU_CW_WinGetClipPS (HWND hwnd, HWND hwndClip, ULONG fl)
    524 {
     587extern inline HPS APIENTRY __FPU_CW_WinGetClipPS (HWND hwnd, HWND hwndClip, ULONG fl)
     588{
     589    unsigned int cw = __FPU_CW_Get();
    525590    HPS ret = WinGetClipPS (hwnd, hwndClip, fl);
    526     __FPU_CW_Restore();
     591    __FPU_CW_Set(cw);
    527592    return ret;
    528593}
    529594#define WinGetClipPS __FPU_CW_WinGetClipPS
    530595
    531 inline HPS APIENTRY __FPU_CW_WinGetPS (HWND hwnd)
    532 {
     596extern inline HPS APIENTRY __FPU_CW_WinGetPS (HWND hwnd)
     597{
     598    unsigned int cw = __FPU_CW_Get();
    533599    HPS ret = WinGetPS (hwnd);
    534     __FPU_CW_Restore();
     600    __FPU_CW_Set(cw);
    535601    return ret;
    536602}
    537603#define WinGetPS __FPU_CW_WinGetPS
    538604
    539 inline HAB APIENTRY __FPU_CW_WinInitialize (ULONG fsOptions)
    540 {
     605extern inline HAB APIENTRY __FPU_CW_WinInitialize (ULONG fsOptions)
     606{
     607    unsigned int cw = __FPU_CW_Get();
    541608    HAB ret = WinInitialize (fsOptions);
    542     __FPU_CW_Restore();
     609    __FPU_CW_Set(cw);
    543610    return ret;
    544611}
    545612#define WinInitialize __FPU_CW_WinInitialize
    546613
    547 inline BOOL APIENTRY __FPU_CW_WinIsWindowShowing (HWND hwnd)
    548 {
     614extern inline BOOL APIENTRY __FPU_CW_WinIsWindowShowing (HWND hwnd)
     615{
     616    unsigned int cw = __FPU_CW_Get();
    549617    BOOL ret = WinIsWindowShowing (hwnd);
    550     __FPU_CW_Restore();
     618    __FPU_CW_Set(cw);
    551619    return ret;
    552620}
    553621#define WinIsWindowShowing __FPU_CW_WinIsWindowShowing
    554622
    555 inline HDC APIENTRY __FPU_CW_WinOpenWindowDC (HWND hwnd)
    556 {
     623extern inline HDC APIENTRY __FPU_CW_WinOpenWindowDC (HWND hwnd)
     624{
     625    unsigned int cw = __FPU_CW_Get();
    557626    HDC ret = WinOpenWindowDC (hwnd);
    558     __FPU_CW_Restore();
     627    __FPU_CW_Set(cw);
    559628    return ret;
    560629}
    561630#define WinOpenWindowDC __FPU_CW_WinOpenWindowDC
    562631
    563 inline HAB APIENTRY __FPU_CW_WinQueryAnchorBlock (HWND hwnd)
    564 {
     632extern inline HAB APIENTRY __FPU_CW_WinQueryAnchorBlock (HWND hwnd)
     633{
     634    unsigned int cw = __FPU_CW_Get();
    565635    HAB ret = WinQueryAnchorBlock (hwnd);
    566     __FPU_CW_Restore();
     636    __FPU_CW_Set(cw);
    567637    return ret;
    568638}
    569639#define WinQueryAnchorBlock __FPU_CW_WinQueryAnchorBlock
    570640
    571 inline ULONG APIENTRY __FPU_CW_WinQueryVersion (HAB hab)
    572 {
     641extern inline ULONG APIENTRY __FPU_CW_WinQueryVersion (HAB hab)
     642{
     643    unsigned int cw = __FPU_CW_Get();
    573644    ULONG ret = WinQueryVersion (hab);
    574     __FPU_CW_Restore();
     645    __FPU_CW_Set(cw);
    575646    return ret;
    576647}
    577648#define WinQueryVersion __FPU_CW_WinQueryVersion
    578649
    579 inline BOOL APIENTRY __FPU_CW_WinQueryWindowRect (HWND hwnd, PRECTL prclDest)
    580 {
     650extern inline BOOL APIENTRY __FPU_CW_WinQueryWindowRect (HWND hwnd, PRECTL prclDest)
     651{
     652    unsigned int cw = __FPU_CW_Get();
    581653    BOOL ret = WinQueryWindowRect (hwnd, prclDest);
    582     __FPU_CW_Restore();
     654    __FPU_CW_Set(cw);
    583655    return ret;
    584656}
    585657#define WinQueryWindowRect __FPU_CW_WinQueryWindowRect
    586658
    587 inline BOOL APIENTRY __FPU_CW_WinRegisterClass (HAB hab, PCSZ pszClassName, PFNWP pfnWndProc,    ULONG flStyle, ULONG cbWindowData)
    588 {
     659extern inline BOOL APIENTRY __FPU_CW_WinRegisterClass (HAB hab, PCSZ pszClassName, PFNWP pfnWndProc,    ULONG flStyle, ULONG cbWindowData)
     660{
     661    unsigned int cw = __FPU_CW_Get();
    589662    BOOL ret = WinRegisterClass (hab, pszClassName, pfnWndProc,    flStyle, cbWindowData);
    590     __FPU_CW_Restore();
     663    __FPU_CW_Set(cw);
    591664    return ret;
    592665}
    593666#define WinRegisterClass __FPU_CW_WinRegisterClass
    594667
    595 inline BOOL APIENTRY __FPU_CW_WinReleasePS (HPS hps)
    596 {
     668extern inline BOOL APIENTRY __FPU_CW_WinReleasePS (HPS hps)
     669{
     670    unsigned int cw = __FPU_CW_Get();
    597671    BOOL ret = WinReleasePS (hps);
    598     __FPU_CW_Restore();
     672    __FPU_CW_Set(cw);
    599673    return ret;
    600674}
    601675#define WinReleasePS __FPU_CW_WinReleasePS
    602676
    603 inline LONG APIENTRY __FPU_CW_WinScrollWindow (HWND hwnd, LONG dx, LONG dy, __const__ RECTL *prclScroll,    __const__ RECTL *prclClip, HRGN hrgnUpdate, PRECTL prclUpdate,    ULONG rgfsw)
    604 {
     677extern inline LONG APIENTRY __FPU_CW_WinScrollWindow (HWND hwnd, LONG dx, LONG dy, __const__ RECTL *prclScroll,    __const__ RECTL *prclClip, HRGN hrgnUpdate, PRECTL prclUpdate,    ULONG rgfsw)
     678{
     679    unsigned int cw = __FPU_CW_Get();
    605680    LONG ret = WinScrollWindow (hwnd, dx, dy, prclScroll,    prclClip, hrgnUpdate, prclUpdate,    rgfsw);
    606     __FPU_CW_Restore();
     681    __FPU_CW_Set(cw);
    607682    return ret;
    608683}
    609684#define WinScrollWindow __FPU_CW_WinScrollWindow
    610685
    611 inline BOOL APIENTRY __FPU_CW_WinSetActiveWindow (HWND hwndDesktop, HWND hwnd)
    612 {
     686extern inline BOOL APIENTRY __FPU_CW_WinSetActiveWindow (HWND hwndDesktop, HWND hwnd)
     687{
     688    unsigned int cw = __FPU_CW_Get();
    613689    BOOL ret = WinSetActiveWindow (hwndDesktop, hwnd);
    614     __FPU_CW_Restore();
     690    __FPU_CW_Set(cw);
    615691    return ret;
    616692}
    617693#define WinSetActiveWindow __FPU_CW_WinSetActiveWindow
    618694
    619 inline BOOL APIENTRY __FPU_CW_WinShowWindow (HWND hwnd, BOOL fShow)
    620 {
     695extern inline BOOL APIENTRY __FPU_CW_WinShowWindow (HWND hwnd, BOOL fShow)
     696{
     697    unsigned int cw = __FPU_CW_Get();
    621698    BOOL ret = WinShowWindow (hwnd, fShow);
    622     __FPU_CW_Restore();
     699    __FPU_CW_Set(cw);
    623700    return ret;
    624701}
    625702#define WinShowWindow __FPU_CW_WinShowWindow
    626703
    627 inline BOOL APIENTRY __FPU_CW_WinTerminate (HAB hab)
    628 {
     704extern inline BOOL APIENTRY __FPU_CW_WinTerminate (HAB hab)
     705{
     706    unsigned int cw = __FPU_CW_Get();
    629707    BOOL ret = WinTerminate (hab);
    630     __FPU_CW_Restore();
     708    __FPU_CW_Set(cw);
    631709    return ret;
    632710}
    633711#define WinTerminate __FPU_CW_WinTerminate
    634712
    635 inline HENUM APIENTRY __FPU_CW_WinBeginEnumWindows (HWND hwnd)
    636 {
     713extern inline HENUM APIENTRY __FPU_CW_WinBeginEnumWindows (HWND hwnd)
     714{
     715    unsigned int cw = __FPU_CW_Get();
    637716    HENUM ret = WinBeginEnumWindows (hwnd);
    638     __FPU_CW_Restore();
     717    __FPU_CW_Set(cw);
    639718    return ret;
    640719}
    641720#define WinBeginEnumWindows __FPU_CW_WinBeginEnumWindows
    642721
    643 inline BOOL APIENTRY __FPU_CW_WinEndEnumWindows (HENUM henum)
    644 {
     722extern inline BOOL APIENTRY __FPU_CW_WinEndEnumWindows (HENUM henum)
     723{
     724    unsigned int cw = __FPU_CW_Get();
    645725    BOOL ret = WinEndEnumWindows (henum);
    646     __FPU_CW_Restore();
     726    __FPU_CW_Set(cw);
    647727    return ret;
    648728}
    649729#define WinEndEnumWindows __FPU_CW_WinEndEnumWindows
    650730
    651 inline LONG APIENTRY __FPU_CW_WinExcludeUpdateRegion (HPS hps, HWND hwnd)
    652 {
     731extern inline LONG APIENTRY __FPU_CW_WinExcludeUpdateRegion (HPS hps, HWND hwnd)
     732{
     733    unsigned int cw = __FPU_CW_Get();
    653734    LONG ret = WinExcludeUpdateRegion (hps, hwnd);
    654     __FPU_CW_Restore();
     735    __FPU_CW_Set(cw);
    655736    return ret;
    656737}
    657738#define WinExcludeUpdateRegion __FPU_CW_WinExcludeUpdateRegion
    658739
    659 inline HWND APIENTRY __FPU_CW_WinGetNextWindow (HENUM henum)
    660 {
     740extern inline HWND APIENTRY __FPU_CW_WinGetNextWindow (HENUM henum)
     741{
     742    unsigned int cw = __FPU_CW_Get();
    661743    HWND ret = WinGetNextWindow (henum);
    662     __FPU_CW_Restore();
     744    __FPU_CW_Set(cw);
    663745    return ret;
    664746}
    665747#define WinGetNextWindow __FPU_CW_WinGetNextWindow
    666748
    667 inline HPS APIENTRY __FPU_CW_WinGetScreenPS (HWND hwndDesktop)
    668 {
     749extern inline HPS APIENTRY __FPU_CW_WinGetScreenPS (HWND hwndDesktop)
     750{
     751    unsigned int cw = __FPU_CW_Get();
    669752    HPS ret = WinGetScreenPS (hwndDesktop);
    670     __FPU_CW_Restore();
     753    __FPU_CW_Set(cw);
    671754    return ret;
    672755}
    673756#define WinGetScreenPS __FPU_CW_WinGetScreenPS
    674757
    675 inline BOOL APIENTRY __FPU_CW_WinIsThreadActive (HAB hab)
    676 {
     758extern inline BOOL APIENTRY __FPU_CW_WinIsThreadActive (HAB hab)
     759{
     760    unsigned int cw = __FPU_CW_Get();
    677761    BOOL ret = WinIsThreadActive (hab);
    678     __FPU_CW_Restore();
     762    __FPU_CW_Set(cw);
    679763    return ret;
    680764}
    681765#define WinIsThreadActive __FPU_CW_WinIsThreadActive
    682766
    683 inline BOOL APIENTRY __FPU_CW_WinLockVisRegions (HWND hwndDesktop, BOOL fLock)
    684 {
     767extern inline BOOL APIENTRY __FPU_CW_WinLockVisRegions (HWND hwndDesktop, BOOL fLock)
     768{
     769    unsigned int cw = __FPU_CW_Get();
    685770    BOOL ret = WinLockVisRegions (hwndDesktop, fLock);
    686     __FPU_CW_Restore();
     771    __FPU_CW_Set(cw);
    687772    return ret;
    688773}
    689774#define WinLockVisRegions __FPU_CW_WinLockVisRegions
    690775
    691 inline BOOL APIENTRY __FPU_CW_WinLockWindowUpdate (HWND hwndDesktop, HWND hwndLockUpdate)
    692 {
     776extern inline BOOL APIENTRY __FPU_CW_WinLockWindowUpdate (HWND hwndDesktop, HWND hwndLockUpdate)
     777{
     778    unsigned int cw = __FPU_CW_Get();
    693779    BOOL ret = WinLockWindowUpdate (hwndDesktop, hwndLockUpdate);
    694     __FPU_CW_Restore();
     780    __FPU_CW_Set(cw);
    695781    return ret;
    696782}
    697783#define WinLockWindowUpdate __FPU_CW_WinLockWindowUpdate
    698784
    699 inline BOOL APIENTRY __FPU_CW_WinMapWindowPoints (HWND hwndFrom, HWND hwndTo, PPOINTL prgptl,    LONG cwpt)
    700 {
     785extern inline BOOL APIENTRY __FPU_CW_WinMapWindowPoints (HWND hwndFrom, HWND hwndTo, PPOINTL prgptl,    LONG cwpt)
     786{
     787    unsigned int cw = __FPU_CW_Get();
    701788    BOOL ret = WinMapWindowPoints (hwndFrom, hwndTo, prgptl,    cwpt);
    702     __FPU_CW_Restore();
     789    __FPU_CW_Set(cw);
    703790    return ret;
    704791}
    705792#define WinMapWindowPoints __FPU_CW_WinMapWindowPoints
    706793
    707 inline HWND APIENTRY __FPU_CW_WinQueryActiveWindow (HWND hwndDesktop)
    708 {
     794extern inline HWND APIENTRY __FPU_CW_WinQueryActiveWindow (HWND hwndDesktop)
     795{
     796    unsigned int cw = __FPU_CW_Get();
    709797    HWND ret = WinQueryActiveWindow (hwndDesktop);
    710     __FPU_CW_Restore();
     798    __FPU_CW_Set(cw);
    711799    return ret;
    712800}
    713801#define WinQueryActiveWindow __FPU_CW_WinQueryActiveWindow
    714802
    715 inline BOOL APIENTRY __FPU_CW_WinQueryClassInfo (HAB hab, PCSZ pszClassName, PCLASSINFO pClassInfo)
    716 {
     803extern inline BOOL APIENTRY __FPU_CW_WinQueryClassInfo (HAB hab, PCSZ pszClassName, PCLASSINFO pClassInfo)
     804{
     805    unsigned int cw = __FPU_CW_Get();
    717806    BOOL ret = WinQueryClassInfo (hab, pszClassName, pClassInfo);
    718     __FPU_CW_Restore();
     807    __FPU_CW_Set(cw);
    719808    return ret;
    720809}
    721810#define WinQueryClassInfo __FPU_CW_WinQueryClassInfo
    722811
    723 inline LONG APIENTRY __FPU_CW_WinQueryClassName (HWND hwnd, LONG cchMax, PCH pch)
    724 {
     812extern inline LONG APIENTRY __FPU_CW_WinQueryClassName (HWND hwnd, LONG cchMax, PCH pch)
     813{
     814    unsigned int cw = __FPU_CW_Get();
    725815    LONG ret = WinQueryClassName (hwnd, cchMax, pch);
    726     __FPU_CW_Restore();
     816    __FPU_CW_Set(cw);
    727817    return ret;
    728818}
    729819#define WinQueryClassName __FPU_CW_WinQueryClassName
    730820
    731 inline BOOL APIENTRY __FPU_CW_WinQueryUpdateRect (HWND hwnd, PRECTL prcl)
    732 {
     821extern inline BOOL APIENTRY __FPU_CW_WinQueryUpdateRect (HWND hwnd, PRECTL prcl)
     822{
     823    unsigned int cw = __FPU_CW_Get();
    733824    BOOL ret = WinQueryUpdateRect (hwnd, prcl);
    734     __FPU_CW_Restore();
     825    __FPU_CW_Set(cw);
    735826    return ret;
    736827}
    737828#define WinQueryUpdateRect __FPU_CW_WinQueryUpdateRect
    738829
    739 inline LONG APIENTRY __FPU_CW_WinQueryUpdateRegion (HWND hwnd, HRGN hrgn)
    740 {
     830extern inline LONG APIENTRY __FPU_CW_WinQueryUpdateRegion (HWND hwnd, HRGN hrgn)
     831{
     832    unsigned int cw = __FPU_CW_Get();
    741833    LONG ret = WinQueryUpdateRegion (hwnd, hrgn);
    742     __FPU_CW_Restore();
     834    __FPU_CW_Set(cw);
    743835    return ret;
    744836}
    745837#define WinQueryUpdateRegion __FPU_CW_WinQueryUpdateRegion
    746838
    747 inline HWND APIENTRY __FPU_CW_WinQuerySysModalWindow (HWND hwndDesktop)
    748 {
     839extern inline HWND APIENTRY __FPU_CW_WinQuerySysModalWindow (HWND hwndDesktop)
     840{
     841    unsigned int cw = __FPU_CW_Get();
    749842    HWND ret = WinQuerySysModalWindow (hwndDesktop);
    750     __FPU_CW_Restore();
     843    __FPU_CW_Set(cw);
    751844    return ret;
    752845}
    753846#define WinQuerySysModalWindow __FPU_CW_WinQuerySysModalWindow
    754847
    755 inline HDC APIENTRY __FPU_CW_WinQueryWindowDC (HWND hwnd)
    756 {
     848extern inline HDC APIENTRY __FPU_CW_WinQueryWindowDC (HWND hwnd)
     849{
     850    unsigned int cw = __FPU_CW_Get();
    757851    HDC ret = WinQueryWindowDC (hwnd);
    758     __FPU_CW_Restore();
     852    __FPU_CW_Set(cw);
    759853    return ret;
    760854}
    761855#define WinQueryWindowDC __FPU_CW_WinQueryWindowDC
    762856
    763 inline PVOID APIENTRY __FPU_CW_WinQueryWindowPtr (HWND hwnd, LONG index)
    764 {
     857extern inline PVOID APIENTRY __FPU_CW_WinQueryWindowPtr (HWND hwnd, LONG index)
     858{
     859    unsigned int cw = __FPU_CW_Get();
    765860    PVOID ret = WinQueryWindowPtr (hwnd, index);
    766     __FPU_CW_Restore();
     861    __FPU_CW_Set(cw);
    767862    return ret;
    768863}
    769864#define WinQueryWindowPtr __FPU_CW_WinQueryWindowPtr
    770865
    771 inline ULONG APIENTRY __FPU_CW_WinQueryWindowULong (HWND hwnd, LONG index)
    772 {
     866extern inline ULONG APIENTRY __FPU_CW_WinQueryWindowULong (HWND hwnd, LONG index)
     867{
     868    unsigned int cw = __FPU_CW_Get();
    773869    ULONG ret = WinQueryWindowULong (hwnd, index);
    774     __FPU_CW_Restore();
     870    __FPU_CW_Set(cw);
    775871    return ret;
    776872}
    777873#define WinQueryWindowULong __FPU_CW_WinQueryWindowULong
    778874
    779 inline USHORT APIENTRY __FPU_CW_WinQueryWindowUShort (HWND hwnd, LONG index)
    780 {
     875extern inline USHORT APIENTRY __FPU_CW_WinQueryWindowUShort (HWND hwnd, LONG index)
     876{
     877    unsigned int cw = __FPU_CW_Get();
    781878    USHORT ret = WinQueryWindowUShort (hwnd, index);
    782     __FPU_CW_Restore();
     879    __FPU_CW_Set(cw);
    783880    return ret;
    784881}
    785882#define WinQueryWindowUShort __FPU_CW_WinQueryWindowUShort
    786883
    787 inline BOOL APIENTRY __FPU_CW_WinSetSysModalWindow (HWND hwndDesktop, HWND hwnd)
    788 {
     884extern inline BOOL APIENTRY __FPU_CW_WinSetSysModalWindow (HWND hwndDesktop, HWND hwnd)
     885{
     886    unsigned int cw = __FPU_CW_Get();
    789887    BOOL ret = WinSetSysModalWindow (hwndDesktop, hwnd);
    790     __FPU_CW_Restore();
     888    __FPU_CW_Set(cw);
    791889    return ret;
    792890}
    793891#define WinSetSysModalWindow __FPU_CW_WinSetSysModalWindow
    794892
    795 inline BOOL APIENTRY __FPU_CW_WinSetWindowBits (HWND hwnd, LONG index, ULONG flData, ULONG flMask)
    796 {
     893extern inline BOOL APIENTRY __FPU_CW_WinSetWindowBits (HWND hwnd, LONG index, ULONG flData, ULONG flMask)
     894{
     895    unsigned int cw = __FPU_CW_Get();
    797896    BOOL ret = WinSetWindowBits (hwnd, index, flData, flMask);
    798     __FPU_CW_Restore();
     897    __FPU_CW_Set(cw);
    799898    return ret;
    800899}
    801900#define WinSetWindowBits __FPU_CW_WinSetWindowBits
    802901
    803 inline BOOL APIENTRY __FPU_CW_WinSetWindowPtr (HWND hwnd, LONG index, PVOID p)
    804 {
     902extern inline BOOL APIENTRY __FPU_CW_WinSetWindowPtr (HWND hwnd, LONG index, PVOID p)
     903{
     904    unsigned int cw = __FPU_CW_Get();
    805905    BOOL ret = WinSetWindowPtr (hwnd, index, p);
    806     __FPU_CW_Restore();
     906    __FPU_CW_Set(cw);
    807907    return ret;
    808908}
    809909#define WinSetWindowPtr __FPU_CW_WinSetWindowPtr
    810910
    811 inline BOOL APIENTRY __FPU_CW_WinSetWindowULong (HWND hwnd, LONG index, ULONG ul)
    812 {
     911extern inline BOOL APIENTRY __FPU_CW_WinSetWindowULong (HWND hwnd, LONG index, ULONG ul)
     912{
     913    unsigned int cw = __FPU_CW_Get();
    813914    BOOL ret = WinSetWindowULong (hwnd, index, ul);
    814     __FPU_CW_Restore();
     915    __FPU_CW_Set(cw);
    815916    return ret;
    816917}
    817918#define WinSetWindowULong __FPU_CW_WinSetWindowULong
    818919
    819 inline BOOL APIENTRY __FPU_CW_WinSetWindowUShort (HWND hwnd, LONG index, USHORT us)
    820 {
     920extern inline BOOL APIENTRY __FPU_CW_WinSetWindowUShort (HWND hwnd, LONG index, USHORT us)
     921{
     922    unsigned int cw = __FPU_CW_Get();
    821923    BOOL ret = WinSetWindowUShort (hwnd, index, us);
    822     __FPU_CW_Restore();
     924    __FPU_CW_Set(cw);
    823925    return ret;
    824926}
    825927#define WinSetWindowUShort __FPU_CW_WinSetWindowUShort
    826928
    827 inline PFNWP APIENTRY __FPU_CW_WinSubclassWindow (HWND hwnd, PFNWP pfnwp)
    828 {
     929extern inline PFNWP APIENTRY __FPU_CW_WinSubclassWindow (HWND hwnd, PFNWP pfnwp)
     930{
     931    unsigned int cw = __FPU_CW_Get();
    829932    PFNWP ret = WinSubclassWindow (hwnd, pfnwp);
    830     __FPU_CW_Restore();
     933    __FPU_CW_Set(cw);
    831934    return ret;
    832935}
    833936#define WinSubclassWindow __FPU_CW_WinSubclassWindow
    834937
    835 inline BOOL APIENTRY __FPU_CW_WinValidateRect (HWND hwnd, __const__ RECTL *prcl, BOOL fIncludeChildren)
    836 {
     938extern inline BOOL APIENTRY __FPU_CW_WinValidateRect (HWND hwnd, __const__ RECTL *prcl, BOOL fIncludeChildren)
     939{
     940    unsigned int cw = __FPU_CW_Get();
    837941    BOOL ret = WinValidateRect (hwnd, prcl, fIncludeChildren);
    838     __FPU_CW_Restore();
     942    __FPU_CW_Set(cw);
    839943    return ret;
    840944}
    841945#define WinValidateRect __FPU_CW_WinValidateRect
    842946
    843 inline BOOL APIENTRY __FPU_CW_WinValidateRegion (HWND hwnd, HRGN hrgn, BOOL fIncludeChildren)
    844 {
     947extern inline BOOL APIENTRY __FPU_CW_WinValidateRegion (HWND hwnd, HRGN hrgn, BOOL fIncludeChildren)
     948{
     949    unsigned int cw = __FPU_CW_Get();
    845950    BOOL ret = WinValidateRegion (hwnd, hrgn, fIncludeChildren);
    846     __FPU_CW_Restore();
     951    __FPU_CW_Set(cw);
    847952    return ret;
    848953}
    849954#define WinValidateRegion __FPU_CW_WinValidateRegion
    850955
    851 inline HWND APIENTRY __FPU_CW_WinWindowFromDC (HDC hdc)
    852 {
     956extern inline HWND APIENTRY __FPU_CW_WinWindowFromDC (HDC hdc)
     957{
     958    unsigned int cw = __FPU_CW_Get();
    853959    HWND ret = WinWindowFromDC (hdc);
    854     __FPU_CW_Restore();
     960    __FPU_CW_Set(cw);
    855961    return ret;
    856962}
    857963#define WinWindowFromDC __FPU_CW_WinWindowFromDC
    858964
    859 inline HWND APIENTRY __FPU_CW_WinWindowFromPoint (HWND hwnd, __const__ POINTL *pptl, BOOL fChildren)
    860 {
     965extern inline HWND APIENTRY __FPU_CW_WinWindowFromPoint (HWND hwnd, __const__ POINTL *pptl, BOOL fChildren)
     966{
     967    unsigned int cw = __FPU_CW_Get();
    861968    HWND ret = WinWindowFromPoint (hwnd, pptl, fChildren);
    862     __FPU_CW_Restore();
     969    __FPU_CW_Set(cw);
    863970    return ret;
    864971}
    865972#define WinWindowFromPoint __FPU_CW_WinWindowFromPoint
    866973
    867 inline ULONG APIENTRY __FPU_CW_WinCopyAccelTable (HACCEL haccel, PACCELTABLE pAccelTable,    ULONG cbCopyMax)
    868 {
     974extern inline ULONG APIENTRY __FPU_CW_WinCopyAccelTable (HACCEL haccel, PACCELTABLE pAccelTable,    ULONG cbCopyMax)
     975{
     976    unsigned int cw = __FPU_CW_Get();
    869977    ULONG ret = WinCopyAccelTable (haccel, pAccelTable,    cbCopyMax);
    870     __FPU_CW_Restore();
     978    __FPU_CW_Set(cw);
    871979    return ret;
    872980}
    873981#define WinCopyAccelTable __FPU_CW_WinCopyAccelTable
    874982
    875 inline HACCEL APIENTRY __FPU_CW_WinCreateAccelTable (HAB hab, PACCELTABLE pAccelTable)
    876 {
     983extern inline HACCEL APIENTRY __FPU_CW_WinCreateAccelTable (HAB hab, PACCELTABLE pAccelTable)
     984{
     985    unsigned int cw = __FPU_CW_Get();
    877986    HACCEL ret = WinCreateAccelTable (hab, pAccelTable);
    878     __FPU_CW_Restore();
     987    __FPU_CW_Set(cw);
    879988    return ret;
    880989}
    881990#define WinCreateAccelTable __FPU_CW_WinCreateAccelTable
    882991
    883 inline BOOL APIENTRY __FPU_CW_WinDestroyAccelTable (HACCEL haccel)
    884 {
     992extern inline BOOL APIENTRY __FPU_CW_WinDestroyAccelTable (HACCEL haccel)
     993{
     994    unsigned int cw = __FPU_CW_Get();
    885995    BOOL ret = WinDestroyAccelTable (haccel);
    886     __FPU_CW_Restore();
     996    __FPU_CW_Set(cw);
    887997    return ret;
    888998}
    889999#define WinDestroyAccelTable __FPU_CW_WinDestroyAccelTable
    8901000
    891 inline HACCEL APIENTRY __FPU_CW_WinLoadAccelTable (HAB hab, HMODULE hmod, ULONG idAccelTable)
    892 {
     1001extern inline HACCEL APIENTRY __FPU_CW_WinLoadAccelTable (HAB hab, HMODULE hmod, ULONG idAccelTable)
     1002{
     1003    unsigned int cw = __FPU_CW_Get();
    8931004    HACCEL ret = WinLoadAccelTable (hab, hmod, idAccelTable);
    894     __FPU_CW_Restore();
     1005    __FPU_CW_Set(cw);
    8951006    return ret;
    8961007}
    8971008#define WinLoadAccelTable __FPU_CW_WinLoadAccelTable
    8981009
    899 inline HACCEL APIENTRY __FPU_CW_WinQueryAccelTable (HAB hab, HWND hwndFrame)
    900 {
     1010extern inline HACCEL APIENTRY __FPU_CW_WinQueryAccelTable (HAB hab, HWND hwndFrame)
     1011{
     1012    unsigned int cw = __FPU_CW_Get();
    9011013    HACCEL ret = WinQueryAccelTable (hab, hwndFrame);
    902     __FPU_CW_Restore();
     1014    __FPU_CW_Set(cw);
    9031015    return ret;
    9041016}
    9051017#define WinQueryAccelTable __FPU_CW_WinQueryAccelTable
    9061018
    907 inline BOOL APIENTRY __FPU_CW_WinSetAccelTable (HAB hab, HACCEL haccel, HWND hwndFrame)
    908 {
     1019extern inline BOOL APIENTRY __FPU_CW_WinSetAccelTable (HAB hab, HACCEL haccel, HWND hwndFrame)
     1020{
     1021    unsigned int cw = __FPU_CW_Get();
    9091022    BOOL ret = WinSetAccelTable (hab, haccel, hwndFrame);
    910     __FPU_CW_Restore();
     1023    __FPU_CW_Set(cw);
    9111024    return ret;
    9121025}
    9131026#define WinSetAccelTable __FPU_CW_WinSetAccelTable
    9141027
    915 inline BOOL APIENTRY __FPU_CW_WinTranslateAccel (HAB hab, HWND hwnd, HACCEL haccel, PQMSG pqmsg)
    916 {
     1028extern inline BOOL APIENTRY __FPU_CW_WinTranslateAccel (HAB hab, HWND hwnd, HACCEL haccel, PQMSG pqmsg)
     1029{
     1030    unsigned int cw = __FPU_CW_Get();
    9171031    BOOL ret = WinTranslateAccel (hab, hwnd, haccel, pqmsg);
    918     __FPU_CW_Restore();
     1032    __FPU_CW_Set(cw);
    9191033    return ret;
    9201034}
    9211035#define WinTranslateAccel __FPU_CW_WinTranslateAccel
    9221036
    923 inline ATOM APIENTRY __FPU_CW_WinAddAtom (HATOMTBL hAtomTbl, PCSZ pszAtomName)
    924 {
     1037extern inline ATOM APIENTRY __FPU_CW_WinAddAtom (HATOMTBL hAtomTbl, PCSZ pszAtomName)
     1038{
     1039    unsigned int cw = __FPU_CW_Get();
    9251040    ATOM ret = WinAddAtom (hAtomTbl, pszAtomName);
    926     __FPU_CW_Restore();
     1041    __FPU_CW_Set(cw);
    9271042    return ret;
    9281043}
    9291044#define WinAddAtom __FPU_CW_WinAddAtom
    9301045
    931 inline HATOMTBL APIENTRY __FPU_CW_WinCreateAtomTable (ULONG cbInitial, ULONG cBuckets)
    932 {
     1046extern inline HATOMTBL APIENTRY __FPU_CW_WinCreateAtomTable (ULONG cbInitial, ULONG cBuckets)
     1047{
     1048    unsigned int cw = __FPU_CW_Get();
    9331049    HATOMTBL ret = WinCreateAtomTable (cbInitial, cBuckets);
    934     __FPU_CW_Restore();
     1050    __FPU_CW_Set(cw);
    9351051    return ret;
    9361052}
    9371053#define WinCreateAtomTable __FPU_CW_WinCreateAtomTable
    9381054
    939 inline ATOM APIENTRY __FPU_CW_WinDeleteAtom (HATOMTBL hAtomTbl, ATOM atom)
    940 {
     1055extern inline ATOM APIENTRY __FPU_CW_WinDeleteAtom (HATOMTBL hAtomTbl, ATOM atom)
     1056{
     1057    unsigned int cw = __FPU_CW_Get();
    9411058    ATOM ret = WinDeleteAtom (hAtomTbl, atom);
    942     __FPU_CW_Restore();
     1059    __FPU_CW_Set(cw);
    9431060    return ret;
    9441061}
    9451062#define WinDeleteAtom __FPU_CW_WinDeleteAtom
    9461063
    947 inline HATOMTBL APIENTRY __FPU_CW_WinDestroyAtomTable (HATOMTBL hAtomTbl)
    948 {
     1064extern inline HATOMTBL APIENTRY __FPU_CW_WinDestroyAtomTable (HATOMTBL hAtomTbl)
     1065{
     1066    unsigned int cw = __FPU_CW_Get();
    9491067    HATOMTBL ret = WinDestroyAtomTable (hAtomTbl);
    950     __FPU_CW_Restore();
     1068    __FPU_CW_Set(cw);
    9511069    return ret;
    9521070}
    9531071#define WinDestroyAtomTable __FPU_CW_WinDestroyAtomTable
    9541072
    955 inline ATOM APIENTRY __FPU_CW_WinFindAtom (HATOMTBL hAtomTbl, PCSZ pszAtomName)
    956 {
     1073extern inline ATOM APIENTRY __FPU_CW_WinFindAtom (HATOMTBL hAtomTbl, PCSZ pszAtomName)
     1074{
     1075    unsigned int cw = __FPU_CW_Get();
    9571076    ATOM ret = WinFindAtom (hAtomTbl, pszAtomName);
    958     __FPU_CW_Restore();
     1077    __FPU_CW_Set(cw);
    9591078    return ret;
    9601079}
    9611080#define WinFindAtom __FPU_CW_WinFindAtom
    9621081
    963 inline ULONG APIENTRY __FPU_CW_WinQueryAtomLength (HATOMTBL hAtomTbl, ATOM atom)
    964 {
     1082extern inline ULONG APIENTRY __FPU_CW_WinQueryAtomLength (HATOMTBL hAtomTbl, ATOM atom)
     1083{
     1084    unsigned int cw = __FPU_CW_Get();
    9651085    ULONG ret = WinQueryAtomLength (hAtomTbl, atom);
    966     __FPU_CW_Restore();
     1086    __FPU_CW_Set(cw);
    9671087    return ret;
    9681088}
    9691089#define WinQueryAtomLength __FPU_CW_WinQueryAtomLength
    9701090
    971 inline ULONG APIENTRY __FPU_CW_WinQueryAtomName (HATOMTBL hAtomTbl, ATOM atom, PSZ pchBuffer,    ULONG cchBufferMax)
    972 {
     1091extern inline ULONG APIENTRY __FPU_CW_WinQueryAtomName (HATOMTBL hAtomTbl, ATOM atom, PSZ pchBuffer,    ULONG cchBufferMax)
     1092{
     1093    unsigned int cw = __FPU_CW_Get();
    9731094    ULONG ret = WinQueryAtomName (hAtomTbl, atom, pchBuffer,    cchBufferMax);
    974     __FPU_CW_Restore();
     1095    __FPU_CW_Set(cw);
    9751096    return ret;
    9761097}
    9771098#define WinQueryAtomName __FPU_CW_WinQueryAtomName
    9781099
    979 inline ULONG APIENTRY __FPU_CW_WinQueryAtomUsage (HATOMTBL hAtomTbl, ATOM atom)
    980 {
     1100extern inline ULONG APIENTRY __FPU_CW_WinQueryAtomUsage (HATOMTBL hAtomTbl, ATOM atom)
     1101{
     1102    unsigned int cw = __FPU_CW_Get();
    9811103    ULONG ret = WinQueryAtomUsage (hAtomTbl, atom);
    982     __FPU_CW_Restore();
     1104    __FPU_CW_Set(cw);
    9831105    return ret;
    9841106}
    9851107#define WinQueryAtomUsage __FPU_CW_WinQueryAtomUsage
    9861108
    987 inline HATOMTBL APIENTRY __FPU_CW_WinQuerySystemAtomTable (VOID)
    988 {
     1109extern inline HATOMTBL APIENTRY __FPU_CW_WinQuerySystemAtomTable (VOID)
     1110{
     1111    unsigned int cw = __FPU_CW_Get();
    9891112    HATOMTBL ret = WinQuerySystemAtomTable ();
    990     __FPU_CW_Restore();
     1113    __FPU_CW_Set(cw);
    9911114    return ret;
    9921115}
    9931116#define WinQuerySystemAtomTable __FPU_CW_WinQuerySystemAtomTable
    9941117
    995 inline BOOL APIENTRY __FPU_CW_WinCloseClipbrd (HAB hab)
    996 {
     1118extern inline BOOL APIENTRY __FPU_CW_WinCloseClipbrd (HAB hab)
     1119{
     1120    unsigned int cw = __FPU_CW_Get();
    9971121    BOOL ret = WinCloseClipbrd (hab);
    998     __FPU_CW_Restore();
     1122    __FPU_CW_Set(cw);
    9991123    return ret;
    10001124}
    10011125#define WinCloseClipbrd __FPU_CW_WinCloseClipbrd
    10021126
    1003 inline BOOL APIENTRY __FPU_CW_WinEmptyClipbrd (HAB hab)
    1004 {
     1127extern inline BOOL APIENTRY __FPU_CW_WinEmptyClipbrd (HAB hab)
     1128{
     1129    unsigned int cw = __FPU_CW_Get();
    10051130    BOOL ret = WinEmptyClipbrd (hab);
    1006     __FPU_CW_Restore();
     1131    __FPU_CW_Set(cw);
    10071132    return ret;
    10081133}
    10091134#define WinEmptyClipbrd __FPU_CW_WinEmptyClipbrd
    10101135
    1011 inline ULONG APIENTRY __FPU_CW_WinEnumClipbrdFmts (HAB hab, ULONG fmt)
    1012 {
     1136extern inline ULONG APIENTRY __FPU_CW_WinEnumClipbrdFmts (HAB hab, ULONG fmt)
     1137{
     1138    unsigned int cw = __FPU_CW_Get();
    10131139    ULONG ret = WinEnumClipbrdFmts (hab, fmt);
    1014     __FPU_CW_Restore();
     1140    __FPU_CW_Set(cw);
    10151141    return ret;
    10161142}
    10171143#define WinEnumClipbrdFmts __FPU_CW_WinEnumClipbrdFmts
    10181144
    1019 inline BOOL APIENTRY __FPU_CW_WinOpenClipbrd (HAB hab)
    1020 {
     1145extern inline BOOL APIENTRY __FPU_CW_WinOpenClipbrd (HAB hab)
     1146{
     1147    unsigned int cw = __FPU_CW_Get();
    10211148    BOOL ret = WinOpenClipbrd (hab);
    1022     __FPU_CW_Restore();
     1149    __FPU_CW_Set(cw);
    10231150    return ret;
    10241151}
    10251152#define WinOpenClipbrd __FPU_CW_WinOpenClipbrd
    10261153
    1027 inline ULONG APIENTRY __FPU_CW_WinQueryClipbrdData (HAB hab, ULONG fmt)
    1028 {
     1154extern inline ULONG APIENTRY __FPU_CW_WinQueryClipbrdData (HAB hab, ULONG fmt)
     1155{
     1156    unsigned int cw = __FPU_CW_Get();
    10291157    ULONG ret = WinQueryClipbrdData (hab, fmt);
    1030     __FPU_CW_Restore();
     1158    __FPU_CW_Set(cw);
    10311159    return ret;
    10321160}
    10331161#define WinQueryClipbrdData __FPU_CW_WinQueryClipbrdData
    10341162
    1035 inline BOOL APIENTRY __FPU_CW_WinQueryClipbrdFmtInfo (HAB hab, ULONG fmt, PULONG prgfFmtInfo)
    1036 {
     1163extern inline BOOL APIENTRY __FPU_CW_WinQueryClipbrdFmtInfo (HAB hab, ULONG fmt, PULONG prgfFmtInfo)
     1164{
     1165    unsigned int cw = __FPU_CW_Get();
    10371166    BOOL ret = WinQueryClipbrdFmtInfo (hab, fmt, prgfFmtInfo);
    1038     __FPU_CW_Restore();
     1167    __FPU_CW_Set(cw);
    10391168    return ret;
    10401169}
    10411170#define WinQueryClipbrdFmtInfo __FPU_CW_WinQueryClipbrdFmtInfo
    10421171
    1043 inline HWND APIENTRY __FPU_CW_WinQueryClipbrdOwner (HAB hab)
    1044 {
     1172extern inline HWND APIENTRY __FPU_CW_WinQueryClipbrdOwner (HAB hab)
     1173{
     1174    unsigned int cw = __FPU_CW_Get();
    10451175    HWND ret = WinQueryClipbrdOwner (hab);
    1046     __FPU_CW_Restore();
     1176    __FPU_CW_Set(cw);
    10471177    return ret;
    10481178}
    10491179#define WinQueryClipbrdOwner __FPU_CW_WinQueryClipbrdOwner
    10501180
    1051 inline HWND APIENTRY __FPU_CW_WinQueryClipbrdViewer (HAB hab)
    1052 {
     1181extern inline HWND APIENTRY __FPU_CW_WinQueryClipbrdViewer (HAB hab)
     1182{
     1183    unsigned int cw = __FPU_CW_Get();
    10531184    HWND ret = WinQueryClipbrdViewer (hab);
    1054     __FPU_CW_Restore();
     1185    __FPU_CW_Set(cw);
    10551186    return ret;
    10561187}
    10571188#define WinQueryClipbrdViewer __FPU_CW_WinQueryClipbrdViewer
    10581189
    1059 inline BOOL APIENTRY __FPU_CW_WinSetClipbrdData (HAB hab, ULONG ulData, ULONG fmt, ULONG rgfFmtInfo)
    1060 {
     1190extern inline BOOL APIENTRY __FPU_CW_WinSetClipbrdData (HAB hab, ULONG ulData, ULONG fmt, ULONG rgfFmtInfo)
     1191{
     1192    unsigned int cw = __FPU_CW_Get();
    10611193    BOOL ret = WinSetClipbrdData (hab, ulData, fmt, rgfFmtInfo);
    1062     __FPU_CW_Restore();
     1194    __FPU_CW_Set(cw);
    10631195    return ret;
    10641196}
    10651197#define WinSetClipbrdData __FPU_CW_WinSetClipbrdData
    10661198
    1067 inline BOOL APIENTRY __FPU_CW_WinSetClipbrdOwner (HAB hab, HWND hwnd)
    1068 {
     1199extern inline BOOL APIENTRY __FPU_CW_WinSetClipbrdOwner (HAB hab, HWND hwnd)
     1200{
     1201    unsigned int cw = __FPU_CW_Get();
    10691202    BOOL ret = WinSetClipbrdOwner (hab, hwnd);
    1070     __FPU_CW_Restore();
     1203    __FPU_CW_Set(cw);
    10711204    return ret;
    10721205}
    10731206#define WinSetClipbrdOwner __FPU_CW_WinSetClipbrdOwner
    10741207
    1075 inline BOOL APIENTRY __FPU_CW_WinSetClipbrdViewer (HAB hab, HWND hwndNewClipViewer)
    1076 {
     1208extern inline BOOL APIENTRY __FPU_CW_WinSetClipbrdViewer (HAB hab, HWND hwndNewClipViewer)
     1209{
     1210    unsigned int cw = __FPU_CW_Get();
    10771211    BOOL ret = WinSetClipbrdViewer (hab, hwndNewClipViewer);
    1078     __FPU_CW_Restore();
     1212    __FPU_CW_Set(cw);
    10791213    return ret;
    10801214}
    10811215#define WinSetClipbrdViewer __FPU_CW_WinSetClipbrdViewer
    10821216
    1083 inline BOOL APIENTRY __FPU_CW_WinDdeInitiate (HWND hwndClient, PCSZ pszAppName, PCSZ pszTopicName,    __const__ CONVCONTEXT *pcctxt)
    1084 {
     1217extern inline BOOL APIENTRY __FPU_CW_WinDdeInitiate (HWND hwndClient, PCSZ pszAppName, PCSZ pszTopicName,    __const__ CONVCONTEXT *pcctxt)
     1218{
     1219    unsigned int cw = __FPU_CW_Get();
    10851220    BOOL ret = WinDdeInitiate (hwndClient, pszAppName, pszTopicName,    pcctxt);
    1086     __FPU_CW_Restore();
     1221    __FPU_CW_Set(cw);
    10871222    return ret;
    10881223}
    10891224#define WinDdeInitiate __FPU_CW_WinDdeInitiate
    10901225
    1091 inline BOOL APIENTRY __FPU_CW_WinDdePostMsg (HWND hwndTo, HWND hwndFrom, ULONG wm,    __const__ DDESTRUCT *pddest, ULONG flOptions)
    1092 {
     1226extern inline BOOL APIENTRY __FPU_CW_WinDdePostMsg (HWND hwndTo, HWND hwndFrom, ULONG wm,    __const__ DDESTRUCT *pddest, ULONG flOptions)
     1227{
     1228    unsigned int cw = __FPU_CW_Get();
    10931229    BOOL ret = WinDdePostMsg (hwndTo, hwndFrom, wm,    pddest, flOptions);
    1094     __FPU_CW_Restore();
     1230    __FPU_CW_Set(cw);
    10951231    return ret;
    10961232}
    10971233#define WinDdePostMsg __FPU_CW_WinDdePostMsg
    10981234
    1099 inline MRESULT APIENTRY __FPU_CW_WinDdeRespond (HWND hwndClient, HWND hwndServer, PCSZ pszAppName,    PCSZ pszTopicName, __const__ CONVCONTEXT *pcctxt)
    1100 {
     1235extern inline MRESULT APIENTRY __FPU_CW_WinDdeRespond (HWND hwndClient, HWND hwndServer, PCSZ pszAppName,    PCSZ pszTopicName, __const__ CONVCONTEXT *pcctxt)
     1236{
     1237    unsigned int cw = __FPU_CW_Get();
    11011238    MRESULT ret = WinDdeRespond (hwndClient, hwndServer, pszAppName,    pszTopicName, pcctxt);
    1102     __FPU_CW_Restore();
     1239    __FPU_CW_Set(cw);
    11031240    return ret;
    11041241}
    11051242#define WinDdeRespond __FPU_CW_WinDdeRespond
    11061243
    1107 inline ULONG APIENTRY __FPU_CW_WinCompareStrings (HAB hab, ULONG idcp, ULONG idcc, PCSZ psz1,    PCSZ psz2, ULONG reserved)
    1108 {
     1244extern inline ULONG APIENTRY __FPU_CW_WinCompareStrings (HAB hab, ULONG idcp, ULONG idcc, PCSZ psz1,    PCSZ psz2, ULONG reserved)
     1245{
     1246    unsigned int cw = __FPU_CW_Get();
    11091247    ULONG ret = WinCompareStrings (hab, idcp, idcc, psz1,    psz2, reserved);
    1110     __FPU_CW_Restore();
     1248    __FPU_CW_Set(cw);
    11111249    return ret;
    11121250}
    11131251#define WinCompareStrings __FPU_CW_WinCompareStrings
    11141252
    1115 inline UCHAR APIENTRY __FPU_CW_WinCpTranslateChar (HAB hab, ULONG cpSrc, UCHAR chSrc, ULONG cpDst)
    1116 {
     1253extern inline UCHAR APIENTRY __FPU_CW_WinCpTranslateChar (HAB hab, ULONG cpSrc, UCHAR chSrc, ULONG cpDst)
     1254{
     1255    unsigned int cw = __FPU_CW_Get();
    11171256    UCHAR ret = WinCpTranslateChar (hab, cpSrc, chSrc, cpDst);
    1118     __FPU_CW_Restore();
     1257    __FPU_CW_Set(cw);
    11191258    return ret;
    11201259}
    11211260#define WinCpTranslateChar __FPU_CW_WinCpTranslateChar
    11221261
    1123 inline BOOL APIENTRY __FPU_CW_WinCpTranslateString (HAB hab, ULONG cpSrc, PCSZ pszSrc, ULONG cpDst,    ULONG cchDestMax, PSZ pchDest)
    1124 {
     1262extern inline BOOL APIENTRY __FPU_CW_WinCpTranslateString (HAB hab, ULONG cpSrc, PCSZ pszSrc, ULONG cpDst,    ULONG cchDestMax, PSZ pchDest)
     1263{
     1264    unsigned int cw = __FPU_CW_Get();
    11251265    BOOL ret = WinCpTranslateString (hab, cpSrc, pszSrc, cpDst,    cchDestMax, pchDest);
    1126     __FPU_CW_Restore();
     1266    __FPU_CW_Set(cw);
    11271267    return ret;
    11281268}
    11291269#define WinCpTranslateString __FPU_CW_WinCpTranslateString
    11301270
    1131 inline PSZ APIENTRY __FPU_CW_WinNextChar (HAB hab, ULONG idcp, ULONG idcc, PCSZ psz)
    1132 {
     1271extern inline PSZ APIENTRY __FPU_CW_WinNextChar (HAB hab, ULONG idcp, ULONG idcc, PCSZ psz)
     1272{
     1273    unsigned int cw = __FPU_CW_Get();
    11331274    PSZ ret = WinNextChar (hab, idcp, idcc, psz);
    1134     __FPU_CW_Restore();
     1275    __FPU_CW_Set(cw);
    11351276    return ret;
    11361277}
    11371278#define WinNextChar __FPU_CW_WinNextChar
    11381279
    1139 inline PSZ APIENTRY __FPU_CW_WinPrevChar (HAB hab, ULONG idcp, ULONG idcc, PCSZ pszStart,    PCSZ psz)
    1140 {
     1280extern inline PSZ APIENTRY __FPU_CW_WinPrevChar (HAB hab, ULONG idcp, ULONG idcc, PCSZ pszStart,    PCSZ psz)
     1281{
     1282    unsigned int cw = __FPU_CW_Get();
    11411283    PSZ ret = WinPrevChar (hab, idcp, idcc, pszStart,    psz);
    1142     __FPU_CW_Restore();
     1284    __FPU_CW_Set(cw);
    11431285    return ret;
    11441286}
    11451287#define WinPrevChar __FPU_CW_WinPrevChar
    11461288
    1147 inline ULONG APIENTRY __FPU_CW_WinQueryCp (HMQ hmq)
    1148 {
     1289extern inline ULONG APIENTRY __FPU_CW_WinQueryCp (HMQ hmq)
     1290{
     1291    unsigned int cw = __FPU_CW_Get();
    11491292    ULONG ret = WinQueryCp (hmq);
    1150     __FPU_CW_Restore();
     1293    __FPU_CW_Set(cw);
    11511294    return ret;
    11521295}
    11531296#define WinQueryCp __FPU_CW_WinQueryCp
    11541297
    1155 inline ULONG APIENTRY __FPU_CW_WinQueryCpList (HAB hab, ULONG ccpMax, PULONG prgcp)
    1156 {
     1298extern inline ULONG APIENTRY __FPU_CW_WinQueryCpList (HAB hab, ULONG ccpMax, PULONG prgcp)
     1299{
     1300    unsigned int cw = __FPU_CW_Get();
    11571301    ULONG ret = WinQueryCpList (hab, ccpMax, prgcp);
    1158     __FPU_CW_Restore();
     1302    __FPU_CW_Set(cw);
    11591303    return ret;
    11601304}
    11611305#define WinQueryCpList __FPU_CW_WinQueryCpList
    11621306
    1163 inline BOOL APIENTRY __FPU_CW_WinSetCp (HMQ hmq, ULONG idCodePage)
    1164 {
     1307extern inline BOOL APIENTRY __FPU_CW_WinSetCp (HMQ hmq, ULONG idCodePage)
     1308{
     1309    unsigned int cw = __FPU_CW_Get();
    11651310    BOOL ret = WinSetCp (hmq, idCodePage);
    1166     __FPU_CW_Restore();
     1311    __FPU_CW_Set(cw);
    11671312    return ret;
    11681313}
    11691314#define WinSetCp __FPU_CW_WinSetCp
    11701315
    1171 inline ULONG APIENTRY __FPU_CW_WinUpper (HAB hab, ULONG idcp, ULONG idcc, PSZ psz)
    1172 {
     1316extern inline ULONG APIENTRY __FPU_CW_WinUpper (HAB hab, ULONG idcp, ULONG idcc, PSZ psz)
     1317{
     1318    unsigned int cw = __FPU_CW_Get();
    11731319    ULONG ret = WinUpper (hab, idcp, idcc, psz);
    1174     __FPU_CW_Restore();
     1320    __FPU_CW_Set(cw);
    11751321    return ret;
    11761322}
    11771323#define WinUpper __FPU_CW_WinUpper
    11781324
    1179 inline ULONG APIENTRY __FPU_CW_WinUpperChar (HAB hab, ULONG idcp, ULONG idcc, ULONG c)
    1180 {
     1325extern inline ULONG APIENTRY __FPU_CW_WinUpperChar (HAB hab, ULONG idcp, ULONG idcc, ULONG c)
     1326{
     1327    unsigned int cw = __FPU_CW_Get();
    11811328    ULONG ret = WinUpperChar (hab, idcp, idcc, c);
    1182     __FPU_CW_Restore();
     1329    __FPU_CW_Set(cw);
    11831330    return ret;
    11841331}
    11851332#define WinUpperChar __FPU_CW_WinUpperChar
    11861333
    1187 inline BOOL APIENTRY __FPU_CW_WinCreateCursor (HWND hwnd, LONG x, LONG y, LONG cx, LONG cy,    ULONG fs, PRECTL prclClip)
    1188 {
     1334extern inline BOOL APIENTRY __FPU_CW_WinCreateCursor (HWND hwnd, LONG x, LONG y, LONG cx, LONG cy,    ULONG fs, PRECTL prclClip)
     1335{
     1336    unsigned int cw = __FPU_CW_Get();
    11891337    BOOL ret = WinCreateCursor (hwnd, x, y, cx, cy,    fs, prclClip);
    1190     __FPU_CW_Restore();
     1338    __FPU_CW_Set(cw);
    11911339    return ret;
    11921340}
    11931341#define WinCreateCursor __FPU_CW_WinCreateCursor
    11941342
    1195 inline BOOL APIENTRY __FPU_CW_WinDestroyCursor (HWND hwnd)
    1196 {
     1343extern inline BOOL APIENTRY __FPU_CW_WinDestroyCursor (HWND hwnd)
     1344{
     1345    unsigned int cw = __FPU_CW_Get();
    11971346    BOOL ret = WinDestroyCursor (hwnd);
    1198     __FPU_CW_Restore();
     1347    __FPU_CW_Set(cw);
    11991348    return ret;
    12001349}
    12011350#define WinDestroyCursor __FPU_CW_WinDestroyCursor
    12021351
    1203 inline BOOL APIENTRY __FPU_CW_WinShowCursor (HWND hwnd, BOOL fShow)
    1204 {
     1352extern inline BOOL APIENTRY __FPU_CW_WinShowCursor (HWND hwnd, BOOL fShow)
     1353{
     1354    unsigned int cw = __FPU_CW_Get();
    12051355    BOOL ret = WinShowCursor (hwnd, fShow);
    1206     __FPU_CW_Restore();
     1356    __FPU_CW_Set(cw);
    12071357    return ret;
    12081358}
    12091359#define WinShowCursor __FPU_CW_WinShowCursor
    12101360
    1211 inline BOOL APIENTRY __FPU_CW_WinQueryCursorInfo (HWND hwndDesktop, PCURSORINFO pCursorInfo)
    1212 {
     1361extern inline BOOL APIENTRY __FPU_CW_WinQueryCursorInfo (HWND hwndDesktop, PCURSORINFO pCursorInfo)
     1362{
     1363    unsigned int cw = __FPU_CW_Get();
    12131364    BOOL ret = WinQueryCursorInfo (hwndDesktop, pCursorInfo);
    1214     __FPU_CW_Restore();
     1365    __FPU_CW_Set(cw);
    12151366    return ret;
    12161367}
    12171368#define WinQueryCursorInfo __FPU_CW_WinQueryCursorInfo
    12181369
    1219 inline BOOL APIENTRY __FPU_CW_WinQueryDesktopBkgnd (HWND hwndDesktop, PDESKTOP pdsk)
    1220 {
     1370extern inline BOOL APIENTRY __FPU_CW_WinQueryDesktopBkgnd (HWND hwndDesktop, PDESKTOP pdsk)
     1371{
     1372    unsigned int cw = __FPU_CW_Get();
    12211373    BOOL ret = WinQueryDesktopBkgnd (hwndDesktop, pdsk);
    1222     __FPU_CW_Restore();
     1374    __FPU_CW_Set(cw);
    12231375    return ret;
    12241376}
    12251377#define WinQueryDesktopBkgnd __FPU_CW_WinQueryDesktopBkgnd
    12261378
    1227 inline HBITMAP APIENTRY __FPU_CW_WinSetDesktopBkgnd (HWND hwndDesktop, __const__ DESKTOP *pdskNew)
    1228 {
     1379extern inline HBITMAP APIENTRY __FPU_CW_WinSetDesktopBkgnd (HWND hwndDesktop, __const__ DESKTOP *pdskNew)
     1380{
     1381    unsigned int cw = __FPU_CW_Get();
    12291382    HBITMAP ret = WinSetDesktopBkgnd (hwndDesktop, pdskNew);
    1230     __FPU_CW_Restore();
     1383    __FPU_CW_Set(cw);
    12311384    return ret;
    12321385}
    12331386#define WinSetDesktopBkgnd __FPU_CW_WinSetDesktopBkgnd
    12341387
    1235 inline BOOL APIENTRY __FPU_CW_WinAlarm (HWND hwndDesktop, ULONG rgfType)
    1236 {
     1388extern inline BOOL APIENTRY __FPU_CW_WinAlarm (HWND hwndDesktop, ULONG rgfType)
     1389{
     1390    unsigned int cw = __FPU_CW_Get();
    12371391    BOOL ret = WinAlarm (hwndDesktop, rgfType);
    1238     __FPU_CW_Restore();
     1392    __FPU_CW_Set(cw);
    12391393    return ret;
    12401394}
    12411395#define WinAlarm __FPU_CW_WinAlarm
    12421396
    1243 inline MRESULT APIENTRY __FPU_CW_WinDefDlgProc (HWND hwndDlg, ULONG msg, MPARAM mp1, MPARAM mp2)
    1244 {
     1397extern inline MRESULT APIENTRY __FPU_CW_WinDefDlgProc (HWND hwndDlg, ULONG msg, MPARAM mp1, MPARAM mp2)
     1398{
     1399    unsigned int cw = __FPU_CW_Get();
    12451400    MRESULT ret = WinDefDlgProc (hwndDlg, msg, mp1, mp2);
    1246     __FPU_CW_Restore();
     1401    __FPU_CW_Set(cw);
    12471402    return ret;
    12481403}
    12491404#define WinDefDlgProc __FPU_CW_WinDefDlgProc
    12501405
    1251 inline BOOL APIENTRY __FPU_CW_WinDismissDlg (HWND hwndDlg, ULONG usResult)
    1252 {
     1406extern inline BOOL APIENTRY __FPU_CW_WinDismissDlg (HWND hwndDlg, ULONG usResult)
     1407{
     1408    unsigned int cw = __FPU_CW_Get();
    12531409    BOOL ret = WinDismissDlg (hwndDlg, usResult);
    1254     __FPU_CW_Restore();
     1410    __FPU_CW_Set(cw);
    12551411    return ret;
    12561412}
    12571413#define WinDismissDlg __FPU_CW_WinDismissDlg
    12581414
    1259 inline ULONG APIENTRY __FPU_CW_WinDlgBox (HWND hwndParent, HWND hwndOwner, PFNWP pfnDlgProc,    HMODULE hmod, ULONG idDlg, PVOID pCreateParams)
    1260 {
     1415extern inline ULONG APIENTRY __FPU_CW_WinDlgBox (HWND hwndParent, HWND hwndOwner, PFNWP pfnDlgProc,    HMODULE hmod, ULONG idDlg, PVOID pCreateParams)
     1416{
     1417    unsigned int cw = __FPU_CW_Get();
    12611418    ULONG ret = WinDlgBox (hwndParent, hwndOwner, pfnDlgProc,    hmod, idDlg, pCreateParams);
    1262     __FPU_CW_Restore();
     1419    __FPU_CW_Set(cw);
    12631420    return ret;
    12641421}
    12651422#define WinDlgBox __FPU_CW_WinDlgBox
    12661423
    1267 inline BOOL APIENTRY __FPU_CW_WinGetDlgMsg (HWND hwndDlg, PQMSG pqmsg)
    1268 {
     1424extern inline BOOL APIENTRY __FPU_CW_WinGetDlgMsg (HWND hwndDlg, PQMSG pqmsg)
     1425{
     1426    unsigned int cw = __FPU_CW_Get();
    12691427    BOOL ret = WinGetDlgMsg (hwndDlg, pqmsg);
    1270     __FPU_CW_Restore();
     1428    __FPU_CW_Set(cw);
    12711429    return ret;
    12721430}
    12731431#define WinGetDlgMsg __FPU_CW_WinGetDlgMsg
    12741432
    1275 inline HWND APIENTRY __FPU_CW_WinLoadDlg (HWND hwndParent, HWND hwndOwner, PFNWP pfnDlgProc,    HMODULE hmod, ULONG idDlg, PVOID pCreateParams)
    1276 {
     1433extern inline HWND APIENTRY __FPU_CW_WinLoadDlg (HWND hwndParent, HWND hwndOwner, PFNWP pfnDlgProc,    HMODULE hmod, ULONG idDlg, PVOID pCreateParams)
     1434{
     1435    unsigned int cw = __FPU_CW_Get();
    12771436    HWND ret = WinLoadDlg (hwndParent, hwndOwner, pfnDlgProc,    hmod, idDlg, pCreateParams);
    1278     __FPU_CW_Restore();
     1437    __FPU_CW_Set(cw);
    12791438    return ret;
    12801439}
    12811440#define WinLoadDlg __FPU_CW_WinLoadDlg
    12821441
    1283 inline ULONG APIENTRY __FPU_CW_WinMessageBox (HWND hwndParent, HWND hwndOwner, PCSZ pszText,    PCSZ pszCaption, ULONG idWindow, ULONG flStyle)
    1284 {
     1442extern inline ULONG APIENTRY __FPU_CW_WinMessageBox (HWND hwndParent, HWND hwndOwner, PCSZ pszText,    PCSZ pszCaption, ULONG idWindow, ULONG flStyle)
     1443{
     1444    unsigned int cw = __FPU_CW_Get();
    12851445    ULONG ret = WinMessageBox (hwndParent, hwndOwner, pszText,    pszCaption, idWindow, flStyle);
    1286     __FPU_CW_Restore();
     1446    __FPU_CW_Set(cw);
    12871447    return ret;
    12881448}
    12891449#define WinMessageBox __FPU_CW_WinMessageBox
    12901450
    1291 inline ULONG APIENTRY __FPU_CW_WinMessageBox2 (HWND hwndParent, HWND hwndOwner, PCSZ pszText,    PCSZ pszCaption, ULONG idWindow, PMB2INFO pmb2info)
    1292 {
     1451extern inline ULONG APIENTRY __FPU_CW_WinMessageBox2 (HWND hwndParent, HWND hwndOwner, PCSZ pszText,    PCSZ pszCaption, ULONG idWindow, PMB2INFO pmb2info)
     1452{
     1453    unsigned int cw = __FPU_CW_Get();
    12931454    ULONG ret = WinMessageBox2 (hwndParent, hwndOwner, pszText,    pszCaption, idWindow, pmb2info);
    1294     __FPU_CW_Restore();
     1455    __FPU_CW_Set(cw);
    12951456    return ret;
    12961457}
    12971458#define WinMessageBox2 __FPU_CW_WinMessageBox2
    12981459
    1299 inline BOOL APIENTRY __FPU_CW_WinQueryDlgItemShort (HWND hwndDlg, ULONG idItem, PSHORT pResult,    BOOL fSigned)
    1300 {
     1460extern inline BOOL APIENTRY __FPU_CW_WinQueryDlgItemShort (HWND hwndDlg, ULONG idItem, PSHORT pResult,    BOOL fSigned)
     1461{
     1462    unsigned int cw = __FPU_CW_Get();
    13011463    BOOL ret = WinQueryDlgItemShort (hwndDlg, idItem, pResult,    fSigned);
    1302     __FPU_CW_Restore();
     1464    __FPU_CW_Set(cw);
    13031465    return ret;
    13041466}
    13051467#define WinQueryDlgItemShort __FPU_CW_WinQueryDlgItemShort
    13061468
    1307 inline ULONG APIENTRY __FPU_CW_WinQueryDlgItemText (HWND hwndDlg, ULONG idItem, LONG cchBufferMax,    PSZ pchBuffer)
    1308 {
     1469extern inline ULONG APIENTRY __FPU_CW_WinQueryDlgItemText (HWND hwndDlg, ULONG idItem, LONG cchBufferMax,    PSZ pchBuffer)
     1470{
     1471    unsigned int cw = __FPU_CW_Get();
    13091472    ULONG ret = WinQueryDlgItemText (hwndDlg, idItem, cchBufferMax,    pchBuffer);
    1310     __FPU_CW_Restore();
     1473    __FPU_CW_Set(cw);
    13111474    return ret;
    13121475}
    13131476#define WinQueryDlgItemText __FPU_CW_WinQueryDlgItemText
    13141477
    1315 inline LONG APIENTRY __FPU_CW_WinQueryDlgItemTextLength (HWND hwndDlg, ULONG idItem)
    1316 {
     1478extern inline LONG APIENTRY __FPU_CW_WinQueryDlgItemTextLength (HWND hwndDlg, ULONG idItem)
     1479{
     1480    unsigned int cw = __FPU_CW_Get();
    13171481    LONG ret = WinQueryDlgItemTextLength (hwndDlg, idItem);
    1318     __FPU_CW_Restore();
     1482    __FPU_CW_Set(cw);
    13191483    return ret;
    13201484}
    13211485#define WinQueryDlgItemTextLength __FPU_CW_WinQueryDlgItemTextLength
    13221486
    1323 inline BOOL APIENTRY __FPU_CW_WinSetDlgItemShort (HWND hwndDlg, ULONG idItem, USHORT usValue,    BOOL fSigned)
    1324 {
     1487extern inline BOOL APIENTRY __FPU_CW_WinSetDlgItemShort (HWND hwndDlg, ULONG idItem, USHORT usValue,    BOOL fSigned)
     1488{
     1489    unsigned int cw = __FPU_CW_Get();
    13251490    BOOL ret = WinSetDlgItemShort (hwndDlg, idItem, usValue,    fSigned);
    1326     __FPU_CW_Restore();
     1491    __FPU_CW_Set(cw);
    13271492    return ret;
    13281493}
    13291494#define WinSetDlgItemShort __FPU_CW_WinSetDlgItemShort
    13301495
    1331 inline BOOL APIENTRY __FPU_CW_WinSetDlgItemText (HWND hwndDlg, ULONG idItem, PCSZ pszText)
    1332 {
     1496extern inline BOOL APIENTRY __FPU_CW_WinSetDlgItemText (HWND hwndDlg, ULONG idItem, PCSZ pszText)
     1497{
     1498    unsigned int cw = __FPU_CW_Get();
    13331499    BOOL ret = WinSetDlgItemText (hwndDlg, idItem, pszText);
    1334     __FPU_CW_Restore();
     1500    __FPU_CW_Set(cw);
    13351501    return ret;
    13361502}
    13371503#define WinSetDlgItemText __FPU_CW_WinSetDlgItemText
    13381504
    1339 inline HWND APIENTRY __FPU_CW_WinCreateDlg (HWND hwndParent, HWND hwndOwner, PFNWP pfnDlgProc,    PDLGTEMPLATE pdlgt, PVOID pCreateParams)
    1340 {
     1505extern inline HWND APIENTRY __FPU_CW_WinCreateDlg (HWND hwndParent, HWND hwndOwner, PFNWP pfnDlgProc,    PDLGTEMPLATE pdlgt, PVOID pCreateParams)
     1506{
     1507    unsigned int cw = __FPU_CW_Get();
    13411508    HWND ret = WinCreateDlg (hwndParent, hwndOwner, pfnDlgProc,    pdlgt, pCreateParams);
    1342     __FPU_CW_Restore();
     1509    __FPU_CW_Set(cw);
    13431510    return ret;
    13441511}
    13451512#define WinCreateDlg __FPU_CW_WinCreateDlg
    13461513
    1347 inline HWND APIENTRY __FPU_CW_WinEnumDlgItem (HWND hwndDlg, HWND hwnd, ULONG code)
    1348 {
     1514extern inline HWND APIENTRY __FPU_CW_WinEnumDlgItem (HWND hwndDlg, HWND hwnd, ULONG code)
     1515{
     1516    unsigned int cw = __FPU_CW_Get();
    13491517    HWND ret = WinEnumDlgItem (hwndDlg, hwnd, code);
    1350     __FPU_CW_Restore();
     1518    __FPU_CW_Set(cw);
    13511519    return ret;
    13521520}
    13531521#define WinEnumDlgItem __FPU_CW_WinEnumDlgItem
    13541522
    1355 inline BOOL APIENTRY __FPU_CW_WinMapDlgPoints (HWND hwndDlg, PPOINTL prgwptl, ULONG cwpt,    BOOL fCalcWindowCoords)
    1356 {
     1523extern inline BOOL APIENTRY __FPU_CW_WinMapDlgPoints (HWND hwndDlg, PPOINTL prgwptl, ULONG cwpt,    BOOL fCalcWindowCoords)
     1524{
     1525    unsigned int cw = __FPU_CW_Get();
    13571526    BOOL ret = WinMapDlgPoints (hwndDlg, prgwptl, cwpt,    fCalcWindowCoords);
    1358     __FPU_CW_Restore();
     1527    __FPU_CW_Set(cw);
    13591528    return ret;
    13601529}
    13611530#define WinMapDlgPoints __FPU_CW_WinMapDlgPoints
    13621531
    1363 inline ULONG APIENTRY __FPU_CW_WinProcessDlg (HWND hwndDlg)
    1364 {
     1532extern inline ULONG APIENTRY __FPU_CW_WinProcessDlg (HWND hwndDlg)
     1533{
     1534    unsigned int cw = __FPU_CW_Get();
    13651535    ULONG ret = WinProcessDlg (hwndDlg);
    1366     __FPU_CW_Restore();
     1536    __FPU_CW_Set(cw);
    13671537    return ret;
    13681538}
    13691539#define WinProcessDlg __FPU_CW_WinProcessDlg
    13701540
    1371 inline MRESULT APIENTRY __FPU_CW_WinSendDlgItemMsg (HWND hwndDlg, ULONG idItem, ULONG msg,    MPARAM mp1, MPARAM mp2)
    1372 {
     1541extern inline MRESULT APIENTRY __FPU_CW_WinSendDlgItemMsg (HWND hwndDlg, ULONG idItem, ULONG msg,    MPARAM mp1, MPARAM mp2)
     1542{
     1543    unsigned int cw = __FPU_CW_Get();
    13731544    MRESULT ret = WinSendDlgItemMsg (hwndDlg, idItem, msg,    mp1, mp2);
    1374     __FPU_CW_Restore();
     1545    __FPU_CW_Set(cw);
    13751546    return ret;
    13761547}
    13771548#define WinSendDlgItemMsg __FPU_CW_WinSendDlgItemMsg
    13781549
    1379 inline LONG APIENTRY __FPU_CW_WinSubstituteStrings (HWND hwnd, PCSZ pszSrc, LONG cchDstMax,    PSZ pszDst)
    1380 {
     1550extern inline LONG APIENTRY __FPU_CW_WinSubstituteStrings (HWND hwnd, PCSZ pszSrc, LONG cchDstMax,    PSZ pszDst)
     1551{
     1552    unsigned int cw = __FPU_CW_Get();
    13811553    LONG ret = WinSubstituteStrings (hwnd, pszSrc, cchDstMax,    pszDst);
    1382     __FPU_CW_Restore();
     1554    __FPU_CW_Set(cw);
    13831555    return ret;
    13841556}
    13851557#define WinSubstituteStrings __FPU_CW_WinSubstituteStrings
    13861558
    1387 inline ERRORID APIENTRY __FPU_CW_WinGetLastError (HAB hab)
    1388 {
     1559extern inline ERRORID APIENTRY __FPU_CW_WinGetLastError (HAB hab)
     1560{
     1561    unsigned int cw = __FPU_CW_Get();
    13891562    ERRORID ret = WinGetLastError (hab);
    1390     __FPU_CW_Restore();
     1563    __FPU_CW_Set(cw);
    13911564    return ret;
    13921565}
    13931566#define WinGetLastError __FPU_CW_WinGetLastError
    13941567
    1395 inline BOOL APIENTRY __FPU_CW_WinFreeErrorInfo (PERRINFO perrinfo)
    1396 {
     1568extern inline BOOL APIENTRY __FPU_CW_WinFreeErrorInfo (PERRINFO perrinfo)
     1569{
     1570    unsigned int cw = __FPU_CW_Get();
    13971571    BOOL ret = WinFreeErrorInfo (perrinfo);
    1398     __FPU_CW_Restore();
     1572    __FPU_CW_Set(cw);
    13991573    return ret;
    14001574}
    14011575#define WinFreeErrorInfo __FPU_CW_WinFreeErrorInfo
    14021576
    1403 inline PERRINFO APIENTRY __FPU_CW_WinGetErrorInfo (HAB hab)
    1404 {
     1577extern inline PERRINFO APIENTRY __FPU_CW_WinGetErrorInfo (HAB hab)
     1578{
     1579    unsigned int cw = __FPU_CW_Get();
    14051580    PERRINFO ret = WinGetErrorInfo (hab);
    1406     __FPU_CW_Restore();
     1581    __FPU_CW_Set(cw);
    14071582    return ret;
    14081583}
    14091584#define WinGetErrorInfo __FPU_CW_WinGetErrorInfo
    14101585
    1411 inline BOOL APIENTRY __FPU_CW_WinCallMsgFilter (HAB hab, PQMSG pqmsg, ULONG msgf)
    1412 {
     1586extern inline BOOL APIENTRY __FPU_CW_WinCallMsgFilter (HAB hab, PQMSG pqmsg, ULONG msgf)
     1587{
     1588    unsigned int cw = __FPU_CW_Get();
    14131589    BOOL ret = WinCallMsgFilter (hab, pqmsg, msgf);
    1414     __FPU_CW_Restore();
     1590    __FPU_CW_Set(cw);
    14151591    return ret;
    14161592}
    14171593#define WinCallMsgFilter __FPU_CW_WinCallMsgFilter
    14181594
    1419 inline BOOL APIENTRY __FPU_CW_WinReleaseHook (HAB hab, HMQ hmq, LONG iHook, PFN pfnHook, HMODULE hmod)
    1420 {
     1595extern inline BOOL APIENTRY __FPU_CW_WinReleaseHook (HAB hab, HMQ hmq, LONG iHook, PFN pfnHook, HMODULE hmod)
     1596{
     1597    unsigned int cw = __FPU_CW_Get();
    14211598    BOOL ret = WinReleaseHook (hab, hmq, iHook, pfnHook, hmod);
    1422     __FPU_CW_Restore();
     1599    __FPU_CW_Set(cw);
    14231600    return ret;
    14241601}
    14251602#define WinReleaseHook __FPU_CW_WinReleaseHook
    14261603
    1427 inline BOOL APIENTRY __FPU_CW_WinSetHook (HAB hab, HMQ hmq, LONG iHook, PFN pfnHook, HMODULE hmod)
    1428 {
     1604extern inline BOOL APIENTRY __FPU_CW_WinSetHook (HAB hab, HMQ hmq, LONG iHook, PFN pfnHook, HMODULE hmod)
     1605{
     1606    unsigned int cw = __FPU_CW_Get();
    14291607    BOOL ret = WinSetHook (hab, hmq, iHook, pfnHook, hmod);
    1430     __FPU_CW_Restore();
     1608    __FPU_CW_Set(cw);
    14311609    return ret;
    14321610}
    14331611#define WinSetHook __FPU_CW_WinSetHook
    14341612
    1435 inline BOOL APIENTRY __FPU_CW_WinFocusChange (HWND hwndDesktop, HWND hwndSetFocus, ULONG flFocusChange)
    1436 {
     1613extern inline BOOL APIENTRY __FPU_CW_WinFocusChange (HWND hwndDesktop, HWND hwndSetFocus, ULONG flFocusChange)
     1614{
     1615    unsigned int cw = __FPU_CW_Get();
    14371616    BOOL ret = WinFocusChange (hwndDesktop, hwndSetFocus, flFocusChange);
    1438     __FPU_CW_Restore();
     1617    __FPU_CW_Set(cw);
    14391618    return ret;
    14401619}
    14411620#define WinFocusChange __FPU_CW_WinFocusChange
    14421621
    1443 inline BOOL APIENTRY __FPU_CW_WinLockupSystem (HAB hab)
    1444 {
     1622extern inline BOOL APIENTRY __FPU_CW_WinLockupSystem (HAB hab)
     1623{
     1624    unsigned int cw = __FPU_CW_Get();
    14451625    BOOL ret = WinLockupSystem (hab);
    1446     __FPU_CW_Restore();
     1626    __FPU_CW_Set(cw);
    14471627    return ret;
    14481628}
    14491629#define WinLockupSystem __FPU_CW_WinLockupSystem
    14501630
    1451 inline BOOL APIENTRY __FPU_CW_WinSetFocus (HWND hwndDesktop, HWND hwndSetFocus)
    1452 {
     1631extern inline BOOL APIENTRY __FPU_CW_WinSetFocus (HWND hwndDesktop, HWND hwndSetFocus)
     1632{
     1633    unsigned int cw = __FPU_CW_Get();
    14531634    BOOL ret = WinSetFocus (hwndDesktop, hwndSetFocus);
    1454     __FPU_CW_Restore();
     1635    __FPU_CW_Set(cw);
    14551636    return ret;
    14561637}
    14571638#define WinSetFocus __FPU_CW_WinSetFocus
    14581639
    1459 inline BOOL APIENTRY __FPU_CW_WinUnlockSystem (HAB hab, PCSZ pszPassword)
    1460 {
     1640extern inline BOOL APIENTRY __FPU_CW_WinUnlockSystem (HAB hab, PCSZ pszPassword)
     1641{
     1642    unsigned int cw = __FPU_CW_Get();
    14611643    BOOL ret = WinUnlockSystem (hab, pszPassword);
    1462     __FPU_CW_Restore();
     1644    __FPU_CW_Set(cw);
    14631645    return ret;
    14641646}
    14651647#define WinUnlockSystem __FPU_CW_WinUnlockSystem
    14661648
    1467 inline BOOL APIENTRY __FPU_CW_WinCheckInput (HAB hab)
    1468 {
     1649extern inline BOOL APIENTRY __FPU_CW_WinCheckInput (HAB hab)
     1650{
     1651    unsigned int cw = __FPU_CW_Get();
    14691652    BOOL ret = WinCheckInput (hab);
    1470     __FPU_CW_Restore();
     1653    __FPU_CW_Set(cw);
    14711654    return ret;
    14721655}
    14731656#define WinCheckInput __FPU_CW_WinCheckInput
    14741657
    1475 inline BOOL APIENTRY __FPU_CW_WinEnablePhysInput (HWND hwndDesktop, BOOL fEnable)
    1476 {
     1658extern inline BOOL APIENTRY __FPU_CW_WinEnablePhysInput (HWND hwndDesktop, BOOL fEnable)
     1659{
     1660    unsigned int cw = __FPU_CW_Get();
    14771661    BOOL ret = WinEnablePhysInput (hwndDesktop, fEnable);
    1478     __FPU_CW_Restore();
     1662    __FPU_CW_Set(cw);
    14791663    return ret;
    14801664}
    14811665#define WinEnablePhysInput __FPU_CW_WinEnablePhysInput
    14821666
    1483 inline LONG APIENTRY __FPU_CW_WinGetKeyState (HWND hwndDesktop, LONG vkey)
    1484 {
     1667extern inline LONG APIENTRY __FPU_CW_WinGetKeyState (HWND hwndDesktop, LONG vkey)
     1668{
     1669    unsigned int cw = __FPU_CW_Get();
    14851670    LONG ret = WinGetKeyState (hwndDesktop, vkey);
    1486     __FPU_CW_Restore();
     1671    __FPU_CW_Set(cw);
    14871672    return ret;
    14881673}
    14891674#define WinGetKeyState __FPU_CW_WinGetKeyState
    14901675
    1491 inline LONG APIENTRY __FPU_CW_WinGetPhysKeyState (HWND hwndDesktop, LONG sc)
    1492 {
     1676extern inline LONG APIENTRY __FPU_CW_WinGetPhysKeyState (HWND hwndDesktop, LONG sc)
     1677{
     1678    unsigned int cw = __FPU_CW_Get();
    14931679    LONG ret = WinGetPhysKeyState (hwndDesktop, sc);
    1494     __FPU_CW_Restore();
     1680    __FPU_CW_Set(cw);
    14951681    return ret;
    14961682}
    14971683#define WinGetPhysKeyState __FPU_CW_WinGetPhysKeyState
    14981684
    1499 inline BOOL APIENTRY __FPU_CW_WinIsPhysInputEnabled (HWND hwndDesktop)
    1500 {
     1685extern inline BOOL APIENTRY __FPU_CW_WinIsPhysInputEnabled (HWND hwndDesktop)
     1686{
     1687    unsigned int cw = __FPU_CW_Get();
    15011688    BOOL ret = WinIsPhysInputEnabled (hwndDesktop);
    1502     __FPU_CW_Restore();
     1689    __FPU_CW_Set(cw);
    15031690    return ret;
    15041691}
    15051692#define WinIsPhysInputEnabled __FPU_CW_WinIsPhysInputEnabled
    15061693
    1507 inline HWND APIENTRY __FPU_CW_WinQueryCapture (HWND hwndDesktop)
    1508 {
     1694extern inline HWND APIENTRY __FPU_CW_WinQueryCapture (HWND hwndDesktop)
     1695{
     1696    unsigned int cw = __FPU_CW_Get();
    15091697    HWND ret = WinQueryCapture (hwndDesktop);
    1510     __FPU_CW_Restore();
     1698    __FPU_CW_Set(cw);
    15111699    return ret;
    15121700}
    15131701#define WinQueryCapture __FPU_CW_WinQueryCapture
    15141702
    1515 inline HWND APIENTRY __FPU_CW_WinQueryFocus (HWND hwndDesktop)
    1516 {
     1703extern inline HWND APIENTRY __FPU_CW_WinQueryFocus (HWND hwndDesktop)
     1704{
     1705    unsigned int cw = __FPU_CW_Get();
    15171706    HWND ret = WinQueryFocus (hwndDesktop);
    1518     __FPU_CW_Restore();
     1707    __FPU_CW_Set(cw);
    15191708    return ret;
    15201709}
    15211710#define WinQueryFocus __FPU_CW_WinQueryFocus
    15221711
    1523 inline ULONG APIENTRY __FPU_CW_WinQueryVisibleRegion (HWND hwnd, HRGN hrgn)
    1524 {
     1712extern inline ULONG APIENTRY __FPU_CW_WinQueryVisibleRegion (HWND hwnd, HRGN hrgn)
     1713{
     1714    unsigned int cw = __FPU_CW_Get();
    15251715    ULONG ret = WinQueryVisibleRegion (hwnd, hrgn);
    1526     __FPU_CW_Restore();
     1716    __FPU_CW_Set(cw);
    15271717    return ret;
    15281718}
    15291719#define WinQueryVisibleRegion __FPU_CW_WinQueryVisibleRegion
    15301720
    1531 inline BOOL APIENTRY __FPU_CW_WinSetCapture (HWND hwndDesktop, HWND hwnd)
    1532 {
     1721extern inline BOOL APIENTRY __FPU_CW_WinSetCapture (HWND hwndDesktop, HWND hwnd)
     1722{
     1723    unsigned int cw = __FPU_CW_Get();
    15331724    BOOL ret = WinSetCapture (hwndDesktop, hwnd);
    1534     __FPU_CW_Restore();
     1725    __FPU_CW_Set(cw);
    15351726    return ret;
    15361727}
    15371728#define WinSetCapture __FPU_CW_WinSetCapture
    15381729
    1539 inline BOOL APIENTRY __FPU_CW_WinSetKeyboardStateTable (HWND hwndDesktop, PBYTE pKeyStateTable,    BOOL fSet)
    1540 {
     1730extern inline BOOL APIENTRY __FPU_CW_WinSetKeyboardStateTable (HWND hwndDesktop, PBYTE pKeyStateTable,    BOOL fSet)
     1731{
     1732    unsigned int cw = __FPU_CW_Get();
    15411733    BOOL ret = WinSetKeyboardStateTable (hwndDesktop, pKeyStateTable,    fSet);
    1542     __FPU_CW_Restore();
     1734    __FPU_CW_Set(cw);
    15431735    return ret;
    15441736}
    15451737#define WinSetKeyboardStateTable __FPU_CW_WinSetKeyboardStateTable
    15461738
    1547 inline BOOL APIENTRY __FPU_CW_WinSetVisibleRegionNotify (HWND hwnd, BOOL fEnable)
    1548 {
     1739extern inline BOOL APIENTRY __FPU_CW_WinSetVisibleRegionNotify (HWND hwnd, BOOL fEnable)
     1740{
     1741    unsigned int cw = __FPU_CW_Get();
    15491742    BOOL ret = WinSetVisibleRegionNotify (hwnd, fEnable);
    1550     __FPU_CW_Restore();
     1743    __FPU_CW_Set(cw);
    15511744    return ret;
    15521745}
    15531746#define WinSetVisibleRegionNotify __FPU_CW_WinSetVisibleRegionNotify
    15541747
    1555 inline BOOL APIENTRY __FPU_CW_WinDeleteLibrary (HAB hab, HLIB libhandle)
    1556 {
     1748extern inline BOOL APIENTRY __FPU_CW_WinDeleteLibrary (HAB hab, HLIB libhandle)
     1749{
     1750    unsigned int cw = __FPU_CW_Get();
    15571751    BOOL ret = WinDeleteLibrary (hab, libhandle);
    1558     __FPU_CW_Restore();
     1752    __FPU_CW_Set(cw);
    15591753    return ret;
    15601754}
    15611755#define WinDeleteLibrary __FPU_CW_WinDeleteLibrary
    15621756
    1563 inline BOOL APIENTRY __FPU_CW_WinDeleteProcedure (HAB hab, PFNWP wndproc)
    1564 {
     1757extern inline BOOL APIENTRY __FPU_CW_WinDeleteProcedure (HAB hab, PFNWP wndproc)
     1758{
     1759    unsigned int cw = __FPU_CW_Get();
    15651760    BOOL ret = WinDeleteProcedure (hab, wndproc);
    1566     __FPU_CW_Restore();
     1761    __FPU_CW_Set(cw);
    15671762    return ret;
    15681763}
    15691764#define WinDeleteProcedure __FPU_CW_WinDeleteProcedure
    15701765
    1571 inline HLIB APIENTRY __FPU_CW_WinLoadLibrary (HAB hab, PCSZ libname)
    1572 {
     1766extern inline HLIB APIENTRY __FPU_CW_WinLoadLibrary (HAB hab, PCSZ libname)
     1767{
     1768    unsigned int cw = __FPU_CW_Get();
    15731769    HLIB ret = WinLoadLibrary (hab, libname);
    1574     __FPU_CW_Restore();
     1770    __FPU_CW_Set(cw);
    15751771    return ret;
    15761772}
    15771773#define WinLoadLibrary __FPU_CW_WinLoadLibrary
    15781774
    1579 inline PFNWP APIENTRY __FPU_CW_WinLoadProcedure (HAB hab, HLIB libhandle, PSZ procname)
    1580 {
     1775extern inline PFNWP APIENTRY __FPU_CW_WinLoadProcedure (HAB hab, HLIB libhandle, PSZ procname)
     1776{
     1777    unsigned int cw = __FPU_CW_Get();
    15811778    PFNWP ret = WinLoadProcedure (hab, libhandle, procname);
    1582     __FPU_CW_Restore();
     1779    __FPU_CW_Set(cw);
    15831780    return ret;
    15841781}
    15851782#define WinLoadProcedure __FPU_CW_WinLoadProcedure
    15861783
    1587 inline HWND APIENTRY __FPU_CW_WinCreateMenu (HWND hwndParent, CPVOID lpmt)
    1588 {
     1784extern inline HWND APIENTRY __FPU_CW_WinCreateMenu (HWND hwndParent, CPVOID lpmt)
     1785{
     1786    unsigned int cw = __FPU_CW_Get();
    15891787    HWND ret = WinCreateMenu (hwndParent, lpmt);
    1590     __FPU_CW_Restore();
     1788    __FPU_CW_Set(cw);
    15911789    return ret;
    15921790}
    15931791#define WinCreateMenu __FPU_CW_WinCreateMenu
    15941792
    1595 inline HWND APIENTRY __FPU_CW_WinLoadMenu (HWND hwndFrame, HMODULE hmod, ULONG idMenu)
    1596 {
     1793extern inline HWND APIENTRY __FPU_CW_WinLoadMenu (HWND hwndFrame, HMODULE hmod, ULONG idMenu)
     1794{
     1795    unsigned int cw = __FPU_CW_Get();
    15971796    HWND ret = WinLoadMenu (hwndFrame, hmod, idMenu);
    1598     __FPU_CW_Restore();
     1797    __FPU_CW_Set(cw);
    15991798    return ret;
    16001799}
    16011800#define WinLoadMenu __FPU_CW_WinLoadMenu
    16021801
    1603 inline BOOL APIENTRY __FPU_CW_WinPopupMenu (HWND hwndParent, HWND hwndOwner, HWND hwndMenu,    LONG x, LONG y, LONG idItem, ULONG fs)
    1604 {
     1802extern inline BOOL APIENTRY __FPU_CW_WinPopupMenu (HWND hwndParent, HWND hwndOwner, HWND hwndMenu,    LONG x, LONG y, LONG idItem, ULONG fs)
     1803{
     1804    unsigned int cw = __FPU_CW_Get();
    16051805    BOOL ret = WinPopupMenu (hwndParent, hwndOwner, hwndMenu,    x, y, idItem, fs);
    1606     __FPU_CW_Restore();
     1806    __FPU_CW_Set(cw);
    16071807    return ret;
    16081808}
    16091809#define WinPopupMenu __FPU_CW_WinPopupMenu
    16101810
    1611 inline BOOL APIENTRY __FPU_CW_WinBroadcastMsg (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2, ULONG rgf)
    1612 {
     1811extern inline BOOL APIENTRY __FPU_CW_WinBroadcastMsg (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2, ULONG rgf)
     1812{
     1813    unsigned int cw = __FPU_CW_Get();
    16131814    BOOL ret = WinBroadcastMsg (hwnd, msg, mp1, mp2, rgf);
    1614     __FPU_CW_Restore();
     1815    __FPU_CW_Set(cw);
    16151816    return ret;
    16161817}
    16171818#define WinBroadcastMsg __FPU_CW_WinBroadcastMsg
    16181819
    1619 inline BOOL APIENTRY __FPU_CW_WinInSendMsg (HAB hab)
    1620 {
     1820extern inline BOOL APIENTRY __FPU_CW_WinInSendMsg (HAB hab)
     1821{
     1822    unsigned int cw = __FPU_CW_Get();
    16211823    BOOL ret = WinInSendMsg (hab);
    1622     __FPU_CW_Restore();
     1824    __FPU_CW_Set(cw);
    16231825    return ret;
    16241826}
    16251827#define WinInSendMsg __FPU_CW_WinInSendMsg
    16261828
    1627 inline BOOL APIENTRY __FPU_CW_WinPostQueueMsg (HMQ hmq, ULONG msg, MPARAM mp1, MPARAM mp2)
    1628 {
     1829extern inline BOOL APIENTRY __FPU_CW_WinPostQueueMsg (HMQ hmq, ULONG msg, MPARAM mp1, MPARAM mp2)
     1830{
     1831    unsigned int cw = __FPU_CW_Get();
    16291832    BOOL ret = WinPostQueueMsg (hmq, msg, mp1, mp2);
    1630     __FPU_CW_Restore();
     1833    __FPU_CW_Set(cw);
    16311834    return ret;
    16321835}
    16331836#define WinPostQueueMsg __FPU_CW_WinPostQueueMsg
    16341837
    1635 inline BOOL APIENTRY __FPU_CW_WinQueryMsgPos (HAB hab, PPOINTL pptl)
    1636 {
     1838extern inline BOOL APIENTRY __FPU_CW_WinQueryMsgPos (HAB hab, PPOINTL pptl)
     1839{
     1840    unsigned int cw = __FPU_CW_Get();
    16371841    BOOL ret = WinQueryMsgPos (hab, pptl);
    1638     __FPU_CW_Restore();
     1842    __FPU_CW_Set(cw);
    16391843    return ret;
    16401844}
    16411845#define WinQueryMsgPos __FPU_CW_WinQueryMsgPos
    16421846
    1643 inline ULONG APIENTRY __FPU_CW_WinQueryMsgTime (HAB hab)
    1644 {
     1847extern inline ULONG APIENTRY __FPU_CW_WinQueryMsgTime (HAB hab)
     1848{
     1849    unsigned int cw = __FPU_CW_Get();
    16451850    ULONG ret = WinQueryMsgTime (hab);
    1646     __FPU_CW_Restore();
     1851    __FPU_CW_Set(cw);
    16471852    return ret;
    16481853}
    16491854#define WinQueryMsgTime __FPU_CW_WinQueryMsgTime
    16501855
    1651 inline ULONG APIENTRY __FPU_CW_WinQueryQueueStatus (HWND hwndDesktop)
    1652 {
     1856extern inline ULONG APIENTRY __FPU_CW_WinQueryQueueStatus (HWND hwndDesktop)
     1857{
     1858    unsigned int cw = __FPU_CW_Get();
    16531859    ULONG ret = WinQueryQueueStatus (hwndDesktop);
    1654     __FPU_CW_Restore();
     1860    __FPU_CW_Set(cw);
    16551861    return ret;
    16561862}
    16571863#define WinQueryQueueStatus __FPU_CW_WinQueryQueueStatus
    16581864
    1659 inline ULONG APIENTRY __FPU_CW_WinRequestMutexSem (HMTX hmtx, ULONG ulTimeout)
    1660 {
     1865extern inline ULONG APIENTRY __FPU_CW_WinRequestMutexSem (HMTX hmtx, ULONG ulTimeout)
     1866{
     1867    unsigned int cw = __FPU_CW_Get();
    16611868    ULONG ret = WinRequestMutexSem (hmtx, ulTimeout);
    1662     __FPU_CW_Restore();
     1869    __FPU_CW_Set(cw);
    16631870    return ret;
    16641871}
    16651872#define WinRequestMutexSem __FPU_CW_WinRequestMutexSem
    16661873
    1667 inline BOOL APIENTRY __FPU_CW_WinSetClassMsgInterest (HAB hab, PCSZ pszClassName, ULONG msg_class,    LONG control)
    1668 {
     1874extern inline BOOL APIENTRY __FPU_CW_WinSetClassMsgInterest (HAB hab, PCSZ pszClassName, ULONG msg_class,    LONG control)
     1875{
     1876    unsigned int cw = __FPU_CW_Get();
    16691877    BOOL ret = WinSetClassMsgInterest (hab, pszClassName, msg_class,    control);
    1670     __FPU_CW_Restore();
     1878    __FPU_CW_Set(cw);
    16711879    return ret;
    16721880}
    16731881#define WinSetClassMsgInterest __FPU_CW_WinSetClassMsgInterest
    16741882
    1675 inline BOOL APIENTRY __FPU_CW_WinSetMsgInterest (HWND hwnd, ULONG msg_class, LONG control)
    1676 {
     1883extern inline BOOL APIENTRY __FPU_CW_WinSetMsgInterest (HWND hwnd, ULONG msg_class, LONG control)
     1884{
     1885    unsigned int cw = __FPU_CW_Get();
    16771886    BOOL ret = WinSetMsgInterest (hwnd, msg_class, control);
    1678     __FPU_CW_Restore();
     1887    __FPU_CW_Set(cw);
    16791888    return ret;
    16801889}
    16811890#define WinSetMsgInterest __FPU_CW_WinSetMsgInterest
    16821891
    1683 inline ULONG APIENTRY __FPU_CW_WinWaitEventSem (HEV hev, ULONG ulTimeout)
    1684 {
     1892extern inline ULONG APIENTRY __FPU_CW_WinWaitEventSem (HEV hev, ULONG ulTimeout)
     1893{
     1894    unsigned int cw = __FPU_CW_Get();
    16851895    ULONG ret = WinWaitEventSem (hev, ulTimeout);
    1686     __FPU_CW_Restore();
     1896    __FPU_CW_Set(cw);
    16871897    return ret;
    16881898}
    16891899#define WinWaitEventSem __FPU_CW_WinWaitEventSem
    16901900
    1691 inline BOOL APIENTRY __FPU_CW_WinWaitMsg (HAB hab, ULONG msgFirst, ULONG msgLast)
    1692 {
     1901extern inline BOOL APIENTRY __FPU_CW_WinWaitMsg (HAB hab, ULONG msgFirst, ULONG msgLast)
     1902{
     1903    unsigned int cw = __FPU_CW_Get();
    16931904    BOOL ret = WinWaitMsg (hab, msgFirst, msgLast);
    1694     __FPU_CW_Restore();
     1905    __FPU_CW_Set(cw);
    16951906    return ret;
    16961907}
    16971908#define WinWaitMsg __FPU_CW_WinWaitMsg
    16981909
    1699 inline ULONG APIENTRY __FPU_CW_WinWaitMuxWaitSem (HMUX hmux, ULONG ulTimeout, PULONG pulUser)
    1700 {
     1910extern inline ULONG APIENTRY __FPU_CW_WinWaitMuxWaitSem (HMUX hmux, ULONG ulTimeout, PULONG pulUser)
     1911{
     1912    unsigned int cw = __FPU_CW_Get();
    17011913    ULONG ret = WinWaitMuxWaitSem (hmux, ulTimeout, pulUser);
    1702     __FPU_CW_Restore();
     1914    __FPU_CW_Set(cw);
    17031915    return ret;
    17041916}
    17051917#define WinWaitMuxWaitSem __FPU_CW_WinWaitMuxWaitSem
    17061918
    1707 inline LONG APIENTRY __FPU_CW_WinRealizePalette (HWND hwnd, HPS hps, PULONG pcclr)
    1708 {
     1919extern inline LONG APIENTRY __FPU_CW_WinRealizePalette (HWND hwnd, HPS hps, PULONG pcclr)
     1920{
     1921    unsigned int cw = __FPU_CW_Get();
    17091922    LONG ret = WinRealizePalette (hwnd, hps, pcclr);
    1710     __FPU_CW_Restore();
     1923    __FPU_CW_Set(cw);
    17111924    return ret;
    17121925}
    17131926#define WinRealizePalette __FPU_CW_WinRealizePalette
    17141927
    1715 inline HPOINTER APIENTRY __FPU_CW_WinCreatePointer (HWND hwndDesktop, HBITMAP hbmPointer, BOOL fPointer,    LONG xHotspot, LONG yHotspot)
    1716 {
     1928extern inline HPOINTER APIENTRY __FPU_CW_WinCreatePointer (HWND hwndDesktop, HBITMAP hbmPointer, BOOL fPointer,    LONG xHotspot, LONG yHotspot)
     1929{
     1930    unsigned int cw = __FPU_CW_Get();
    17171931    HPOINTER ret = WinCreatePointer (hwndDesktop, hbmPointer, fPointer,    xHotspot, yHotspot);
    1718     __FPU_CW_Restore();
     1932    __FPU_CW_Set(cw);
    17191933    return ret;
    17201934}
    17211935#define WinCreatePointer __FPU_CW_WinCreatePointer
    17221936
    1723 inline HPOINTER APIENTRY __FPU_CW_WinCreatePointerIndirect (HWND hwndDesktop,    __const__ POINTERINFO *pptri)
    1724 {
     1937extern inline HPOINTER APIENTRY __FPU_CW_WinCreatePointerIndirect (HWND hwndDesktop,    __const__ POINTERINFO *pptri)
     1938{
     1939    unsigned int cw = __FPU_CW_Get();
    17251940    HPOINTER ret = WinCreatePointerIndirect (hwndDesktop,    pptri);
    1726     __FPU_CW_Restore();
     1941    __FPU_CW_Set(cw);
    17271942    return ret;
    17281943}
    17291944#define WinCreatePointerIndirect __FPU_CW_WinCreatePointerIndirect
    17301945
    1731 inline BOOL APIENTRY __FPU_CW_WinDestroyPointer (HPOINTER hptr)
    1732 {
     1946extern inline BOOL APIENTRY __FPU_CW_WinDestroyPointer (HPOINTER hptr)
     1947{
     1948    unsigned int cw = __FPU_CW_Get();
    17331949    BOOL ret = WinDestroyPointer (hptr);
    1734     __FPU_CW_Restore();
     1950    __FPU_CW_Set(cw);
    17351951    return ret;
    17361952}
    17371953#define WinDestroyPointer __FPU_CW_WinDestroyPointer
    17381954
    1739 inline BOOL APIENTRY __FPU_CW_WinDrawPointer (HPS hps, LONG x, LONG y, HPOINTER hptr, ULONG fs)
    1740 {
     1955extern inline BOOL APIENTRY __FPU_CW_WinDrawPointer (HPS hps, LONG x, LONG y, HPOINTER hptr, ULONG fs)
     1956{
     1957    unsigned int cw = __FPU_CW_Get();
    17411958    BOOL ret = WinDrawPointer (hps, x, y, hptr, fs);
    1742     __FPU_CW_Restore();
     1959    __FPU_CW_Set(cw);
    17431960    return ret;
    17441961}
    17451962#define WinDrawPointer __FPU_CW_WinDrawPointer
    17461963
    1747 inline HBITMAP APIENTRY __FPU_CW_WinGetSysBitmap (HWND hwndDesktop, ULONG ibm)
    1748 {
     1964extern inline HBITMAP APIENTRY __FPU_CW_WinGetSysBitmap (HWND hwndDesktop, ULONG ibm)
     1965{
     1966    unsigned int cw = __FPU_CW_Get();
    17491967    HBITMAP ret = WinGetSysBitmap (hwndDesktop, ibm);
    1750     __FPU_CW_Restore();
     1968    __FPU_CW_Set(cw);
    17511969    return ret;
    17521970}
    17531971#define WinGetSysBitmap __FPU_CW_WinGetSysBitmap
    17541972
    1755 inline HPOINTER APIENTRY __FPU_CW_WinLoadPointer (HWND hwndDesktop, HMODULE hmod, ULONG idres)
    1756 {
     1973extern inline HPOINTER APIENTRY __FPU_CW_WinLoadPointer (HWND hwndDesktop, HMODULE hmod, ULONG idres)
     1974{
     1975    unsigned int cw = __FPU_CW_Get();
    17571976    HPOINTER ret = WinLoadPointer (hwndDesktop, hmod, idres);
    1758     __FPU_CW_Restore();
     1977    __FPU_CW_Set(cw);
    17591978    return ret;
    17601979}
    17611980#define WinLoadPointer __FPU_CW_WinLoadPointer
    17621981
    1763 inline BOOL APIENTRY __FPU_CW_WinLockPointerUpdate (HWND hwndDesktop, HPOINTER hptrNew,    ULONG ulTimeInterval)
    1764 {
     1982extern inline BOOL APIENTRY __FPU_CW_WinLockPointerUpdate (HWND hwndDesktop, HPOINTER hptrNew,    ULONG ulTimeInterval)
     1983{
     1984    unsigned int cw = __FPU_CW_Get();
    17651985    BOOL ret = WinLockPointerUpdate (hwndDesktop, hptrNew,    ulTimeInterval);
    1766     __FPU_CW_Restore();
     1986    __FPU_CW_Set(cw);
    17671987    return ret;
    17681988}
    17691989#define WinLockPointerUpdate __FPU_CW_WinLockPointerUpdate
    17701990
    1771 inline BOOL APIENTRY __FPU_CW_WinQueryPointerPos (HWND hwndDesktop, PPOINTL pptl)
    1772 {
     1991extern inline BOOL APIENTRY __FPU_CW_WinQueryPointerPos (HWND hwndDesktop, PPOINTL pptl)
     1992{
     1993    unsigned int cw = __FPU_CW_Get();
    17731994    BOOL ret = WinQueryPointerPos (hwndDesktop, pptl);
    1774     __FPU_CW_Restore();
     1995    __FPU_CW_Set(cw);
    17751996    return ret;
    17761997}
    17771998#define WinQueryPointerPos __FPU_CW_WinQueryPointerPos
    17781999
    1779 inline BOOL APIENTRY __FPU_CW_WinQueryPointerInfo (HPOINTER hptr, PPOINTERINFO pPointerInfo)
    1780 {
     2000extern inline BOOL APIENTRY __FPU_CW_WinQueryPointerInfo (HPOINTER hptr, PPOINTERINFO pPointerInfo)
     2001{
     2002    unsigned int cw = __FPU_CW_Get();
    17812003    BOOL ret = WinQueryPointerInfo (hptr, pPointerInfo);
    1782     __FPU_CW_Restore();
     2004    __FPU_CW_Set(cw);
    17832005    return ret;
    17842006}
    17852007#define WinQueryPointerInfo __FPU_CW_WinQueryPointerInfo
    17862008
    1787 inline HPOINTER APIENTRY __FPU_CW_WinQuerySysPointer (HWND hwndDesktop, LONG lId, BOOL fCopy)
    1788 {
     2009extern inline HPOINTER APIENTRY __FPU_CW_WinQuerySysPointer (HWND hwndDesktop, LONG lId, BOOL fCopy)
     2010{
     2011    unsigned int cw = __FPU_CW_Get();
    17892012    HPOINTER ret = WinQuerySysPointer (hwndDesktop, lId, fCopy);
    1790     __FPU_CW_Restore();
     2013    __FPU_CW_Set(cw);
    17912014    return ret;
    17922015}
    17932016#define WinQuerySysPointer __FPU_CW_WinQuerySysPointer
    17942017
    1795 inline BOOL APIENTRY __FPU_CW_WinQuerySysPointerData (HWND hwndDesktop, ULONG ulId,    PICONINFO pIconInfo)
    1796 {
     2018extern inline BOOL APIENTRY __FPU_CW_WinQuerySysPointerData (HWND hwndDesktop, ULONG ulId,    PICONINFO pIconInfo)
     2019{
     2020    unsigned int cw = __FPU_CW_Get();
    17972021    BOOL ret = WinQuerySysPointerData (hwndDesktop, ulId,    pIconInfo);
    1798     __FPU_CW_Restore();
     2022    __FPU_CW_Set(cw);
    17992023    return ret;
    18002024}
    18012025#define WinQuerySysPointerData __FPU_CW_WinQuerySysPointerData
    18022026
    1803 inline BOOL APIENTRY __FPU_CW_WinSetPointer (HWND hwndDesktop, HPOINTER hptrNew)
    1804 {
     2027extern inline BOOL APIENTRY __FPU_CW_WinSetPointer (HWND hwndDesktop, HPOINTER hptrNew)
     2028{
     2029    unsigned int cw = __FPU_CW_Get();
    18052030    BOOL ret = WinSetPointer (hwndDesktop, hptrNew);
    1806     __FPU_CW_Restore();
     2031    __FPU_CW_Set(cw);
    18072032    return ret;
    18082033}
    18092034#define WinSetPointer __FPU_CW_WinSetPointer
    18102035
    1811 inline BOOL APIENTRY __FPU_CW_WinSetPointerOwner (HPOINTER hptr, PID pid, BOOL fDestroy)
    1812 {
     2036extern inline BOOL APIENTRY __FPU_CW_WinSetPointerOwner (HPOINTER hptr, PID pid, BOOL fDestroy)
     2037{
     2038    unsigned int cw = __FPU_CW_Get();
    18132039    BOOL ret = WinSetPointerOwner (hptr, pid, fDestroy);
    1814     __FPU_CW_Restore();
     2040    __FPU_CW_Set(cw);
    18152041    return ret;
    18162042}
    18172043#define WinSetPointerOwner __FPU_CW_WinSetPointerOwner
    18182044
    1819 inline BOOL APIENTRY __FPU_CW_WinSetPointerPos (HWND hwndDesktop, LONG x, LONG y)
    1820 {
     2045extern inline BOOL APIENTRY __FPU_CW_WinSetPointerPos (HWND hwndDesktop, LONG x, LONG y)
     2046{
     2047    unsigned int cw = __FPU_CW_Get();
    18212048    BOOL ret = WinSetPointerPos (hwndDesktop, x, y);
    1822     __FPU_CW_Restore();
     2049    __FPU_CW_Set(cw);
    18232050    return ret;
    18242051}
    18252052#define WinSetPointerPos __FPU_CW_WinSetPointerPos
    18262053
    1827 inline BOOL APIENTRY __FPU_CW_WinSetSysPointerData (HWND hwndDesktop, ULONG ulId,    __const__ ICONINFO *pIconInfo)
    1828 {
     2054extern inline BOOL APIENTRY __FPU_CW_WinSetSysPointerData (HWND hwndDesktop, ULONG ulId,    __const__ ICONINFO *pIconInfo)
     2055{
     2056    unsigned int cw = __FPU_CW_Get();
    18292057    BOOL ret = WinSetSysPointerData (hwndDesktop, ulId,    pIconInfo);
    1830     __FPU_CW_Restore();
     2058    __FPU_CW_Set(cw);
    18312059    return ret;
    18322060}
    18332061#define WinSetSysPointerData __FPU_CW_WinSetSysPointerData
    18342062
    1835 inline BOOL APIENTRY __FPU_CW_WinShowPointer (HWND hwndDesktop, BOOL fShow)
    1836 {
     2063extern inline BOOL APIENTRY __FPU_CW_WinShowPointer (HWND hwndDesktop, BOOL fShow)
     2064{
     2065    unsigned int cw = __FPU_CW_Get();
    18372066    BOOL ret = WinShowPointer (hwndDesktop, fShow);
    1838     __FPU_CW_Restore();
     2067    __FPU_CW_Set(cw);
    18392068    return ret;
    18402069}
    18412070#define WinShowPointer __FPU_CW_WinShowPointer
    18422071
    1843 inline BOOL APIENTRY __FPU_CW_WinCopyRect (HAB hab, PRECTL prclDst, __const__ RECTL *prclSrc)
    1844 {
     2072extern inline BOOL APIENTRY __FPU_CW_WinCopyRect (HAB hab, PRECTL prclDst, __const__ RECTL *prclSrc)
     2073{
     2074    unsigned int cw = __FPU_CW_Get();
    18452075    BOOL ret = WinCopyRect (hab, prclDst, prclSrc);
    1846     __FPU_CW_Restore();
     2076    __FPU_CW_Set(cw);
    18472077    return ret;
    18482078}
    18492079#define WinCopyRect __FPU_CW_WinCopyRect
    18502080
    1851 inline BOOL APIENTRY __FPU_CW_WinEqualRect (HAB hab, __const__ RECTL *prcl1, __const__ RECTL *prcl2)
    1852 {
     2081extern inline BOOL APIENTRY __FPU_CW_WinEqualRect (HAB hab, __const__ RECTL *prcl1, __const__ RECTL *prcl2)
     2082{
     2083    unsigned int cw = __FPU_CW_Get();
    18532084    BOOL ret = WinEqualRect (hab, prcl1, prcl2);
    1854     __FPU_CW_Restore();
     2085    __FPU_CW_Set(cw);
    18552086    return ret;
    18562087}
    18572088#define WinEqualRect __FPU_CW_WinEqualRect
    18582089
    1859 inline BOOL APIENTRY __FPU_CW_WinInflateRect (HAB hab, PRECTL prcl, LONG cx, LONG cy)
    1860 {
     2090extern inline BOOL APIENTRY __FPU_CW_WinInflateRect (HAB hab, PRECTL prcl, LONG cx, LONG cy)
     2091{
     2092    unsigned int cw = __FPU_CW_Get();
    18612093    BOOL ret = WinInflateRect (hab, prcl, cx, cy);
    1862     __FPU_CW_Restore();
     2094    __FPU_CW_Set(cw);
    18632095    return ret;
    18642096}
    18652097#define WinInflateRect __FPU_CW_WinInflateRect
    18662098
    1867 inline BOOL APIENTRY __FPU_CW_WinIntersectRect (HAB hab, PRECTL prclDst, __const__ RECTL *prclSrc1,    __const__ RECTL *prclSrc2)
    1868 {
     2099extern inline BOOL APIENTRY __FPU_CW_WinIntersectRect (HAB hab, PRECTL prclDst, __const__ RECTL *prclSrc1,    __const__ RECTL *prclSrc2)
     2100{
     2101    unsigned int cw = __FPU_CW_Get();
    18692102    BOOL ret = WinIntersectRect (hab, prclDst, prclSrc1,    prclSrc2);
    1870     __FPU_CW_Restore();
     2103    __FPU_CW_Set(cw);
    18712104    return ret;
    18722105}
    18732106#define WinIntersectRect __FPU_CW_WinIntersectRect
    18742107
    1875 inline BOOL APIENTRY __FPU_CW_WinIsRectEmpty (HAB hab, __const__ RECTL *prcl)
    1876 {
     2108extern inline BOOL APIENTRY __FPU_CW_WinIsRectEmpty (HAB hab, __const__ RECTL *prcl)
     2109{
     2110    unsigned int cw = __FPU_CW_Get();
    18772111    BOOL ret = WinIsRectEmpty (hab, prcl);
    1878     __FPU_CW_Restore();
     2112    __FPU_CW_Set(cw);
    18792113    return ret;
    18802114}
    18812115#define WinIsRectEmpty __FPU_CW_WinIsRectEmpty
    18822116
    1883 inline BOOL APIENTRY __FPU_CW_WinMakePoints (HAB hab, PPOINTL pwpt, ULONG cwpt)
    1884 {
     2117extern inline BOOL APIENTRY __FPU_CW_WinMakePoints (HAB hab, PPOINTL pwpt, ULONG cwpt)
     2118{
     2119    unsigned int cw = __FPU_CW_Get();
    18852120    BOOL ret = WinMakePoints (hab, pwpt, cwpt);
    1886     __FPU_CW_Restore();
     2121    __FPU_CW_Set(cw);
    18872122    return ret;
    18882123}
    18892124#define WinMakePoints __FPU_CW_WinMakePoints
    18902125
    1891 inline BOOL APIENTRY __FPU_CW_WinMakeRect (HAB hab, PRECTL pwrc)
    1892 {
     2126extern inline BOOL APIENTRY __FPU_CW_WinMakeRect (HAB hab, PRECTL pwrc)
     2127{
     2128    unsigned int cw = __FPU_CW_Get();
    18932129    BOOL ret = WinMakeRect (hab, pwrc);
    1894     __FPU_CW_Restore();
     2130    __FPU_CW_Set(cw);
    18952131    return ret;
    18962132}
    18972133#define WinMakeRect __FPU_CW_WinMakeRect
    18982134
    1899 inline BOOL APIENTRY __FPU_CW_WinOffsetRect (HAB hab, PRECTL prcl, LONG cx, LONG cy)
    1900 {
     2135extern inline BOOL APIENTRY __FPU_CW_WinOffsetRect (HAB hab, PRECTL prcl, LONG cx, LONG cy)
     2136{
     2137    unsigned int cw = __FPU_CW_Get();
    19012138    BOOL ret = WinOffsetRect (hab, prcl, cx, cy);
    1902     __FPU_CW_Restore();
     2139    __FPU_CW_Set(cw);
    19032140    return ret;
    19042141}
    19052142#define WinOffsetRect __FPU_CW_WinOffsetRect
    19062143
    1907 inline BOOL APIENTRY __FPU_CW_WinPtInRect (HAB hab, __const__ RECTL *prcl, __const__ POINTL *pptl)
    1908 {
     2144extern inline BOOL APIENTRY __FPU_CW_WinPtInRect (HAB hab, __const__ RECTL *prcl, __const__ POINTL *pptl)
     2145{
     2146    unsigned int cw = __FPU_CW_Get();
    19092147    BOOL ret = WinPtInRect (hab, prcl, pptl);
    1910     __FPU_CW_Restore();
     2148    __FPU_CW_Set(cw);
    19112149    return ret;
    19122150}
    19132151#define WinPtInRect __FPU_CW_WinPtInRect
    19142152
    1915 inline BOOL APIENTRY __FPU_CW_WinSetRect (HAB hab, PRECTL prcl, LONG xLeft, LONG yBottom, LONG xRight,    LONG yTop)
    1916 {
     2153extern inline BOOL APIENTRY __FPU_CW_WinSetRect (HAB hab, PRECTL prcl, LONG xLeft, LONG yBottom, LONG xRight,    LONG yTop)
     2154{
     2155    unsigned int cw = __FPU_CW_Get();
    19172156    BOOL ret = WinSetRect (hab, prcl, xLeft, yBottom, xRight,    yTop);
    1918     __FPU_CW_Restore();
     2157    __FPU_CW_Set(cw);
    19192158    return ret;
    19202159}
    19212160#define WinSetRect __FPU_CW_WinSetRect
    19222161
    1923 inline BOOL APIENTRY __FPU_CW_WinSetRectEmpty (HAB hab, PRECTL prcl)
    1924 {
     2162extern inline BOOL APIENTRY __FPU_CW_WinSetRectEmpty (HAB hab, PRECTL prcl)
     2163{
     2164    unsigned int cw = __FPU_CW_Get();
    19252165    BOOL ret = WinSetRectEmpty (hab, prcl);
    1926     __FPU_CW_Restore();
     2166    __FPU_CW_Set(cw);
    19272167    return ret;
    19282168}
    19292169#define WinSetRectEmpty __FPU_CW_WinSetRectEmpty
    19302170
    1931 inline BOOL APIENTRY __FPU_CW_WinSubtractRect (HAB hab, PRECTL prclDst, __const__ RECTL *prclSrc1,    __const__ RECTL *prclSrc2)
    1932 {
     2171extern inline BOOL APIENTRY __FPU_CW_WinSubtractRect (HAB hab, PRECTL prclDst, __const__ RECTL *prclSrc1,    __const__ RECTL *prclSrc2)
     2172{
     2173    unsigned int cw = __FPU_CW_Get();
    19332174    BOOL ret = WinSubtractRect (hab, prclDst, prclSrc1,    prclSrc2);
    1934     __FPU_CW_Restore();
     2175    __FPU_CW_Set(cw);
    19352176    return ret;
    19362177}
    19372178#define WinSubtractRect __FPU_CW_WinSubtractRect
    19382179
    1939 inline BOOL APIENTRY __FPU_CW_WinUnionRect (HAB hab, PRECTL prclDst, __const__ RECTL *prclSrc1,    __const__ RECTL *prclSrc2)
    1940 {
     2180extern inline BOOL APIENTRY __FPU_CW_WinUnionRect (HAB hab, PRECTL prclDst, __const__ RECTL *prclSrc1,    __const__ RECTL *prclSrc2)
     2181{
     2182    unsigned int cw = __FPU_CW_Get();
    19412183    BOOL ret = WinUnionRect (hab, prclDst, prclSrc1,    prclSrc2);
    1942     __FPU_CW_Restore();
     2184    __FPU_CW_Set(cw);
    19432185    return ret;
    19442186}
    19452187#define WinUnionRect __FPU_CW_WinUnionRect
    19462188
    1947 inline LONG APIENTRY __FPU_CW_WinQueryControlColors (HWND hwnd, LONG clrType, ULONG flCtlColor,    ULONG cCtlColor, PCTLCOLOR pCtlColor)
    1948 {
     2189extern inline LONG APIENTRY __FPU_CW_WinQueryControlColors (HWND hwnd, LONG clrType, ULONG flCtlColor,    ULONG cCtlColor, PCTLCOLOR pCtlColor)
     2190{
     2191    unsigned int cw = __FPU_CW_Get();
    19492192    LONG ret = WinQueryControlColors (hwnd, clrType, flCtlColor,    cCtlColor, pCtlColor);
    1950     __FPU_CW_Restore();
     2193    __FPU_CW_Set(cw);
    19512194    return ret;
    19522195}
    19532196#define WinQueryControlColors __FPU_CW_WinQueryControlColors
    19542197
    1955 inline ULONG APIENTRY __FPU_CW_WinQueryPresParam (HWND hwnd, ULONG id1, ULONG id2, PULONG pulId,    ULONG cbBuf, PVOID pbBuf, ULONG fs)
    1956 {
     2198extern inline ULONG APIENTRY __FPU_CW_WinQueryPresParam (HWND hwnd, ULONG id1, ULONG id2, PULONG pulId,    ULONG cbBuf, PVOID pbBuf, ULONG fs)
     2199{
     2200    unsigned int cw = __FPU_CW_Get();
    19572201    ULONG ret = WinQueryPresParam (hwnd, id1, id2, pulId,    cbBuf, pbBuf, fs);
    1958     __FPU_CW_Restore();
     2202    __FPU_CW_Set(cw);
    19592203    return ret;
    19602204}
    19612205#define WinQueryPresParam __FPU_CW_WinQueryPresParam
    19622206
    1963 inline LONG APIENTRY __FPU_CW_WinQuerySysColor (HWND hwndDesktop, LONG clr, LONG lReserved)
    1964 {
     2207extern inline LONG APIENTRY __FPU_CW_WinQuerySysColor (HWND hwndDesktop, LONG clr, LONG lReserved)
     2208{
     2209    unsigned int cw = __FPU_CW_Get();
    19652210    LONG ret = WinQuerySysColor (hwndDesktop, clr, lReserved);
    1966     __FPU_CW_Restore();
     2211    __FPU_CW_Set(cw);
    19672212    return ret;
    19682213}
    19692214#define WinQuerySysColor __FPU_CW_WinQuerySysColor
    19702215
    1971 inline LONG APIENTRY __FPU_CW_WinQuerySysValue (HWND hwndDesktop, LONG iSysValue)
    1972 {
     2216extern inline LONG APIENTRY __FPU_CW_WinQuerySysValue (HWND hwndDesktop, LONG iSysValue)
     2217{
     2218    unsigned int cw = __FPU_CW_Get();
    19732219    LONG ret = WinQuerySysValue (hwndDesktop, iSysValue);
    1974     __FPU_CW_Restore();
     2220    __FPU_CW_Set(cw);
    19752221    return ret;
    19762222}
    19772223#define WinQuerySysValue __FPU_CW_WinQuerySysValue
    19782224
    1979 inline BOOL APIENTRY __FPU_CW_WinRemovePresParam (HWND hwnd, ULONG id)
    1980 {
     2225extern inline BOOL APIENTRY __FPU_CW_WinRemovePresParam (HWND hwnd, ULONG id)
     2226{
     2227    unsigned int cw = __FPU_CW_Get();
    19812228    BOOL ret = WinRemovePresParam (hwnd, id);
    1982     __FPU_CW_Restore();
     2229    __FPU_CW_Set(cw);
    19832230    return ret;
    19842231}
    19852232#define WinRemovePresParam __FPU_CW_WinRemovePresParam
    19862233
    1987 inline LONG APIENTRY __FPU_CW_WinSetControlColors (HWND hwnd, LONG clrType, ULONG flCtlColor,    ULONG cCtlColor, PCTLCOLOR pCtlColor)
    1988 {
     2234extern inline LONG APIENTRY __FPU_CW_WinSetControlColors (HWND hwnd, LONG clrType, ULONG flCtlColor,    ULONG cCtlColor, PCTLCOLOR pCtlColor)
     2235{
     2236    unsigned int cw = __FPU_CW_Get();
    19892237    LONG ret = WinSetControlColors (hwnd, clrType, flCtlColor,    cCtlColor, pCtlColor);
    1990     __FPU_CW_Restore();
     2238    __FPU_CW_Set(cw);
    19912239    return ret;
    19922240}
    19932241#define WinSetControlColors __FPU_CW_WinSetControlColors
    19942242
    1995 inline BOOL APIENTRY __FPU_CW_WinSetPresParam (HWND hwnd, ULONG id, ULONG cbParam, PVOID pbParam)
    1996 {
     2243extern inline BOOL APIENTRY __FPU_CW_WinSetPresParam (HWND hwnd, ULONG id, ULONG cbParam, PVOID pbParam)
     2244{
     2245    unsigned int cw = __FPU_CW_Get();
    19972246    BOOL ret = WinSetPresParam (hwnd, id, cbParam, pbParam);
    1998     __FPU_CW_Restore();
     2247    __FPU_CW_Set(cw);
    19992248    return ret;
    20002249}
    20012250#define WinSetPresParam __FPU_CW_WinSetPresParam
    20022251
    2003 inline BOOL APIENTRY __FPU_CW_WinSetSysColors (HWND hwndDesktop, ULONG flOptions, ULONG flFormat,    LONG clrFirst, ULONG cclr, __const__ LONG *pclr)
    2004 {
     2252extern inline BOOL APIENTRY __FPU_CW_WinSetSysColors (HWND hwndDesktop, ULONG flOptions, ULONG flFormat,    LONG clrFirst, ULONG cclr, __const__ LONG *pclr)
     2253{
     2254    unsigned int cw = __FPU_CW_Get();
    20052255    BOOL ret = WinSetSysColors (hwndDesktop, flOptions, flFormat,    clrFirst, cclr, pclr);
    2006     __FPU_CW_Restore();
     2256    __FPU_CW_Set(cw);
    20072257    return ret;
    20082258}
    20092259#define WinSetSysColors __FPU_CW_WinSetSysColors
    20102260
    2011 inline BOOL APIENTRY __FPU_CW_WinSetSysValue (HWND hwndDesktop, LONG iSysValue, LONG lValue)
    2012 {
     2261extern inline BOOL APIENTRY __FPU_CW_WinSetSysValue (HWND hwndDesktop, LONG iSysValue, LONG lValue)
     2262{
     2263    unsigned int cw = __FPU_CW_Get();
    20132264    BOOL ret = WinSetSysValue (hwndDesktop, iSysValue, lValue);
    2014     __FPU_CW_Restore();
     2265    __FPU_CW_Set(cw);
    20152266    return ret;
    20162267}
    20172268#define WinSetSysValue __FPU_CW_WinSetSysValue
    20182269
    2019 inline PFN APIENTRY __FPU_CW_WinQueryClassThunkProc (PCSZ pszClassname)
    2020 {
     2270extern inline PFN APIENTRY __FPU_CW_WinQueryClassThunkProc (PCSZ pszClassname)
     2271{
     2272    unsigned int cw = __FPU_CW_Get();
    20212273    PFN ret = WinQueryClassThunkProc (pszClassname);
    2022     __FPU_CW_Restore();
     2274    __FPU_CW_Set(cw);
    20232275    return ret;
    20242276}
    20252277#define WinQueryClassThunkProc __FPU_CW_WinQueryClassThunkProc
    20262278
    2027 inline LONG APIENTRY __FPU_CW_WinQueryWindowModel (HWND hwnd)
    2028 {
     2279extern inline LONG APIENTRY __FPU_CW_WinQueryWindowModel (HWND hwnd)
     2280{
     2281    unsigned int cw = __FPU_CW_Get();
    20292282    LONG ret = WinQueryWindowModel (hwnd);
    2030     __FPU_CW_Restore();
     2283    __FPU_CW_Set(cw);
    20312284    return ret;
    20322285}
    20332286#define WinQueryWindowModel __FPU_CW_WinQueryWindowModel
    20342287
    2035 inline PFN APIENTRY __FPU_CW_WinQueryWindowThunkProc (HWND hwnd)
    2036 {
     2288extern inline PFN APIENTRY __FPU_CW_WinQueryWindowThunkProc (HWND hwnd)
     2289{
     2290    unsigned int cw = __FPU_CW_Get();
    20372291    PFN ret = WinQueryWindowThunkProc (hwnd);
    2038     __FPU_CW_Restore();
     2292    __FPU_CW_Set(cw);
    20392293    return ret;
    20402294}
    20412295#define WinQueryWindowThunkProc __FPU_CW_WinQueryWindowThunkProc
    20422296
    2043 inline BOOL APIENTRY __FPU_CW_WinSetClassThunkProc (PCSZ pszClassname, PFN pfnThunkProc)
    2044 {
     2297extern inline BOOL APIENTRY __FPU_CW_WinSetClassThunkProc (PCSZ pszClassname, PFN pfnThunkProc)
     2298{
     2299    unsigned int cw = __FPU_CW_Get();
    20452300    BOOL ret = WinSetClassThunkProc (pszClassname, pfnThunkProc);
    2046     __FPU_CW_Restore();
     2301    __FPU_CW_Set(cw);
    20472302    return ret;
    20482303}
    20492304#define WinSetClassThunkProc __FPU_CW_WinSetClassThunkProc
    20502305
    2051 inline BOOL APIENTRY __FPU_CW_WinSetWindowThunkProc (HWND hwnd, PFN pfnThunkProc)
    2052 {
     2306extern inline BOOL APIENTRY __FPU_CW_WinSetWindowThunkProc (HWND hwnd, PFN pfnThunkProc)
     2307{
     2308    unsigned int cw = __FPU_CW_Get();
    20532309    BOOL ret = WinSetWindowThunkProc (hwnd, pfnThunkProc);
    2054     __FPU_CW_Restore();
     2310    __FPU_CW_Set(cw);
    20552311    return ret;
    20562312}
    20572313#define WinSetWindowThunkProc __FPU_CW_WinSetWindowThunkProc
    20582314
    2059 inline ULONG APIENTRY  __FPU_CW_WinGetCurrentTime (HAB hab)
    2060 {
     2315extern inline ULONG APIENTRY  __FPU_CW_WinGetCurrentTime (HAB hab)
     2316{
     2317    unsigned int cw = __FPU_CW_Get();
    20612318    ULONG ret = WinGetCurrentTime (hab);
    2062     __FPU_CW_Restore();
     2319    __FPU_CW_Set(cw);
    20632320    return ret;
    20642321}
    20652322#define WinGetCurrentTime __FPU_CW_WinGetCurrentTime
    20662323
    2067 inline ULONG APIENTRY __FPU_CW_WinStartTimer (HAB hab, HWND hwnd, ULONG idTimer, ULONG dtTimeout)
    2068 {
     2324extern inline ULONG APIENTRY __FPU_CW_WinStartTimer (HAB hab, HWND hwnd, ULONG idTimer, ULONG dtTimeout)
     2325{
     2326    unsigned int cw = __FPU_CW_Get();
    20692327    ULONG ret = WinStartTimer (hab, hwnd, idTimer, dtTimeout);
    2070     __FPU_CW_Restore();
     2328    __FPU_CW_Set(cw);
    20712329    return ret;
    20722330}
    20732331#define WinStartTimer __FPU_CW_WinStartTimer
    20742332
    2075 inline BOOL APIENTRY __FPU_CW_WinStopTimer (HAB hab, HWND hwnd, ULONG idTimer)
    2076 {
     2333extern inline BOOL APIENTRY __FPU_CW_WinStopTimer (HAB hab, HWND hwnd, ULONG idTimer)
     2334{
     2335    unsigned int cw = __FPU_CW_Get();
    20772336    BOOL ret = WinStopTimer (hab, hwnd, idTimer);
    2078     __FPU_CW_Restore();
     2337    __FPU_CW_Set(cw);
    20792338    return ret;
    20802339}
    20812340#define WinStopTimer __FPU_CW_WinStopTimer
    20822341
    2083 inline BOOL APIENTRY __FPU_CW_WinShowTrackRect (HWND hwnd, BOOL fShow)
    2084 {
     2342extern inline BOOL APIENTRY __FPU_CW_WinShowTrackRect (HWND hwnd, BOOL fShow)
     2343{
     2344    unsigned int cw = __FPU_CW_Get();
    20852345    BOOL ret = WinShowTrackRect (hwnd, fShow);
    2086     __FPU_CW_Restore();
     2346    __FPU_CW_Set(cw);
    20872347    return ret;
    20882348}
    20892349#define WinShowTrackRect __FPU_CW_WinShowTrackRect
    20902350
    2091 inline BOOL APIENTRY __FPU_CW_WinTrackRect (HWND hwnd, HPS hps, PTRACKINFO pti)
    2092 {
     2351extern inline BOOL APIENTRY __FPU_CW_WinTrackRect (HWND hwnd, HPS hps, PTRACKINFO pti)
     2352{
     2353    unsigned int cw = __FPU_CW_Get();
    20932354    BOOL ret = WinTrackRect (hwnd, hps, pti);
    2094     __FPU_CW_Restore();
     2355    __FPU_CW_Set(cw);
    20952356    return ret;
    20962357}
    20972358#define WinTrackRect __FPU_CW_WinTrackRect
    20982359
    2099 inline LONG APIENTRY __FPU_CW_GpiAnimatePalette (HPAL hpal, ULONG ulFormat, ULONG ulStart,    ULONG ulCount, __const__ ULONG *aulTable)
    2100 {
     2360extern inline LONG APIENTRY __FPU_CW_GpiAnimatePalette (HPAL hpal, ULONG ulFormat, ULONG ulStart,    ULONG ulCount, __const__ ULONG *aulTable)
     2361{
     2362    unsigned int cw = __FPU_CW_Get();
    21012363    LONG ret = GpiAnimatePalette (hpal, ulFormat, ulStart,    ulCount, aulTable);
    2102     __FPU_CW_Restore();
     2364    __FPU_CW_Set(cw);
    21032365    return ret;
    21042366}
    21052367#define GpiAnimatePalette __FPU_CW_GpiAnimatePalette
    21062368
    2107 inline BOOL APIENTRY __FPU_CW_GpiBeginArea (HPS hps, ULONG flOptions)
    2108 {
     2369extern inline BOOL APIENTRY __FPU_CW_GpiBeginArea (HPS hps, ULONG flOptions)
     2370{
     2371    unsigned int cw = __FPU_CW_Get();
    21092372    BOOL ret = GpiBeginArea (hps, flOptions);
    2110     __FPU_CW_Restore();
     2373    __FPU_CW_Set(cw);
    21112374    return ret;
    21122375}
    21132376#define GpiBeginArea __FPU_CW_GpiBeginArea
    21142377
    2115 inline BOOL APIENTRY __FPU_CW_GpiBeginElement (HPS hps, LONG lType, PCSZ pszDesc)
    2116 {
     2378extern inline BOOL APIENTRY __FPU_CW_GpiBeginElement (HPS hps, LONG lType, PCSZ pszDesc)
     2379{
     2380    unsigned int cw = __FPU_CW_Get();
    21172381    BOOL ret = GpiBeginElement (hps, lType, pszDesc);
    2118     __FPU_CW_Restore();
     2382    __FPU_CW_Set(cw);
    21192383    return ret;
    21202384}
    21212385#define GpiBeginElement __FPU_CW_GpiBeginElement
    21222386
    2123 inline BOOL APIENTRY __FPU_CW_GpiBeginPath (HPS hps, LONG lPath)
    2124 {
     2387extern inline BOOL APIENTRY __FPU_CW_GpiBeginPath (HPS hps, LONG lPath)
     2388{
     2389    unsigned int cw = __FPU_CW_Get();
    21252390    BOOL ret = GpiBeginPath (hps, lPath);
    2126     __FPU_CW_Restore();
     2391    __FPU_CW_Set(cw);
    21272392    return ret;
    21282393}
    21292394#define GpiBeginPath __FPU_CW_GpiBeginPath
    21302395
    2131 inline LONG APIENTRY __FPU_CW_GpiBox (HPS hps, LONG lControl, __const__ POINTL *pptlPoint, LONG lHRound,    LONG lVRound)
    2132 {
     2396extern inline LONG APIENTRY __FPU_CW_GpiBox (HPS hps, LONG lControl, __const__ POINTL *pptlPoint, LONG lHRound,    LONG lVRound)
     2397{
     2398    unsigned int cw = __FPU_CW_Get();
    21332399    LONG ret = GpiBox (hps, lControl, pptlPoint, lHRound,    lVRound);
    2134     __FPU_CW_Restore();
     2400    __FPU_CW_Set(cw);
    21352401    return ret;
    21362402}
    21372403#define GpiBox __FPU_CW_GpiBox
    21382404
    2139 inline LONG APIENTRY __FPU_CW_GpiCallSegmentMatrix (HPS hps, LONG lSegment, LONG lCount,    __const__ MATRIXLF *pmatlfArray, LONG lOptions)
    2140 {
     2405extern inline LONG APIENTRY __FPU_CW_GpiCallSegmentMatrix (HPS hps, LONG lSegment, LONG lCount,    __const__ MATRIXLF *pmatlfArray, LONG lOptions)
     2406{
     2407    unsigned int cw = __FPU_CW_Get();
    21412408    LONG ret = GpiCallSegmentMatrix (hps, lSegment, lCount,    pmatlfArray, lOptions);
    2142     __FPU_CW_Restore();
     2409    __FPU_CW_Set(cw);
    21432410    return ret;
    21442411}
    21452412#define GpiCallSegmentMatrix __FPU_CW_GpiCallSegmentMatrix
    21462413
    2147 inline LONG APIENTRY __FPU_CW_GpiCharString (HPS hps, LONG lCount, PCCH pchString)
    2148 {
     2414extern inline LONG APIENTRY __FPU_CW_GpiCharString (HPS hps, LONG lCount, PCCH pchString)
     2415{
     2416    unsigned int cw = __FPU_CW_Get();
    21492417    LONG ret = GpiCharString (hps, lCount, pchString);
    2150     __FPU_CW_Restore();
     2418    __FPU_CW_Set(cw);
    21512419    return ret;
    21522420}
    21532421#define GpiCharString __FPU_CW_GpiCharString
    21542422
    2155 inline LONG APIENTRY __FPU_CW_GpiCharStringAt (HPS hps, __const__ POINTL *pptlPoint, LONG lCount,     PCCH pchString)
    2156 {
     2423extern inline LONG APIENTRY __FPU_CW_GpiCharStringAt (HPS hps, __const__ POINTL *pptlPoint, LONG lCount,     PCCH pchString)
     2424{
     2425    unsigned int cw = __FPU_CW_Get();
    21572426    LONG ret = GpiCharStringAt (hps, pptlPoint, lCount,     pchString);
    2158     __FPU_CW_Restore();
     2427    __FPU_CW_Set(cw);
    21592428    return ret;
    21602429}
    21612430#define GpiCharStringAt __FPU_CW_GpiCharStringAt
    21622431
    2163 inline LONG APIENTRY __FPU_CW_GpiCharStringPos (HPS hps, __const__ RECTL *prclRect, ULONG flOptions,    LONG lCount, PCCH pchString, __const__ LONG *alAdx)
    2164 {
     2432extern inline LONG APIENTRY __FPU_CW_GpiCharStringPos (HPS hps, __const__ RECTL *prclRect, ULONG flOptions,    LONG lCount, PCCH pchString, __const__ LONG *alAdx)
     2433{
     2434    unsigned int cw = __FPU_CW_Get();
    21652435    LONG ret = GpiCharStringPos (hps, prclRect, flOptions,    lCount, pchString, alAdx);
    2166     __FPU_CW_Restore();
     2436    __FPU_CW_Set(cw);
    21672437    return ret;
    21682438}
    21692439#define GpiCharStringPos __FPU_CW_GpiCharStringPos
    21702440
    2171 inline LONG APIENTRY  __FPU_CW_GpiCharStringPosAt (HPS hps, __const__ POINTL *pptlStart,    __const__ RECTL *prclRect, ULONG flOptions, LONG lCount, PCCH pchString,    __const__ LONG *alAdx)
    2172 {
     2441extern inline LONG APIENTRY  __FPU_CW_GpiCharStringPosAt (HPS hps, __const__ POINTL *pptlStart,    __const__ RECTL *prclRect, ULONG flOptions, LONG lCount, PCCH pchString,    __const__ LONG *alAdx)
     2442{
     2443    unsigned int cw = __FPU_CW_Get();
    21732444    LONG ret = GpiCharStringPosAt (hps, pptlStart,    prclRect, flOptions, lCount, pchString,    alAdx);
    2174     __FPU_CW_Restore();
     2445    __FPU_CW_Set(cw);
    21752446    return ret;
    21762447}
    21772448#define GpiCharStringPosAt __FPU_CW_GpiCharStringPosAt
    21782449
    2179 inline BOOL APIENTRY __FPU_CW_GpiCloseFigure (HPS hps)
    2180 {
     2450extern inline BOOL APIENTRY __FPU_CW_GpiCloseFigure (HPS hps)
     2451{
     2452    unsigned int cw = __FPU_CW_Get();
    21812453    BOOL ret = GpiCloseFigure (hps);
    2182     __FPU_CW_Restore();
     2454    __FPU_CW_Set(cw);
    21832455    return ret;
    21842456}
    21852457#define GpiCloseFigure __FPU_CW_GpiCloseFigure
    21862458
    2187 inline LONG APIENTRY __FPU_CW_GpiCombineRegion (HPS hps, HRGN hrgnDest, HRGN hrgnSrc1, HRGN hrgnSrc2,    LONG lMode)
    2188 {
     2459extern inline LONG APIENTRY __FPU_CW_GpiCombineRegion (HPS hps, HRGN hrgnDest, HRGN hrgnSrc1, HRGN hrgnSrc2,    LONG lMode)
     2460{
     2461    unsigned int cw = __FPU_CW_Get();
    21892462    LONG ret = GpiCombineRegion (hps, hrgnDest, hrgnSrc1, hrgnSrc2,    lMode);
    2190     __FPU_CW_Restore();
     2463    __FPU_CW_Set(cw);
    21912464    return ret;
    21922465}
    21932466#define GpiCombineRegion __FPU_CW_GpiCombineRegion
    21942467
    2195 inline BOOL APIENTRY __FPU_CW_GpiComment (HPS hps, LONG lLength, __const__ BYTE *pbData)
    2196 {
     2468extern inline BOOL APIENTRY __FPU_CW_GpiComment (HPS hps, LONG lLength, __const__ BYTE *pbData)
     2469{
     2470    unsigned int cw = __FPU_CW_Get();
    21972471    BOOL ret = GpiComment (hps, lLength, pbData);
    2198     __FPU_CW_Restore();
     2472    __FPU_CW_Set(cw);
    21992473    return ret;
    22002474}
    22012475#define GpiComment __FPU_CW_GpiComment
    22022476
    2203 inline BOOL APIENTRY __FPU_CW_GpiConvert (HPS hps, LONG lSrc, LONG lTarg, LONG lCount,    PPOINTL aptlPoints)
    2204 {
     2477extern inline BOOL APIENTRY __FPU_CW_GpiConvert (HPS hps, LONG lSrc, LONG lTarg, LONG lCount,    PPOINTL aptlPoints)
     2478{
     2479    unsigned int cw = __FPU_CW_Get();
    22052480    BOOL ret = GpiConvert (hps, lSrc, lTarg, lCount,    aptlPoints);
    2206     __FPU_CW_Restore();
     2481    __FPU_CW_Set(cw);
    22072482    return ret;
    22082483}
    22092484#define GpiConvert __FPU_CW_GpiConvert
    22102485
    2211 inline BOOL APIENTRY __FPU_CW_GpiConvertWithMatrix (HPS hps, LONG lCountp, PPOINTL aptlPoints,    LONG lCount, __const__ MATRIXLF *pmatlfArray)
    2212 {
     2486extern inline BOOL APIENTRY __FPU_CW_GpiConvertWithMatrix (HPS hps, LONG lCountp, PPOINTL aptlPoints,    LONG lCount, __const__ MATRIXLF *pmatlfArray)
     2487{
     2488    unsigned int cw = __FPU_CW_Get();
    22132489    BOOL ret = GpiConvertWithMatrix (hps, lCountp, aptlPoints,    lCount, pmatlfArray);
    2214     __FPU_CW_Restore();
     2490    __FPU_CW_Set(cw);
    22152491    return ret;
    22162492}
    22172493#define GpiConvertWithMatrix __FPU_CW_GpiConvertWithMatrix
    22182494
    2219 inline HMF APIENTRY __FPU_CW_GpiCopyMetaFile (HMF hmf)
    2220 {
     2495extern inline HMF APIENTRY __FPU_CW_GpiCopyMetaFile (HMF hmf)
     2496{
     2497    unsigned int cw = __FPU_CW_Get();
    22212498    HMF ret = GpiCopyMetaFile (hmf);
    2222     __FPU_CW_Restore();
     2499    __FPU_CW_Set(cw);
    22232500    return ret;
    22242501}
    22252502#define GpiCopyMetaFile __FPU_CW_GpiCopyMetaFile
    22262503
    2227 inline BOOL APIENTRY __FPU_CW_GpiCreateLogColorTable (HPS hps, ULONG flOptions, LONG lFormat,    LONG lStart, LONG lCount, __const__ LONG *alTable)
    2228 {
     2504extern inline BOOL APIENTRY __FPU_CW_GpiCreateLogColorTable (HPS hps, ULONG flOptions, LONG lFormat,    LONG lStart, LONG lCount, __const__ LONG *alTable)
     2505{
     2506    unsigned int cw = __FPU_CW_Get();
    22292507    BOOL ret = GpiCreateLogColorTable (hps, flOptions, lFormat,    lStart, lCount, alTable);
    2230     __FPU_CW_Restore();
     2508    __FPU_CW_Set(cw);
    22312509    return ret;
    22322510}
    22332511#define GpiCreateLogColorTable __FPU_CW_GpiCreateLogColorTable
    22342512
    2235 inline LONG APIENTRY __FPU_CW_GpiCreateLogFont (HPS hps, __const__ STR8 *pName, LONG lLcid,    __const__ FATTRS *pfatAttrs)
    2236 {
     2513extern inline LONG APIENTRY __FPU_CW_GpiCreateLogFont (HPS hps, __const__ STR8 *pName, LONG lLcid,    __const__ FATTRS *pfatAttrs)
     2514{
     2515    unsigned int cw = __FPU_CW_Get();
    22372516    LONG ret = GpiCreateLogFont (hps, pName, lLcid,    pfatAttrs);
    2238     __FPU_CW_Restore();
     2517    __FPU_CW_Set(cw);
    22392518    return ret;
    22402519}
    22412520#define GpiCreateLogFont __FPU_CW_GpiCreateLogFont
    22422521
    2243 inline HPAL APIENTRY __FPU_CW_GpiCreatePalette (HAB hab, ULONG flOptions, ULONG ulFormat,    ULONG ulCount, __const__ ULONG *aulTable)
    2244 {
     2522extern inline HPAL APIENTRY __FPU_CW_GpiCreatePalette (HAB hab, ULONG flOptions, ULONG ulFormat,    ULONG ulCount, __const__ ULONG *aulTable)
     2523{
     2524    unsigned int cw = __FPU_CW_Get();
    22452525    HPAL ret = GpiCreatePalette (hab, flOptions, ulFormat,    ulCount, aulTable);
    2246     __FPU_CW_Restore();
     2526    __FPU_CW_Set(cw);
    22472527    return ret;
    22482528}
    22492529#define GpiCreatePalette __FPU_CW_GpiCreatePalette
    22502530
    2251 inline HRGN APIENTRY __FPU_CW_GpiCreateRegion (HPS hps, LONG lCount, __const__ RECTL *arclRectangles)
    2252 {
     2531extern inline HRGN APIENTRY __FPU_CW_GpiCreateRegion (HPS hps, LONG lCount, __const__ RECTL *arclRectangles)
     2532{
     2533    unsigned int cw = __FPU_CW_Get();
    22532534    HRGN ret = GpiCreateRegion (hps, lCount, arclRectangles);
    2254     __FPU_CW_Restore();
     2535    __FPU_CW_Set(cw);
    22552536    return ret;
    22562537}
    22572538#define GpiCreateRegion __FPU_CW_GpiCreateRegion
    22582539
    2259 inline BOOL APIENTRY __FPU_CW_GpiDeleteElement (HPS hps)
    2260 {
     2540extern inline BOOL APIENTRY __FPU_CW_GpiDeleteElement (HPS hps)
     2541{
     2542    unsigned int cw = __FPU_CW_Get();
    22612543    BOOL ret = GpiDeleteElement (hps);
    2262     __FPU_CW_Restore();
     2544    __FPU_CW_Set(cw);
    22632545    return ret;
    22642546}
    22652547#define GpiDeleteElement __FPU_CW_GpiDeleteElement
    22662548
    2267 inline BOOL APIENTRY __FPU_CW_GpiDeleteElementRange (HPS hps, LONG lFirstElement, LONG lLastElement)
    2268 {
     2549extern inline BOOL APIENTRY __FPU_CW_GpiDeleteElementRange (HPS hps, LONG lFirstElement, LONG lLastElement)
     2550{
     2551    unsigned int cw = __FPU_CW_Get();
    22692552    BOOL ret = GpiDeleteElementRange (hps, lFirstElement, lLastElement);
    2270     __FPU_CW_Restore();
     2553    __FPU_CW_Set(cw);
    22712554    return ret;
    22722555}
    22732556#define GpiDeleteElementRange __FPU_CW_GpiDeleteElementRange
    22742557
    2275 inline BOOL APIENTRY __FPU_CW_GpiDeleteElementsBetweenLabels (HPS hps, LONG lFirstLabel,    LONG lLastLabel)
    2276 {
     2558extern inline BOOL APIENTRY __FPU_CW_GpiDeleteElementsBetweenLabels (HPS hps, LONG lFirstLabel,    LONG lLastLabel)
     2559{
     2560    unsigned int cw = __FPU_CW_Get();
    22772561    BOOL ret = GpiDeleteElementsBetweenLabels (hps, lFirstLabel,    lLastLabel);
    2278     __FPU_CW_Restore();
     2562    __FPU_CW_Set(cw);
    22792563    return ret;
    22802564}
    22812565#define GpiDeleteElementsBetweenLabels __FPU_CW_GpiDeleteElementsBetweenLabels
    22822566
    2283 inline BOOL APIENTRY __FPU_CW_GpiDeleteMetaFile (HMF hmf)
    2284 {
     2567extern inline BOOL APIENTRY __FPU_CW_GpiDeleteMetaFile (HMF hmf)
     2568{
     2569    unsigned int cw = __FPU_CW_Get();
    22852570    BOOL ret = GpiDeleteMetaFile (hmf);
    2286     __FPU_CW_Restore();
     2571    __FPU_CW_Set(cw);
    22872572    return ret;
    22882573}
    22892574#define GpiDeleteMetaFile __FPU_CW_GpiDeleteMetaFile
    22902575
    2291 inline BOOL APIENTRY __FPU_CW_GpiDeletePalette (HPAL hpal)
    2292 {
     2576extern inline BOOL APIENTRY __FPU_CW_GpiDeletePalette (HPAL hpal)
     2577{
     2578    unsigned int cw = __FPU_CW_Get();
    22932579    BOOL ret = GpiDeletePalette (hpal);
    2294     __FPU_CW_Restore();
     2580    __FPU_CW_Set(cw);
    22952581    return ret;
    22962582}
    22972583#define GpiDeletePalette __FPU_CW_GpiDeletePalette
    22982584
    2299 inline BOOL APIENTRY __FPU_CW_GpiDeleteSetId (HPS hps, LONG lLcid)
    2300 {
     2585extern inline BOOL APIENTRY __FPU_CW_GpiDeleteSetId (HPS hps, LONG lLcid)
     2586{
     2587    unsigned int cw = __FPU_CW_Get();
    23012588    BOOL ret = GpiDeleteSetId (hps, lLcid);
    2302     __FPU_CW_Restore();
     2589    __FPU_CW_Set(cw);
    23032590    return ret;
    23042591}
    23052592#define GpiDeleteSetId __FPU_CW_GpiDeleteSetId
    23062593
    2307 inline BOOL APIENTRY __FPU_CW_GpiDestroyRegion (HPS hps, HRGN hrgn)
    2308 {
     2594extern inline BOOL APIENTRY __FPU_CW_GpiDestroyRegion (HPS hps, HRGN hrgn)
     2595{
     2596    unsigned int cw = __FPU_CW_Get();
    23092597    BOOL ret = GpiDestroyRegion (hps, hrgn);
    2310     __FPU_CW_Restore();
     2598    __FPU_CW_Set(cw);
    23112599    return ret;
    23122600}
    23132601#define GpiDestroyRegion __FPU_CW_GpiDestroyRegion
    23142602
    2315 inline LONG APIENTRY __FPU_CW_GpiElement (HPS hps, LONG lType, PCSZ pszDesc, LONG lLength,    __const__ BYTE *pbData)
    2316 {
     2603extern inline LONG APIENTRY __FPU_CW_GpiElement (HPS hps, LONG lType, PCSZ pszDesc, LONG lLength,    __const__ BYTE *pbData)
     2604{
     2605    unsigned int cw = __FPU_CW_Get();
    23172606    LONG ret = GpiElement (hps, lType, pszDesc, lLength,    pbData);
    2318     __FPU_CW_Restore();
     2607    __FPU_CW_Set(cw);
    23192608    return ret;
    23202609}
    23212610#define GpiElement __FPU_CW_GpiElement
    23222611
    2323 inline LONG APIENTRY __FPU_CW_GpiEndArea (HPS hps)
    2324 {
     2612extern inline LONG APIENTRY __FPU_CW_GpiEndArea (HPS hps)
     2613{
     2614    unsigned int cw = __FPU_CW_Get();
    23252615    LONG ret = GpiEndArea (hps);
    2326     __FPU_CW_Restore();
     2616    __FPU_CW_Set(cw);
    23272617    return ret;
    23282618}
    23292619#define GpiEndArea __FPU_CW_GpiEndArea
    23302620
    2331 inline BOOL APIENTRY __FPU_CW_GpiEndElement (HPS hps)
    2332 {
     2621extern inline BOOL APIENTRY __FPU_CW_GpiEndElement (HPS hps)
     2622{
     2623    unsigned int cw = __FPU_CW_Get();
    23332624    BOOL ret = GpiEndElement (hps);
    2334     __FPU_CW_Restore();
     2625    __FPU_CW_Set(cw);
    23352626    return ret;
    23362627}
    23372628#define GpiEndElement __FPU_CW_GpiEndElement
    23382629
    2339 inline BOOL APIENTRY __FPU_CW_GpiEndPath (HPS hps)
    2340 {
     2630extern inline BOOL APIENTRY __FPU_CW_GpiEndPath (HPS hps)
     2631{
     2632    unsigned int cw = __FPU_CW_Get();
    23412633    BOOL ret = GpiEndPath (hps);
    2342     __FPU_CW_Restore();
     2634    __FPU_CW_Set(cw);
    23432635    return ret;
    23442636}
    23452637#define GpiEndPath __FPU_CW_GpiEndPath
    23462638
    2347 inline LONG APIENTRY __FPU_CW_GpiEqualRegion (HPS hps, HRGN hrgnSrc1, HRGN hrgnSrc2)
    2348 {
     2639extern inline LONG APIENTRY __FPU_CW_GpiEqualRegion (HPS hps, HRGN hrgnSrc1, HRGN hrgnSrc2)
     2640{
     2641    unsigned int cw = __FPU_CW_Get();
    23492642    LONG ret = GpiEqualRegion (hps, hrgnSrc1, hrgnSrc2);
    2350     __FPU_CW_Restore();
     2643    __FPU_CW_Set(cw);
    23512644    return ret;
    23522645}
    23532646#define GpiEqualRegion __FPU_CW_GpiEqualRegion
    23542647
    2355 inline LONG APIENTRY __FPU_CW_GpiExcludeClipRectangle (HPS hps, __const__ RECTL *prclRectangle)
    2356 {
     2648extern inline LONG APIENTRY __FPU_CW_GpiExcludeClipRectangle (HPS hps, __const__ RECTL *prclRectangle)
     2649{
     2650    unsigned int cw = __FPU_CW_Get();
    23572651    LONG ret = GpiExcludeClipRectangle (hps, prclRectangle);
    2358     __FPU_CW_Restore();
     2652    __FPU_CW_Set(cw);
    23592653    return ret;
    23602654}
    23612655#define GpiExcludeClipRectangle __FPU_CW_GpiExcludeClipRectangle
    23622656
    2363 inline LONG APIENTRY __FPU_CW_GpiFillPath (HPS hps, LONG lPath, LONG lOptions)
    2364 {
     2657extern inline LONG APIENTRY __FPU_CW_GpiFillPath (HPS hps, LONG lPath, LONG lOptions)
     2658{
     2659    unsigned int cw = __FPU_CW_Get();
    23652660    LONG ret = GpiFillPath (hps, lPath, lOptions);
    2366     __FPU_CW_Restore();
     2661    __FPU_CW_Set(cw);
    23672662    return ret;
    23682663}
    23692664#define GpiFillPath __FPU_CW_GpiFillPath
    23702665
    2371 inline LONG APIENTRY __FPU_CW_GpiFrameRegion (HPS hps, HRGN hrgn, __const__ SIZEL *thickness)
    2372 {
     2666extern inline LONG APIENTRY __FPU_CW_GpiFrameRegion (HPS hps, HRGN hrgn, __const__ SIZEL *thickness)
     2667{
     2668    unsigned int cw = __FPU_CW_Get();
    23732669    LONG ret = GpiFrameRegion (hps, hrgn, thickness);
    2374     __FPU_CW_Restore();
     2670    __FPU_CW_Set(cw);
    23752671    return ret;
    23762672}
    23772673#define GpiFrameRegion __FPU_CW_GpiFrameRegion
    23782674
    2379 inline LONG APIENTRY __FPU_CW_GpiFullArc (HPS hps, LONG lControl, FIXED fxMultiplier)
    2380 {
     2675extern inline LONG APIENTRY __FPU_CW_GpiFullArc (HPS hps, LONG lControl, FIXED fxMultiplier)
     2676{
     2677    unsigned int cw = __FPU_CW_Get();
    23812678    LONG ret = GpiFullArc (hps, lControl, fxMultiplier);
    2382     __FPU_CW_Restore();
     2679    __FPU_CW_Set(cw);
    23832680    return ret;
    23842681}
    23852682#define GpiFullArc __FPU_CW_GpiFullArc
    23862683
    2387 inline LONG APIENTRY __FPU_CW_GpiImage (HPS hps, LONG lFormat, __const__ SIZEL *psizlImageSize,    LONG lLength, __const__ BYTE *pbData)
    2388 {
     2684extern inline LONG APIENTRY __FPU_CW_GpiImage (HPS hps, LONG lFormat, __const__ SIZEL *psizlImageSize,    LONG lLength, __const__ BYTE *pbData)
     2685{
     2686    unsigned int cw = __FPU_CW_Get();
    23892687    LONG ret = GpiImage (hps, lFormat, psizlImageSize,    lLength, pbData);
    2390     __FPU_CW_Restore();
     2688    __FPU_CW_Set(cw);
    23912689    return ret;
    23922690}
    23932691#define GpiImage __FPU_CW_GpiImage
    23942692
    2395 inline LONG APIENTRY __FPU_CW_GpiIntersectClipRectangle (HPS hps, __const__ RECTL *prclRectangle)
    2396 {
     2693extern inline LONG APIENTRY __FPU_CW_GpiIntersectClipRectangle (HPS hps, __const__ RECTL *prclRectangle)
     2694{
     2695    unsigned int cw = __FPU_CW_Get();
    23972696    LONG ret = GpiIntersectClipRectangle (hps, prclRectangle);
    2398     __FPU_CW_Restore();
     2697    __FPU_CW_Set(cw);
    23992698    return ret;
    24002699}
    24012700#define GpiIntersectClipRectangle __FPU_CW_GpiIntersectClipRectangle
    24022701
    2403 inline BOOL APIENTRY __FPU_CW_GpiLabel (HPS hps, LONG lLabel)
    2404 {
     2702extern inline BOOL APIENTRY __FPU_CW_GpiLabel (HPS hps, LONG lLabel)
     2703{
     2704    unsigned int cw = __FPU_CW_Get();
    24052705    BOOL ret = GpiLabel (hps, lLabel);
    2406     __FPU_CW_Restore();
     2706    __FPU_CW_Set(cw);
    24072707    return ret;
    24082708}
    24092709#define GpiLabel __FPU_CW_GpiLabel
    24102710
    2411 inline LONG APIENTRY __FPU_CW_GpiLine (HPS hps, __const__ POINTL *pptlEndPoint)
    2412 {
     2711extern inline LONG APIENTRY __FPU_CW_GpiLine (HPS hps, __const__ POINTL *pptlEndPoint)
     2712{
     2713    unsigned int cw = __FPU_CW_Get();
    24132714    LONG ret = GpiLine (hps, pptlEndPoint);
    2414     __FPU_CW_Restore();
     2715    __FPU_CW_Set(cw);
    24152716    return ret;
    24162717}
    24172718#define GpiLine __FPU_CW_GpiLine
    24182719
    2419 inline BOOL APIENTRY __FPU_CW_GpiLoadFonts (HAB hab, PCSZ pszFilename)
    2420 {
     2720extern inline BOOL APIENTRY __FPU_CW_GpiLoadFonts (HAB hab, PCSZ pszFilename)
     2721{
     2722    unsigned int cw = __FPU_CW_Get();
    24212723    BOOL ret = GpiLoadFonts (hab, pszFilename);
    2422     __FPU_CW_Restore();
     2724    __FPU_CW_Set(cw);
    24232725    return ret;
    24242726}
    24252727#define GpiLoadFonts __FPU_CW_GpiLoadFonts
    24262728
    2427 inline HMF APIENTRY __FPU_CW_GpiLoadMetaFile (HAB hab, PCSZ pszFilename)
    2428 {
     2729extern inline HMF APIENTRY __FPU_CW_GpiLoadMetaFile (HAB hab, PCSZ pszFilename)
     2730{
     2731    unsigned int cw = __FPU_CW_Get();
    24292732    HMF ret = GpiLoadMetaFile (hab, pszFilename);
    2430     __FPU_CW_Restore();
     2733    __FPU_CW_Set(cw);
    24312734    return ret;
    24322735}
    24332736#define GpiLoadMetaFile __FPU_CW_GpiLoadMetaFile
    24342737
    2435 inline BOOL APIENTRY __FPU_CW_GpiLoadPublicFonts (HAB hab, PCSZ pszFileName)
    2436 {
     2738extern inline BOOL APIENTRY __FPU_CW_GpiLoadPublicFonts (HAB hab, PCSZ pszFileName)
     2739{
     2740    unsigned int cw = __FPU_CW_Get();
    24372741    BOOL ret = GpiLoadPublicFonts (hab, pszFileName);
    2438     __FPU_CW_Restore();
     2742    __FPU_CW_Set(cw);
    24392743    return ret;
    24402744}
    24412745#define GpiLoadPublicFonts __FPU_CW_GpiLoadPublicFonts
    24422746
    2443 inline LONG APIENTRY __FPU_CW_GpiMarker (HPS hps, __const__ POINTL *pptlPoint)
    2444 {
     2747extern inline LONG APIENTRY __FPU_CW_GpiMarker (HPS hps, __const__ POINTL *pptlPoint)
     2748{
     2749    unsigned int cw = __FPU_CW_Get();
    24452750    LONG ret = GpiMarker (hps, pptlPoint);
    2446     __FPU_CW_Restore();
     2751    __FPU_CW_Set(cw);
    24472752    return ret;
    24482753}
    24492754#define GpiMarker __FPU_CW_GpiMarker
    24502755
    2451 inline BOOL APIENTRY __FPU_CW_GpiModifyPath (HPS hps, LONG lPath, LONG lMode)
    2452 {
     2756extern inline BOOL APIENTRY __FPU_CW_GpiModifyPath (HPS hps, LONG lPath, LONG lMode)
     2757{
     2758    unsigned int cw = __FPU_CW_Get();
    24532759    BOOL ret = GpiModifyPath (hps, lPath, lMode);
    2454     __FPU_CW_Restore();
     2760    __FPU_CW_Set(cw);
    24552761    return ret;
    24562762}
    24572763#define GpiModifyPath __FPU_CW_GpiModifyPath
    24582764
    2459 inline BOOL APIENTRY __FPU_CW_GpiMove (HPS hps, __const__ POINTL *pptlPoint)
    2460 {
     2765extern inline BOOL APIENTRY __FPU_CW_GpiMove (HPS hps, __const__ POINTL *pptlPoint)
     2766{
     2767    unsigned int cw = __FPU_CW_Get();
    24612768    BOOL ret = GpiMove (hps, pptlPoint);
    2462     __FPU_CW_Restore();
     2769    __FPU_CW_Set(cw);
    24632770    return ret;
    24642771}
    24652772#define GpiMove __FPU_CW_GpiMove
    24662773
    2467 inline LONG APIENTRY __FPU_CW_GpiOffsetClipRegion (HPS hps, __const__ POINTL *pptlPoint)
    2468 {
     2774extern inline LONG APIENTRY __FPU_CW_GpiOffsetClipRegion (HPS hps, __const__ POINTL *pptlPoint)
     2775{
     2776    unsigned int cw = __FPU_CW_Get();
    24692777    LONG ret = GpiOffsetClipRegion (hps, pptlPoint);
    2470     __FPU_CW_Restore();
     2778    __FPU_CW_Set(cw);
    24712779    return ret;
    24722780}
    24732781#define GpiOffsetClipRegion __FPU_CW_GpiOffsetClipRegion
    24742782
    2475 inline BOOL APIENTRY __FPU_CW_GpiOffsetElementPointer (HPS hps, LONG loffset)
    2476 {
     2783extern inline BOOL APIENTRY __FPU_CW_GpiOffsetElementPointer (HPS hps, LONG loffset)
     2784{
     2785    unsigned int cw = __FPU_CW_Get();
    24772786    BOOL ret = GpiOffsetElementPointer (hps, loffset);
    2478     __FPU_CW_Restore();
     2787    __FPU_CW_Set(cw);
    24792788    return ret;
    24802789}
    24812790#define GpiOffsetElementPointer __FPU_CW_GpiOffsetElementPointer
    24822791
    2483 inline BOOL APIENTRY __FPU_CW_GpiOffsetRegion (HPS hps, HRGN Hrgn, __const__ POINTL *pptlOffset)
    2484 {
     2792extern inline BOOL APIENTRY __FPU_CW_GpiOffsetRegion (HPS hps, HRGN Hrgn, __const__ POINTL *pptlOffset)
     2793{
     2794    unsigned int cw = __FPU_CW_Get();
    24852795    BOOL ret = GpiOffsetRegion (hps, Hrgn, pptlOffset);
    2486     __FPU_CW_Restore();
     2796    __FPU_CW_Set(cw);
    24872797    return ret;
    24882798}
    24892799#define GpiOffsetRegion __FPU_CW_GpiOffsetRegion
    24902800
    2491 inline LONG APIENTRY __FPU_CW_GpiOutlinePath (HPS hps, LONG lPath, LONG lOptions)
    2492 {
     2801extern inline LONG APIENTRY __FPU_CW_GpiOutlinePath (HPS hps, LONG lPath, LONG lOptions)
     2802{
     2803    unsigned int cw = __FPU_CW_Get();
    24932804    LONG ret = GpiOutlinePath (hps, lPath, lOptions);
    2494     __FPU_CW_Restore();
     2805    __FPU_CW_Set(cw);
    24952806    return ret;
    24962807}
    24972808#define GpiOutlinePath __FPU_CW_GpiOutlinePath
    24982809
    2499 inline LONG APIENTRY __FPU_CW_GpiPaintRegion (HPS hps, HRGN hrgn)
    2500 {
     2810extern inline LONG APIENTRY __FPU_CW_GpiPaintRegion (HPS hps, HRGN hrgn)
     2811{
     2812    unsigned int cw = __FPU_CW_Get();
    25012813    LONG ret = GpiPaintRegion (hps, hrgn);
    2502     __FPU_CW_Restore();
     2814    __FPU_CW_Set(cw);
    25032815    return ret;
    25042816}
    25052817#define GpiPaintRegion __FPU_CW_GpiPaintRegion
    25062818
    2507 inline LONG APIENTRY __FPU_CW_GpiPartialArc (HPS hps, __const__ POINTL *pptlCenter, FIXED fxMultiplier,    FIXED fxStartAngle, FIXED fxSweepAngle)
    2508 {
     2819extern inline LONG APIENTRY __FPU_CW_GpiPartialArc (HPS hps, __const__ POINTL *pptlCenter, FIXED fxMultiplier,    FIXED fxStartAngle, FIXED fxSweepAngle)
     2820{
     2821    unsigned int cw = __FPU_CW_Get();
    25092822    LONG ret = GpiPartialArc (hps, pptlCenter, fxMultiplier,    fxStartAngle, fxSweepAngle);
    2510     __FPU_CW_Restore();
     2823    __FPU_CW_Set(cw);
    25112824    return ret;
    25122825}
    25132826#define GpiPartialArc __FPU_CW_GpiPartialArc
    25142827
    2515 inline HRGN APIENTRY __FPU_CW_GpiPathToRegion (HPS GpiH, LONG lPath, LONG lOptions)
    2516 {
     2828extern inline HRGN APIENTRY __FPU_CW_GpiPathToRegion (HPS GpiH, LONG lPath, LONG lOptions)
     2829{
     2830    unsigned int cw = __FPU_CW_Get();
    25172831    HRGN ret = GpiPathToRegion (GpiH, lPath, lOptions);
    2518     __FPU_CW_Restore();
     2832    __FPU_CW_Set(cw);
    25192833    return ret;
    25202834}
    25212835#define GpiPathToRegion __FPU_CW_GpiPathToRegion
    25222836
    2523 inline LONG APIENTRY __FPU_CW_GpiPlayMetaFile (HPS hps, HMF hmf, LONG lCount1,    __const__ LONG *alOptarray, PLONG plSegCount, LONG lCount2, PSZ pszDesc)
    2524 {
     2837extern inline LONG APIENTRY __FPU_CW_GpiPlayMetaFile (HPS hps, HMF hmf, LONG lCount1,    __const__ LONG *alOptarray, PLONG plSegCount, LONG lCount2, PSZ pszDesc)
     2838{
     2839    unsigned int cw = __FPU_CW_Get();
    25252840    LONG ret = GpiPlayMetaFile (hps, hmf, lCount1,    alOptarray, plSegCount, lCount2, pszDesc);
    2526     __FPU_CW_Restore();
     2841    __FPU_CW_Set(cw);
    25272842    return ret;
    25282843}
    25292844#define GpiPlayMetaFile __FPU_CW_GpiPlayMetaFile
    25302845
    2531 inline LONG APIENTRY __FPU_CW_GpiPointArc (HPS hps, __const__ POINTL *pptl2)
    2532 {
     2846extern inline LONG APIENTRY __FPU_CW_GpiPointArc (HPS hps, __const__ POINTL *pptl2)
     2847{
     2848    unsigned int cw = __FPU_CW_Get();
    25332849    LONG ret = GpiPointArc (hps, pptl2);
    2534     __FPU_CW_Restore();
     2850    __FPU_CW_Set(cw);
    25352851    return ret;
    25362852}
    25372853#define GpiPointArc __FPU_CW_GpiPointArc
    25382854
    2539 inline LONG APIENTRY __FPU_CW_GpiPolyFillet (HPS hps, LONG lCount, __const__ POINTL *aptlPoints)
    2540 {
     2855extern inline LONG APIENTRY __FPU_CW_GpiPolyFillet (HPS hps, LONG lCount, __const__ POINTL *aptlPoints)
     2856{
     2857    unsigned int cw = __FPU_CW_Get();
    25412858    LONG ret = GpiPolyFillet (hps, lCount, aptlPoints);
    2542     __FPU_CW_Restore();
     2859    __FPU_CW_Set(cw);
    25432860    return ret;
    25442861}
    25452862#define GpiPolyFillet __FPU_CW_GpiPolyFillet
    25462863
    2547 inline LONG APIENTRY __FPU_CW_GpiPolyFilletSharp (HPS hps, LONG lCount, __const__ POINTL *aptlPoints,    __const__ FIXED *afxPoints)
    2548 {
     2864extern inline LONG APIENTRY __FPU_CW_GpiPolyFilletSharp (HPS hps, LONG lCount, __const__ POINTL *aptlPoints,    __const__ FIXED *afxPoints)
     2865{
     2866    unsigned int cw = __FPU_CW_Get();
    25492867    LONG ret = GpiPolyFilletSharp (hps, lCount, aptlPoints,    afxPoints);
    2550     __FPU_CW_Restore();
     2868    __FPU_CW_Set(cw);
    25512869    return ret;
    25522870}
    25532871#define GpiPolyFilletSharp __FPU_CW_GpiPolyFilletSharp
    25542872
    2555 inline LONG APIENTRY __FPU_CW_GpiPolygons (HPS hps, ULONG ulCount, __const__ POLYGON *paplgn,    ULONG flOptions, ULONG flModel)
    2556 {
     2873extern inline LONG APIENTRY __FPU_CW_GpiPolygons (HPS hps, ULONG ulCount, __const__ POLYGON *paplgn,    ULONG flOptions, ULONG flModel)
     2874{
     2875    unsigned int cw = __FPU_CW_Get();
    25572876    LONG ret = GpiPolygons (hps, ulCount, paplgn,    flOptions, flModel);
    2558     __FPU_CW_Restore();
     2877    __FPU_CW_Set(cw);
    25592878    return ret;
    25602879}
    25612880#define GpiPolygons __FPU_CW_GpiPolygons
    25622881
    2563 inline LONG APIENTRY __FPU_CW_GpiPolyLine (HPS hps, LONG lCount, __const__ POINTL *aptlPoints)
    2564 {
     2882extern inline LONG APIENTRY __FPU_CW_GpiPolyLine (HPS hps, LONG lCount, __const__ POINTL *aptlPoints)
     2883{
     2884    unsigned int cw = __FPU_CW_Get();
    25652885    LONG ret = GpiPolyLine (hps, lCount, aptlPoints);
    2566     __FPU_CW_Restore();
     2886    __FPU_CW_Set(cw);
    25672887    return ret;
    25682888}
    25692889#define GpiPolyLine __FPU_CW_GpiPolyLine
    25702890
    2571 inline LONG APIENTRY __FPU_CW_GpiPolyLineDisjoint (HPS hps, LONG lCount, __const__ POINTL *aptlPoints)
    2572 {
     2891extern inline LONG APIENTRY __FPU_CW_GpiPolyLineDisjoint (HPS hps, LONG lCount, __const__ POINTL *aptlPoints)
     2892{
     2893    unsigned int cw = __FPU_CW_Get();
    25732894    LONG ret = GpiPolyLineDisjoint (hps, lCount, aptlPoints);
    2574     __FPU_CW_Restore();
     2895    __FPU_CW_Set(cw);
    25752896    return ret;
    25762897}
    25772898#define GpiPolyLineDisjoint __FPU_CW_GpiPolyLineDisjoint
    25782899
    2579 inline LONG APIENTRY __FPU_CW_GpiPolyMarker (HPS hps, LONG lCount, __const__ POINTL *aptlPoints)
    2580 {
     2900extern inline LONG APIENTRY __FPU_CW_GpiPolyMarker (HPS hps, LONG lCount, __const__ POINTL *aptlPoints)
     2901{
     2902    unsigned int cw = __FPU_CW_Get();
    25812903    LONG ret = GpiPolyMarker (hps, lCount, aptlPoints);
    2582     __FPU_CW_Restore();
     2904    __FPU_CW_Set(cw);
    25832905    return ret;
    25842906}
    25852907#define GpiPolyMarker __FPU_CW_GpiPolyMarker
    25862908
    2587 inline LONG APIENTRY __FPU_CW_GpiPolySpline (HPS hps, LONG lCount, __const__ POINTL *aptlPoints)
    2588 {
     2909extern inline LONG APIENTRY __FPU_CW_GpiPolySpline (HPS hps, LONG lCount, __const__ POINTL *aptlPoints)
     2910{
     2911    unsigned int cw = __FPU_CW_Get();
    25892912    LONG ret = GpiPolySpline (hps, lCount, aptlPoints);
    2590     __FPU_CW_Restore();
     2913    __FPU_CW_Set(cw);
    25912914    return ret;
    25922915}
    25932916#define GpiPolySpline __FPU_CW_GpiPolySpline
    25942917
    2595 inline BOOL APIENTRY __FPU_CW_GpiPop (HPS hps, LONG lCount)
    2596 {
     2918extern inline BOOL APIENTRY __FPU_CW_GpiPop (HPS hps, LONG lCount)
     2919{
     2920    unsigned int cw = __FPU_CW_Get();
    25972921    BOOL ret = GpiPop (hps, lCount);
    2598     __FPU_CW_Restore();
     2922    __FPU_CW_Set(cw);
    25992923    return ret;
    26002924}
    26012925#define GpiPop __FPU_CW_GpiPop
    26022926
    2603 inline LONG APIENTRY __FPU_CW_GpiPtInRegion (HPS hps, HRGN hrgn, __const__ POINTL *pptlPoint)
    2604 {
     2927extern inline LONG APIENTRY __FPU_CW_GpiPtInRegion (HPS hps, HRGN hrgn, __const__ POINTL *pptlPoint)
     2928{
     2929    unsigned int cw = __FPU_CW_Get();
    26052930    LONG ret = GpiPtInRegion (hps, hrgn, pptlPoint);
    2606     __FPU_CW_Restore();
     2931    __FPU_CW_Set(cw);
    26072932    return ret;
    26082933}
    26092934#define GpiPtInRegion __FPU_CW_GpiPtInRegion
    26102935
    2611 inline LONG APIENTRY __FPU_CW_GpiPtVisible (HPS hps, __const__ POINTL *pptlPoint)
    2612 {
     2936extern inline LONG APIENTRY __FPU_CW_GpiPtVisible (HPS hps, __const__ POINTL *pptlPoint)
     2937{
     2938    unsigned int cw = __FPU_CW_Get();
    26132939    LONG ret = GpiPtVisible (hps, pptlPoint);
    2614     __FPU_CW_Restore();
     2940    __FPU_CW_Set(cw);
    26152941    return ret;
    26162942}
    26172943#define GpiPtVisible __FPU_CW_GpiPtVisible
    26182944
    2619 inline BOOL APIENTRY __FPU_CW_GpiQueryArcParams (HPS hps, PARCPARAMS parcpArcParams)
    2620 {
     2945extern inline BOOL APIENTRY __FPU_CW_GpiQueryArcParams (HPS hps, PARCPARAMS parcpArcParams)
     2946{
     2947    unsigned int cw = __FPU_CW_Get();
    26212948    BOOL ret = GpiQueryArcParams (hps, parcpArcParams);
    2622     __FPU_CW_Restore();
     2949    __FPU_CW_Set(cw);
    26232950    return ret;
    26242951}
    26252952#define GpiQueryArcParams __FPU_CW_GpiQueryArcParams
    26262953
    2627 inline LONG APIENTRY __FPU_CW_GpiQueryAttrMode (HPS hps)
    2628 {
     2954extern inline LONG APIENTRY __FPU_CW_GpiQueryAttrMode (HPS hps)
     2955{
     2956    unsigned int cw = __FPU_CW_Get();
    26292957    LONG ret = GpiQueryAttrMode (hps);
    2630     __FPU_CW_Restore();
     2958    __FPU_CW_Set(cw);
    26312959    return ret;
    26322960}
    26332961#define GpiQueryAttrMode __FPU_CW_GpiQueryAttrMode
    26342962
    2635 inline LONG APIENTRY __FPU_CW_GpiQueryAttrs (HPS hps, LONG lPrimType, ULONG flAttrMask,    PBUNDLE ppbunAttrs)
    2636 {
     2963extern inline LONG APIENTRY __FPU_CW_GpiQueryAttrs (HPS hps, LONG lPrimType, ULONG flAttrMask,    PBUNDLE ppbunAttrs)
     2964{
     2965    unsigned int cw = __FPU_CW_Get();
    26372966    LONG ret = GpiQueryAttrs (hps, lPrimType, flAttrMask,    ppbunAttrs);
    2638     __FPU_CW_Restore();
     2967    __FPU_CW_Set(cw);
    26392968    return ret;
    26402969}
    26412970#define GpiQueryAttrs __FPU_CW_GpiQueryAttrs
    26422971
    2643 inline LONG APIENTRY __FPU_CW_GpiQueryBackColor (HPS hps)
    2644 {
     2972extern inline LONG APIENTRY __FPU_CW_GpiQueryBackColor (HPS hps)
     2973{
     2974    unsigned int cw = __FPU_CW_Get();
    26452975    LONG ret = GpiQueryBackColor (hps);
    2646     __FPU_CW_Restore();
     2976    __FPU_CW_Set(cw);
    26472977    return ret;
    26482978}
    26492979#define GpiQueryBackColor __FPU_CW_GpiQueryBackColor
    26502980
    2651 inline LONG APIENTRY __FPU_CW_GpiQueryBackMix (HPS hps)
    2652 {
     2981extern inline LONG APIENTRY __FPU_CW_GpiQueryBackMix (HPS hps)
     2982{
     2983    unsigned int cw = __FPU_CW_Get();
    26532984    LONG ret = GpiQueryBackMix (hps);
    2654     __FPU_CW_Restore();
     2985    __FPU_CW_Set(cw);
    26552986    return ret;
    26562987}
    26572988#define GpiQueryBackMix __FPU_CW_GpiQueryBackMix
    26582989
    2659 inline BOOL APIENTRY __FPU_CW_GpiQueryCharAngle (HPS hps, PGRADIENTL pgradlAngle)
    2660 {
     2990extern inline BOOL APIENTRY __FPU_CW_GpiQueryCharAngle (HPS hps, PGRADIENTL pgradlAngle)
     2991{
     2992    unsigned int cw = __FPU_CW_Get();
    26612993    BOOL ret = GpiQueryCharAngle (hps, pgradlAngle);
    2662     __FPU_CW_Restore();
     2994    __FPU_CW_Set(cw);
    26632995    return ret;
    26642996}
    26652997#define GpiQueryCharAngle __FPU_CW_GpiQueryCharAngle
    26662998
    2667 inline BOOL APIENTRY __FPU_CW_GpiQueryCharBox (HPS hps, PSIZEF psizfxSize)
    2668 {
     2999extern inline BOOL APIENTRY __FPU_CW_GpiQueryCharBox (HPS hps, PSIZEF psizfxSize)
     3000{
     3001    unsigned int cw = __FPU_CW_Get();
    26693002    BOOL ret = GpiQueryCharBox (hps, psizfxSize);
    2670     __FPU_CW_Restore();
     3003    __FPU_CW_Set(cw);
    26713004    return ret;
    26723005}
    26733006#define GpiQueryCharBox __FPU_CW_GpiQueryCharBox
    26743007
    2675 inline BOOL APIENTRY __FPU_CW_GpiQueryCharBreakExtra (HPS hps, PFIXED BreakExtra)
    2676 {
     3008extern inline BOOL APIENTRY __FPU_CW_GpiQueryCharBreakExtra (HPS hps, PFIXED BreakExtra)
     3009{
     3010    unsigned int cw = __FPU_CW_Get();
    26773011    BOOL ret = GpiQueryCharBreakExtra (hps, BreakExtra);
    2678     __FPU_CW_Restore();
     3012    __FPU_CW_Set(cw);
    26793013    return ret;
    26803014}
    26813015#define GpiQueryCharBreakExtra __FPU_CW_GpiQueryCharBreakExtra
    26823016
    2683 inline LONG APIENTRY __FPU_CW_GpiQueryCharDirection (HPS hps)
    2684 {
     3017extern inline LONG APIENTRY __FPU_CW_GpiQueryCharDirection (HPS hps)
     3018{
     3019    unsigned int cw = __FPU_CW_Get();
    26853020    LONG ret = GpiQueryCharDirection (hps);
    2686     __FPU_CW_Restore();
     3021    __FPU_CW_Set(cw);
    26873022    return ret;
    26883023}
    26893024#define GpiQueryCharDirection __FPU_CW_GpiQueryCharDirection
    26903025
    2691 inline BOOL APIENTRY __FPU_CW_GpiQueryCharExtra (HPS hps, PFIXED Extra)
    2692 {
     3026extern inline BOOL APIENTRY __FPU_CW_GpiQueryCharExtra (HPS hps, PFIXED Extra)
     3027{
     3028    unsigned int cw = __FPU_CW_Get();
    26933029    BOOL ret = GpiQueryCharExtra (hps, Extra);
    2694     __FPU_CW_Restore();
     3030    __FPU_CW_Set(cw);
    26953031    return ret;
    26963032}
    26973033#define GpiQueryCharExtra __FPU_CW_GpiQueryCharExtra
    26983034
    2699 inline LONG APIENTRY __FPU_CW_GpiQueryCharMode (HPS hps)
    2700 {
     3035extern inline LONG APIENTRY __FPU_CW_GpiQueryCharMode (HPS hps)
     3036{
     3037    unsigned int cw = __FPU_CW_Get();
    27013038    LONG ret = GpiQueryCharMode (hps);
    2702     __FPU_CW_Restore();
     3039    __FPU_CW_Set(cw);
    27033040    return ret;
    27043041}
    27053042#define GpiQueryCharMode __FPU_CW_GpiQueryCharMode
    27063043
    2707 inline LONG APIENTRY __FPU_CW_GpiQueryCharSet (HPS hps)
    2708 {
     3044extern inline LONG APIENTRY __FPU_CW_GpiQueryCharSet (HPS hps)
     3045{
     3046    unsigned int cw = __FPU_CW_Get();
    27093047    LONG ret = GpiQueryCharSet (hps);
    2710     __FPU_CW_Restore();
     3048    __FPU_CW_Set(cw);
    27113049    return ret;
    27123050}
    27133051#define GpiQueryCharSet __FPU_CW_GpiQueryCharSet
    27143052
    2715 inline BOOL APIENTRY __FPU_CW_GpiQueryCharShear (HPS hps, PPOINTL pptlShear)
    2716 {
     3053extern inline BOOL APIENTRY __FPU_CW_GpiQueryCharShear (HPS hps, PPOINTL pptlShear)
     3054{
     3055    unsigned int cw = __FPU_CW_Get();
    27173056    BOOL ret = GpiQueryCharShear (hps, pptlShear);
    2718     __FPU_CW_Restore();
     3057    __FPU_CW_Set(cw);
    27193058    return ret;
    27203059}
    27213060#define GpiQueryCharShear __FPU_CW_GpiQueryCharShear
    27223061
    2723 inline BOOL APIENTRY __FPU_CW_GpiQueryCharStringPos (HPS hps, ULONG flOptions, LONG lCount,    PCCH pchString, PLONG alXincrements, PPOINTL aptlPositions)
    2724 {
     3062extern inline BOOL APIENTRY __FPU_CW_GpiQueryCharStringPos (HPS hps, ULONG flOptions, LONG lCount,    PCCH pchString, PLONG alXincrements, PPOINTL aptlPositions)
     3063{
     3064    unsigned int cw = __FPU_CW_Get();
    27253065    BOOL ret = GpiQueryCharStringPos (hps, flOptions, lCount,    pchString, alXincrements, aptlPositions);
    2726     __FPU_CW_Restore();
     3066    __FPU_CW_Set(cw);
    27273067    return ret;
    27283068}
    27293069#define GpiQueryCharStringPos __FPU_CW_GpiQueryCharStringPos
    27303070
    2731 inline BOOL APIENTRY __FPU_CW_GpiQueryCharStringPosAt (HPS hps, PPOINTL pptlStart, ULONG flOptions,    LONG lCount, PCCH pchString, PLONG alXincrements, PPOINTL aptlPositions)
    2732 {
     3071extern inline BOOL APIENTRY __FPU_CW_GpiQueryCharStringPosAt (HPS hps, PPOINTL pptlStart, ULONG flOptions,    LONG lCount, PCCH pchString, PLONG alXincrements, PPOINTL aptlPositions)
     3072{
     3073    unsigned int cw = __FPU_CW_Get();
    27333074    BOOL ret = GpiQueryCharStringPosAt (hps, pptlStart, flOptions,    lCount, pchString, alXincrements, aptlPositions);
    2734     __FPU_CW_Restore();
     3075    __FPU_CW_Set(cw);
    27353076    return ret;
    27363077}
    27373078#define GpiQueryCharStringPosAt __FPU_CW_GpiQueryCharStringPosAt
    27383079
    2739 inline LONG APIENTRY __FPU_CW_GpiQueryClipBox (HPS hps, PRECTL prclBound)
    2740 {
     3080extern inline LONG APIENTRY __FPU_CW_GpiQueryClipBox (HPS hps, PRECTL prclBound)
     3081{
     3082    unsigned int cw = __FPU_CW_Get();
    27413083    LONG ret = GpiQueryClipBox (hps, prclBound);
    2742     __FPU_CW_Restore();
     3084    __FPU_CW_Set(cw);
    27433085    return ret;
    27443086}
    27453087#define GpiQueryClipBox __FPU_CW_GpiQueryClipBox
    27463088
    2747 inline HRGN APIENTRY __FPU_CW_GpiQueryClipRegion (HPS hps)
    2748 {
     3089extern inline HRGN APIENTRY __FPU_CW_GpiQueryClipRegion (HPS hps)
     3090{
     3091    unsigned int cw = __FPU_CW_Get();
    27493092    HRGN ret = GpiQueryClipRegion (hps);
    2750     __FPU_CW_Restore();
     3093    __FPU_CW_Set(cw);
    27513094    return ret;
    27523095}
    27533096#define GpiQueryClipRegion __FPU_CW_GpiQueryClipRegion
    27543097
    2755 inline LONG APIENTRY __FPU_CW_GpiQueryColor (HPS hps)
    2756 {
     3098extern inline LONG APIENTRY __FPU_CW_GpiQueryColor (HPS hps)
     3099{
     3100    unsigned int cw = __FPU_CW_Get();
    27573101    LONG ret = GpiQueryColor (hps);
    2758     __FPU_CW_Restore();
     3102    __FPU_CW_Set(cw);
    27593103    return ret;
    27603104}
    27613105#define GpiQueryColor __FPU_CW_GpiQueryColor
    27623106
    2763 inline BOOL APIENTRY __FPU_CW_GpiQueryColorData (HPS hps, LONG lCount, PLONG alArray)
    2764 {
     3107extern inline BOOL APIENTRY __FPU_CW_GpiQueryColorData (HPS hps, LONG lCount, PLONG alArray)
     3108{
     3109    unsigned int cw = __FPU_CW_Get();
    27653110    BOOL ret = GpiQueryColorData (hps, lCount, alArray);
    2766     __FPU_CW_Restore();
     3111    __FPU_CW_Set(cw);
    27673112    return ret;
    27683113}
    27693114#define GpiQueryColorData __FPU_CW_GpiQueryColorData
    27703115
    2771 inline LONG APIENTRY __FPU_CW_GpiQueryColorIndex (HPS hps, ULONG flOptions, LONG lRgbColor)
    2772 {
     3116extern inline LONG APIENTRY __FPU_CW_GpiQueryColorIndex (HPS hps, ULONG flOptions, LONG lRgbColor)
     3117{
     3118    unsigned int cw = __FPU_CW_Get();
    27733119    LONG ret = GpiQueryColorIndex (hps, flOptions, lRgbColor);
    2774     __FPU_CW_Restore();
     3120    __FPU_CW_Set(cw);
    27753121    return ret;
    27763122}
    27773123#define GpiQueryColorIndex __FPU_CW_GpiQueryColorIndex
    27783124
    2779 inline ULONG APIENTRY __FPU_CW_GpiQueryCp (HPS hps)
    2780 {
     3125extern inline ULONG APIENTRY __FPU_CW_GpiQueryCp (HPS hps)
     3126{
     3127    unsigned int cw = __FPU_CW_Get();
    27813128    ULONG ret = GpiQueryCp (hps);
    2782     __FPU_CW_Restore();
     3129    __FPU_CW_Set(cw);
    27833130    return ret;
    27843131}
    27853132#define GpiQueryCp __FPU_CW_GpiQueryCp
    27863133
    2787 inline BOOL APIENTRY __FPU_CW_GpiQueryCurrentPosition (HPS hps, PPOINTL pptlPoint)
    2788 {
     3134extern inline BOOL APIENTRY __FPU_CW_GpiQueryCurrentPosition (HPS hps, PPOINTL pptlPoint)
     3135{
     3136    unsigned int cw = __FPU_CW_Get();
    27893137    BOOL ret = GpiQueryCurrentPosition (hps, pptlPoint);
    2790     __FPU_CW_Restore();
     3138    __FPU_CW_Set(cw);
    27913139    return ret;
    27923140}
    27933141#define GpiQueryCurrentPosition __FPU_CW_GpiQueryCurrentPosition
    27943142
    2795 inline BOOL APIENTRY __FPU_CW_GpiQueryDefArcParams (HPS hps, PARCPARAMS parcpArcParams)
    2796 {
     3143extern inline BOOL APIENTRY __FPU_CW_GpiQueryDefArcParams (HPS hps, PARCPARAMS parcpArcParams)
     3144{
     3145    unsigned int cw = __FPU_CW_Get();
    27973146    BOOL ret = GpiQueryDefArcParams (hps, parcpArcParams);
    2798     __FPU_CW_Restore();
     3147    __FPU_CW_Set(cw);
    27993148    return ret;
    28003149}
    28013150#define GpiQueryDefArcParams __FPU_CW_GpiQueryDefArcParams
    28023151
    2803 inline BOOL APIENTRY __FPU_CW_GpiQueryDefAttrs (HPS hps, LONG lPrimType, ULONG flAttrMask,    PBUNDLE ppbunAttrs)
    2804 {
     3152extern inline BOOL APIENTRY __FPU_CW_GpiQueryDefAttrs (HPS hps, LONG lPrimType, ULONG flAttrMask,    PBUNDLE ppbunAttrs)
     3153{
     3154    unsigned int cw = __FPU_CW_Get();
    28053155    BOOL ret = GpiQueryDefAttrs (hps, lPrimType, flAttrMask,    ppbunAttrs);
    2806     __FPU_CW_Restore();
     3156    __FPU_CW_Set(cw);
    28073157    return ret;
    28083158}
    28093159#define GpiQueryDefAttrs __FPU_CW_GpiQueryDefAttrs
    28103160
    2811 inline BOOL APIENTRY __FPU_CW_GpiQueryDefCharBox (HPS hps, PSIZEL psizlSize)
    2812 {
     3161extern inline BOOL APIENTRY __FPU_CW_GpiQueryDefCharBox (HPS hps, PSIZEL psizlSize)
     3162{
     3163    unsigned int cw = __FPU_CW_Get();
    28133164    BOOL ret = GpiQueryDefCharBox (hps, psizlSize);
    2814     __FPU_CW_Restore();
     3165    __FPU_CW_Set(cw);
    28153166    return ret;
    28163167}
    28173168#define GpiQueryDefCharBox __FPU_CW_GpiQueryDefCharBox
    28183169
    2819 inline BOOL APIENTRY __FPU_CW_GpiQueryDefTag (HPS hps, PLONG plTag)
    2820 {
     3170extern inline BOOL APIENTRY __FPU_CW_GpiQueryDefTag (HPS hps, PLONG plTag)
     3171{
     3172    unsigned int cw = __FPU_CW_Get();
    28213173    BOOL ret = GpiQueryDefTag (hps, plTag);
    2822     __FPU_CW_Restore();
     3174    __FPU_CW_Set(cw);
    28233175    return ret;
    28243176}
    28253177#define GpiQueryDefTag __FPU_CW_GpiQueryDefTag
    28263178
    2827 inline BOOL APIENTRY __FPU_CW_GpiQueryDefViewingLimits (HPS hps, PRECTL prclLimits)
    2828 {
     3179extern inline BOOL APIENTRY __FPU_CW_GpiQueryDefViewingLimits (HPS hps, PRECTL prclLimits)
     3180{
     3181    unsigned int cw = __FPU_CW_Get();
    28293182    BOOL ret = GpiQueryDefViewingLimits (hps, prclLimits);
    2830     __FPU_CW_Restore();
     3183    __FPU_CW_Set(cw);
    28313184    return ret;
    28323185}
    28333186#define GpiQueryDefViewingLimits __FPU_CW_GpiQueryDefViewingLimits
    28343187
    2835 inline BOOL APIENTRY __FPU_CW_GpiQueryDefaultViewMatrix (HPS hps, LONG lCount, PMATRIXLF pmatlfArray)
    2836 {
     3188extern inline BOOL APIENTRY __FPU_CW_GpiQueryDefaultViewMatrix (HPS hps, LONG lCount, PMATRIXLF pmatlfArray)
     3189{
     3190    unsigned int cw = __FPU_CW_Get();
    28373191    BOOL ret = GpiQueryDefaultViewMatrix (hps, lCount, pmatlfArray);
    2838     __FPU_CW_Restore();
     3192    __FPU_CW_Set(cw);
    28393193    return ret;
    28403194}
    28413195#define GpiQueryDefaultViewMatrix __FPU_CW_GpiQueryDefaultViewMatrix
    28423196
    2843 inline LONG APIENTRY __FPU_CW_GpiQueryEditMode (HPS hps)
    2844 {
     3197extern inline LONG APIENTRY __FPU_CW_GpiQueryEditMode (HPS hps)
     3198{
     3199    unsigned int cw = __FPU_CW_Get();
    28453200    LONG ret = GpiQueryEditMode (hps);
    2846     __FPU_CW_Restore();
     3201    __FPU_CW_Set(cw);
    28473202    return ret;
    28483203}
    28493204#define GpiQueryEditMode __FPU_CW_GpiQueryEditMode
    28503205
    2851 inline LONG APIENTRY __FPU_CW_GpiQueryElement (HPS hps, LONG lOff, LONG lMaxLength, PBYTE pbData)
    2852 {
     3206extern inline LONG APIENTRY __FPU_CW_GpiQueryElement (HPS hps, LONG lOff, LONG lMaxLength, PBYTE pbData)
     3207{
     3208    unsigned int cw = __FPU_CW_Get();
    28533209    LONG ret = GpiQueryElement (hps, lOff, lMaxLength, pbData);
    2854     __FPU_CW_Restore();
     3210    __FPU_CW_Set(cw);
    28553211    return ret;
    28563212}
    28573213#define GpiQueryElement __FPU_CW_GpiQueryElement
    28583214
    2859 inline LONG APIENTRY __FPU_CW_GpiQueryElementPointer (HPS hps)
    2860 {
     3215extern inline LONG APIENTRY __FPU_CW_GpiQueryElementPointer (HPS hps)
     3216{
     3217    unsigned int cw = __FPU_CW_Get();
    28613218    LONG ret = GpiQueryElementPointer (hps);
    2862     __FPU_CW_Restore();
     3219    __FPU_CW_Set(cw);
    28633220    return ret;
    28643221}
    28653222#define GpiQueryElementPointer __FPU_CW_GpiQueryElementPointer
    28663223
    2867 inline LONG APIENTRY __FPU_CW_GpiQueryElementType (HPS hps, PLONG plType, LONG lLength, PSZ pszData)
    2868 {
     3224extern inline LONG APIENTRY __FPU_CW_GpiQueryElementType (HPS hps, PLONG plType, LONG lLength, PSZ pszData)
     3225{
     3226    unsigned int cw = __FPU_CW_Get();
    28693227    LONG ret = GpiQueryElementType (hps, plType, lLength, pszData);
    2870     __FPU_CW_Restore();
     3228    __FPU_CW_Set(cw);
    28713229    return ret;
    28723230}
    28733231#define GpiQueryElementType __FPU_CW_GpiQueryElementType
    28743232
    2875 inline ULONG APIENTRY __FPU_CW_GpiQueryFaceString (HPS PS, PCSZ FamilyName, PFACENAMEDESC attrs,    LONG length, PSZ CompoundFaceName)
    2876 {
     3233extern inline ULONG APIENTRY __FPU_CW_GpiQueryFaceString (HPS PS, PCSZ FamilyName, PFACENAMEDESC attrs,    LONG length, PSZ CompoundFaceName)
     3234{
     3235    unsigned int cw = __FPU_CW_Get();
    28773236    ULONG ret = GpiQueryFaceString (PS, FamilyName, attrs,    length, CompoundFaceName);
    2878     __FPU_CW_Restore();
     3237    __FPU_CW_Set(cw);
    28793238    return ret;
    28803239}
    28813240#define GpiQueryFaceString __FPU_CW_GpiQueryFaceString
    28823241
    2883 inline ULONG APIENTRY __FPU_CW_GpiQueryFontAction (HAB anchor, ULONG options)
    2884 {
     3242extern inline ULONG APIENTRY __FPU_CW_GpiQueryFontAction (HAB anchor, ULONG options)
     3243{
     3244    unsigned int cw = __FPU_CW_Get();
    28853245    ULONG ret = GpiQueryFontAction (anchor, options);
    2886     __FPU_CW_Restore();
     3246    __FPU_CW_Set(cw);
    28873247    return ret;
    28883248}
    28893249#define GpiQueryFontAction __FPU_CW_GpiQueryFontAction
    28903250
    2891 inline LONG APIENTRY __FPU_CW_GpiQueryFontFileDescriptions (HAB hab, PCSZ pszFilename, PLONG plCount,    PFFDESCS affdescsNames)
    2892 {
     3251extern inline LONG APIENTRY __FPU_CW_GpiQueryFontFileDescriptions (HAB hab, PCSZ pszFilename, PLONG plCount,    PFFDESCS affdescsNames)
     3252{
     3253    unsigned int cw = __FPU_CW_Get();
    28933254    LONG ret = GpiQueryFontFileDescriptions (hab, pszFilename, plCount,    affdescsNames);
    2894     __FPU_CW_Restore();
     3255    __FPU_CW_Set(cw);
    28953256    return ret;
    28963257}
    28973258#define GpiQueryFontFileDescriptions __FPU_CW_GpiQueryFontFileDescriptions
    28983259
    2899 inline BOOL APIENTRY __FPU_CW_GpiQueryFontMetrics (HPS hps, LONG lMetricsLength,    PFONTMETRICS pfmMetrics)
    2900 {
     3260extern inline BOOL APIENTRY __FPU_CW_GpiQueryFontMetrics (HPS hps, LONG lMetricsLength,    PFONTMETRICS pfmMetrics)
     3261{
     3262    unsigned int cw = __FPU_CW_Get();
    29013263    BOOL ret = GpiQueryFontMetrics (hps, lMetricsLength,    pfmMetrics);
    2902     __FPU_CW_Restore();
     3264    __FPU_CW_Set(cw);
    29033265    return ret;
    29043266}
    29053267#define GpiQueryFontMetrics __FPU_CW_GpiQueryFontMetrics
    29063268
    2907 inline LONG APIENTRY __FPU_CW_GpiQueryFonts (HPS hps, ULONG flOptions, PCSZ pszFacename,    PLONG plReqFonts, LONG lMetricsLength, PFONTMETRICS afmMetrics)
    2908 {
     3269extern inline LONG APIENTRY __FPU_CW_GpiQueryFonts (HPS hps, ULONG flOptions, PCSZ pszFacename,    PLONG plReqFonts, LONG lMetricsLength, PFONTMETRICS afmMetrics)
     3270{
     3271    unsigned int cw = __FPU_CW_Get();
    29093272    LONG ret = GpiQueryFonts (hps, flOptions, pszFacename,    plReqFonts, lMetricsLength, afmMetrics);
    2910     __FPU_CW_Restore();
     3273    __FPU_CW_Set(cw);
    29113274    return ret;
    29123275}
    29133276#define GpiQueryFonts __FPU_CW_GpiQueryFonts
    29143277
    2915 inline LONG APIENTRY __FPU_CW_GpiQueryFullFontFileDescs (HAB hab, PCSZ pszFilename, PLONG plCount,    PVOID pNames, PLONG plNamesBuffLength)
    2916 {
     3278extern inline LONG APIENTRY __FPU_CW_GpiQueryFullFontFileDescs (HAB hab, PCSZ pszFilename, PLONG plCount,    PVOID pNames, PLONG plNamesBuffLength)
     3279{
     3280    unsigned int cw = __FPU_CW_Get();
    29173281    LONG ret = GpiQueryFullFontFileDescs (hab, pszFilename, plCount,    pNames, plNamesBuffLength);
    2918     __FPU_CW_Restore();
     3282    __FPU_CW_Set(cw);
    29193283    return ret;
    29203284}
    29213285#define GpiQueryFullFontFileDescs __FPU_CW_GpiQueryFullFontFileDescs
    29223286
    2923 inline BOOL APIENTRY __FPU_CW_GpiQueryGraphicsField (HPS hps, PRECTL prclField)
    2924 {
     3287extern inline BOOL APIENTRY __FPU_CW_GpiQueryGraphicsField (HPS hps, PRECTL prclField)
     3288{
     3289    unsigned int cw = __FPU_CW_Get();
    29253290    BOOL ret = GpiQueryGraphicsField (hps, prclField);
    2926     __FPU_CW_Restore();
     3291    __FPU_CW_Set(cw);
    29273292    return ret;
    29283293}
    29293294#define GpiQueryGraphicsField __FPU_CW_GpiQueryGraphicsField
    29303295
    2931 inline LONG APIENTRY __FPU_CW_GpiQueryKerningPairs (HPS hps, LONG lCount, PKERNINGPAIRS akrnprData)
    2932 {
     3296extern inline LONG APIENTRY __FPU_CW_GpiQueryKerningPairs (HPS hps, LONG lCount, PKERNINGPAIRS akrnprData)
     3297{
     3298    unsigned int cw = __FPU_CW_Get();
    29333299    LONG ret = GpiQueryKerningPairs (hps, lCount, akrnprData);
    2934     __FPU_CW_Restore();
     3300    __FPU_CW_Set(cw);
    29353301    return ret;
    29363302}
    29373303#define GpiQueryKerningPairs __FPU_CW_GpiQueryKerningPairs
    29383304
    2939 inline LONG APIENTRY __FPU_CW_GpiQueryLineEnd (HPS hps)
    2940 {
     3305extern inline LONG APIENTRY __FPU_CW_GpiQueryLineEnd (HPS hps)
     3306{
     3307    unsigned int cw = __FPU_CW_Get();
    29413308    LONG ret = GpiQueryLineEnd (hps);
    2942     __FPU_CW_Restore();
     3309    __FPU_CW_Set(cw);
    29433310    return ret;
    29443311}
    29453312#define GpiQueryLineEnd __FPU_CW_GpiQueryLineEnd
    29463313
    2947 inline LONG APIENTRY __FPU_CW_GpiQueryLineJoin (HPS hps)
    2948 {
     3314extern inline LONG APIENTRY __FPU_CW_GpiQueryLineJoin (HPS hps)
     3315{
     3316    unsigned int cw = __FPU_CW_Get();
    29493317    LONG ret = GpiQueryLineJoin (hps);
    2950     __FPU_CW_Restore();
     3318    __FPU_CW_Set(cw);
    29513319    return ret;
    29523320}
    29533321#define GpiQueryLineJoin __FPU_CW_GpiQueryLineJoin
    29543322
    2955 inline LONG APIENTRY __FPU_CW_GpiQueryLineType (HPS hps)
    2956 {
     3323extern inline LONG APIENTRY __FPU_CW_GpiQueryLineType (HPS hps)
     3324{
     3325    unsigned int cw = __FPU_CW_Get();
    29573326    LONG ret = GpiQueryLineType (hps);
    2958     __FPU_CW_Restore();
     3327    __FPU_CW_Set(cw);
    29593328    return ret;
    29603329}
    29613330#define GpiQueryLineType __FPU_CW_GpiQueryLineType
    29623331
    2963 inline FIXED APIENTRY __FPU_CW_GpiQueryLineWidth (HPS hps)
    2964 {
     3332extern inline FIXED APIENTRY __FPU_CW_GpiQueryLineWidth (HPS hps)
     3333{
     3334    unsigned int cw = __FPU_CW_Get();
    29653335    FIXED ret = GpiQueryLineWidth (hps);
    2966     __FPU_CW_Restore();
     3336    __FPU_CW_Set(cw);
    29673337    return ret;
    29683338}
    29693339#define GpiQueryLineWidth __FPU_CW_GpiQueryLineWidth
    29703340
    2971 inline LONG APIENTRY __FPU_CW_GpiQueryLineWidthGeom (HPS hps)
    2972 {
     3341extern inline LONG APIENTRY __FPU_CW_GpiQueryLineWidthGeom (HPS hps)
     3342{
     3343    unsigned int cw = __FPU_CW_Get();
    29733344    LONG ret = GpiQueryLineWidthGeom (hps);
    2974     __FPU_CW_Restore();
     3345    __FPU_CW_Set(cw);
    29753346    return ret;
    29763347}
    29773348#define GpiQueryLineWidthGeom __FPU_CW_GpiQueryLineWidthGeom
    29783349
    2979 inline LONG APIENTRY __FPU_CW_GpiQueryLogColorTable (HPS hps, ULONG flOptions, LONG lStart, LONG lCount,    PLONG alArray)
    2980 {
     3350extern inline LONG APIENTRY __FPU_CW_GpiQueryLogColorTable (HPS hps, ULONG flOptions, LONG lStart, LONG lCount,    PLONG alArray)
     3351{
     3352    unsigned int cw = __FPU_CW_Get();
    29813353    LONG ret = GpiQueryLogColorTable (hps, flOptions, lStart, lCount,    alArray);
    2982     __FPU_CW_Restore();
     3354    __FPU_CW_Set(cw);
    29833355    return ret;
    29843356}
    29853357#define GpiQueryLogColorTable __FPU_CW_GpiQueryLogColorTable
    29863358
    2987 inline BOOL APIENTRY __FPU_CW_GpiQueryLogicalFont (HPS PS, LONG lcid, PSTR8 name, PFATTRS attrs,    LONG length)
    2988 {
     3359extern inline BOOL APIENTRY __FPU_CW_GpiQueryLogicalFont (HPS PS, LONG lcid, PSTR8 name, PFATTRS attrs,    LONG length)
     3360{
     3361    unsigned int cw = __FPU_CW_Get();
    29893362    BOOL ret = GpiQueryLogicalFont (PS, lcid, name, attrs,    length);
    2990     __FPU_CW_Restore();
     3363    __FPU_CW_Set(cw);
    29913364    return ret;
    29923365}
    29933366#define GpiQueryLogicalFont __FPU_CW_GpiQueryLogicalFont
    29943367
    2995 inline LONG APIENTRY __FPU_CW_GpiQueryMarker (HPS hps)
    2996 {
     3368extern inline LONG APIENTRY __FPU_CW_GpiQueryMarker (HPS hps)
     3369{
     3370    unsigned int cw = __FPU_CW_Get();
    29973371    LONG ret = GpiQueryMarker (hps);
    2998     __FPU_CW_Restore();
     3372    __FPU_CW_Set(cw);
    29993373    return ret;
    30003374}
    30013375#define GpiQueryMarker __FPU_CW_GpiQueryMarker
    30023376
    3003 inline BOOL APIENTRY __FPU_CW_GpiQueryMarkerBox (HPS hps, PSIZEF psizfxSize)
    3004 {
     3377extern inline BOOL APIENTRY __FPU_CW_GpiQueryMarkerBox (HPS hps, PSIZEF psizfxSize)
     3378{
     3379    unsigned int cw = __FPU_CW_Get();
    30053380    BOOL ret = GpiQueryMarkerBox (hps, psizfxSize);
    3006     __FPU_CW_Restore();
     3381    __FPU_CW_Set(cw);
    30073382    return ret;
    30083383}
    30093384#define GpiQueryMarkerBox __FPU_CW_GpiQueryMarkerBox
    30103385
    3011 inline LONG APIENTRY __FPU_CW_GpiQueryMarkerSet (HPS hps)
    3012 {
     3386extern inline LONG APIENTRY __FPU_CW_GpiQueryMarkerSet (HPS hps)
     3387{
     3388    unsigned int cw = __FPU_CW_Get();
    30133389    LONG ret = GpiQueryMarkerSet (hps);
    3014     __FPU_CW_Restore();
     3390    __FPU_CW_Set(cw);
    30153391    return ret;
    30163392}
    30173393#define GpiQueryMarkerSet __FPU_CW_GpiQueryMarkerSet
    30183394
    3019 inline BOOL APIENTRY __FPU_CW_GpiQueryMetaFileBits (HMF hmf, LONG lOffset, LONG lLength, PBYTE pbData)
    3020 {
     3395extern inline BOOL APIENTRY __FPU_CW_GpiQueryMetaFileBits (HMF hmf, LONG lOffset, LONG lLength, PBYTE pbData)
     3396{
     3397    unsigned int cw = __FPU_CW_Get();
    30213398    BOOL ret = GpiQueryMetaFileBits (hmf, lOffset, lLength, pbData);
    3022     __FPU_CW_Restore();
     3399    __FPU_CW_Set(cw);
    30233400    return ret;
    30243401}
    30253402#define GpiQueryMetaFileBits __FPU_CW_GpiQueryMetaFileBits
    30263403
    3027 inline LONG APIENTRY __FPU_CW_GpiQueryMetaFileLength (HMF hmf)
    3028 {
     3404extern inline LONG APIENTRY __FPU_CW_GpiQueryMetaFileLength (HMF hmf)
     3405{
     3406    unsigned int cw = __FPU_CW_Get();
    30293407    LONG ret = GpiQueryMetaFileLength (hmf);
    3030     __FPU_CW_Restore();
     3408    __FPU_CW_Set(cw);
    30313409    return ret;
    30323410}
    30333411#define GpiQueryMetaFileLength __FPU_CW_GpiQueryMetaFileLength
    30343412
    3035 inline LONG APIENTRY __FPU_CW_GpiQueryMix (HPS hps)
    3036 {
     3413extern inline LONG APIENTRY __FPU_CW_GpiQueryMix (HPS hps)
     3414{
     3415    unsigned int cw = __FPU_CW_Get();
    30373416    LONG ret = GpiQueryMix (hps);
    3038     __FPU_CW_Restore();
     3417    __FPU_CW_Set(cw);
    30393418    return ret;
    30403419}
    30413420#define GpiQueryMix __FPU_CW_GpiQueryMix
    30423421
    3043 inline BOOL APIENTRY __FPU_CW_GpiQueryModelTransformMatrix (HPS hps, LONG lCount,    PMATRIXLF pmatlfArray)
    3044 {
     3422extern inline BOOL APIENTRY __FPU_CW_GpiQueryModelTransformMatrix (HPS hps, LONG lCount,    PMATRIXLF pmatlfArray)
     3423{
     3424    unsigned int cw = __FPU_CW_Get();
    30453425    BOOL ret = GpiQueryModelTransformMatrix (hps, lCount,    pmatlfArray);
    3046     __FPU_CW_Restore();
     3426    __FPU_CW_Set(cw);
    30473427    return ret;
    30483428}
    30493429#define GpiQueryModelTransformMatrix __FPU_CW_GpiQueryModelTransformMatrix
    30503430
    3051 inline LONG APIENTRY __FPU_CW_GpiQueryNearestColor (HPS hps, ULONG flOptions, LONG lRgbIn)
    3052 {
     3431extern inline LONG APIENTRY __FPU_CW_GpiQueryNearestColor (HPS hps, ULONG flOptions, LONG lRgbIn)
     3432{
     3433    unsigned int cw = __FPU_CW_Get();
    30533434    LONG ret = GpiQueryNearestColor (hps, flOptions, lRgbIn);
    3054     __FPU_CW_Restore();
     3435    __FPU_CW_Set(cw);
    30553436    return ret;
    30563437}
    30573438#define GpiQueryNearestColor __FPU_CW_GpiQueryNearestColor
    30583439
    3059 inline LONG APIENTRY __FPU_CW_GpiQueryNumberSetIds (HPS hps)
    3060 {
     3440extern inline LONG APIENTRY __FPU_CW_GpiQueryNumberSetIds (HPS hps)
     3441{
     3442    unsigned int cw = __FPU_CW_Get();
    30613443    LONG ret = GpiQueryNumberSetIds (hps);
    3062     __FPU_CW_Restore();
     3444    __FPU_CW_Set(cw);
    30633445    return ret;
    30643446}
    30653447#define GpiQueryNumberSetIds __FPU_CW_GpiQueryNumberSetIds
    30663448
    3067 inline BOOL APIENTRY __FPU_CW_GpiQueryPageViewport (HPS hps, PRECTL prclViewport)
    3068 {
     3449extern inline BOOL APIENTRY __FPU_CW_GpiQueryPageViewport (HPS hps, PRECTL prclViewport)
     3450{
     3451    unsigned int cw = __FPU_CW_Get();
    30693452    BOOL ret = GpiQueryPageViewport (hps, prclViewport);
    3070     __FPU_CW_Restore();
     3453    __FPU_CW_Set(cw);
    30713454    return ret;
    30723455}
    30733456#define GpiQueryPageViewport __FPU_CW_GpiQueryPageViewport
    30743457
    3075 inline HPAL APIENTRY __FPU_CW_GpiQueryPalette (HPS hps)
    3076 {
     3458extern inline HPAL APIENTRY __FPU_CW_GpiQueryPalette (HPS hps)
     3459{
     3460    unsigned int cw = __FPU_CW_Get();
    30773461    HPAL ret = GpiQueryPalette (hps);
    3078     __FPU_CW_Restore();
     3462    __FPU_CW_Set(cw);
    30793463    return ret;
    30803464}
    30813465#define GpiQueryPalette __FPU_CW_GpiQueryPalette
    30823466
    3083 inline LONG APIENTRY __FPU_CW_GpiQueryPaletteInfo (HPAL hpal, HPS  hps, ULONG flOptions,    ULONG ulStart, ULONG ulCount, PULONG aulArray)
    3084 {
     3467extern inline LONG APIENTRY __FPU_CW_GpiQueryPaletteInfo (HPAL hpal, HPS  hps, ULONG flOptions,    ULONG ulStart, ULONG ulCount, PULONG aulArray)
     3468{
     3469    unsigned int cw = __FPU_CW_Get();
    30853470    LONG ret = GpiQueryPaletteInfo (hpal, hps, flOptions,    ulStart, ulCount, aulArray);
    3086     __FPU_CW_Restore();
     3471    __FPU_CW_Set(cw);
    30873472    return ret;
    30883473}
    30893474#define GpiQueryPaletteInfo __FPU_CW_GpiQueryPaletteInfo
    30903475
    3091 inline LONG APIENTRY __FPU_CW_GpiQueryPattern (HPS hps)
    3092 {
     3476extern inline LONG APIENTRY __FPU_CW_GpiQueryPattern (HPS hps)
     3477{
     3478    unsigned int cw = __FPU_CW_Get();
    30933479    LONG ret = GpiQueryPattern (hps);
    3094     __FPU_CW_Restore();
     3480    __FPU_CW_Set(cw);
    30953481    return ret;
    30963482}
    30973483#define GpiQueryPattern __FPU_CW_GpiQueryPattern
    30983484
    3099 inline BOOL APIENTRY __FPU_CW_GpiQueryPatternRefPoint (HPS hps, PPOINTL pptlRefPoint)
    3100 {
     3485extern inline BOOL APIENTRY __FPU_CW_GpiQueryPatternRefPoint (HPS hps, PPOINTL pptlRefPoint)
     3486{
     3487    unsigned int cw = __FPU_CW_Get();
    31013488    BOOL ret = GpiQueryPatternRefPoint (hps, pptlRefPoint);
    3102     __FPU_CW_Restore();
     3489    __FPU_CW_Set(cw);
    31033490    return ret;
    31043491}
    31053492#define GpiQueryPatternRefPoint __FPU_CW_GpiQueryPatternRefPoint
    31063493
    3107 inline LONG APIENTRY __FPU_CW_GpiQueryPatternSet (HPS hps)
    3108 {
     3494extern inline LONG APIENTRY __FPU_CW_GpiQueryPatternSet (HPS hps)
     3495{
     3496    unsigned int cw = __FPU_CW_Get();
    31093497    LONG ret = GpiQueryPatternSet (hps);
    3110     __FPU_CW_Restore();
     3498    __FPU_CW_Set(cw);
    31113499    return ret;
    31123500}
    31133501#define GpiQueryPatternSet __FPU_CW_GpiQueryPatternSet
    31143502
    3115 inline LONG APIENTRY __FPU_CW_GpiQueryRealColors (HPS hps, ULONG flOptions, LONG lStart, LONG lCount,    PLONG alColors)
    3116 {
     3503extern inline LONG APIENTRY __FPU_CW_GpiQueryRealColors (HPS hps, ULONG flOptions, LONG lStart, LONG lCount,    PLONG alColors)
     3504{
     3505    unsigned int cw = __FPU_CW_Get();
    31173506    LONG ret = GpiQueryRealColors (hps, flOptions, lStart, lCount,    alColors);
    3118     __FPU_CW_Restore();
     3507    __FPU_CW_Set(cw);
    31193508    return ret;
    31203509}
    31213510#define GpiQueryRealColors __FPU_CW_GpiQueryRealColors
    31223511
    3123 inline LONG APIENTRY __FPU_CW_GpiQueryRegionBox (HPS hps, HRGN hrgn, PRECTL prclBound)
    3124 {
     3512extern inline LONG APIENTRY __FPU_CW_GpiQueryRegionBox (HPS hps, HRGN hrgn, PRECTL prclBound)
     3513{
     3514    unsigned int cw = __FPU_CW_Get();
    31253515    LONG ret = GpiQueryRegionBox (hps, hrgn, prclBound);
    3126     __FPU_CW_Restore();
     3516    __FPU_CW_Set(cw);
    31273517    return ret;
    31283518}
    31293519#define GpiQueryRegionBox __FPU_CW_GpiQueryRegionBox
    31303520
    3131 inline BOOL APIENTRY __FPU_CW_GpiQueryRegionRects (HPS hps, HRGN hrgn, PRECTL prclBound,    PRGNRECT prgnrcControl, PRECTL prclRect)
    3132 {
     3521extern inline BOOL APIENTRY __FPU_CW_GpiQueryRegionRects (HPS hps, HRGN hrgn, PRECTL prclBound,    PRGNRECT prgnrcControl, PRECTL prclRect)
     3522{
     3523    unsigned int cw = __FPU_CW_Get();
    31333524    BOOL ret = GpiQueryRegionRects (hps, hrgn, prclBound,    prgnrcControl, prclRect);
    3134     __FPU_CW_Restore();
     3525    __FPU_CW_Set(cw);
    31353526    return ret;
    31363527}
    31373528#define GpiQueryRegionRects __FPU_CW_GpiQueryRegionRects
    31383529
    3139 inline LONG APIENTRY __FPU_CW_GpiQueryRGBColor (HPS hps, ULONG flOptions, LONG lColorIndex)
    3140 {
     3530extern inline LONG APIENTRY __FPU_CW_GpiQueryRGBColor (HPS hps, ULONG flOptions, LONG lColorIndex)
     3531{
     3532    unsigned int cw = __FPU_CW_Get();
    31413533    LONG ret = GpiQueryRGBColor (hps, flOptions, lColorIndex);
    3142     __FPU_CW_Restore();
     3534    __FPU_CW_Set(cw);
    31433535    return ret;
    31443536}
    31453537#define GpiQueryRGBColor __FPU_CW_GpiQueryRGBColor
    31463538
    3147 inline BOOL APIENTRY __FPU_CW_GpiQuerySegmentTransformMatrix (HPS hps, LONG lSegid, LONG lCount,    PMATRIXLF pmatlfArray)
    3148 {
     3539extern inline BOOL APIENTRY __FPU_CW_GpiQuerySegmentTransformMatrix (HPS hps, LONG lSegid, LONG lCount,    PMATRIXLF pmatlfArray)
     3540{
     3541    unsigned int cw = __FPU_CW_Get();
    31493542    BOOL ret = GpiQuerySegmentTransformMatrix (hps, lSegid, lCount,    pmatlfArray);
    3150     __FPU_CW_Restore();
     3543    __FPU_CW_Set(cw);
    31513544    return ret;
    31523545}
    31533546#define GpiQuerySegmentTransformMatrix __FPU_CW_GpiQuerySegmentTransformMatrix
    31543547
    3155 inline BOOL APIENTRY __FPU_CW_GpiQuerySetIds (HPS hps, LONG lCount, PLONG alTypes, PSTR8 aNames,    PLONG allcids)
    3156 {
     3548extern inline BOOL APIENTRY __FPU_CW_GpiQuerySetIds (HPS hps, LONG lCount, PLONG alTypes, PSTR8 aNames,    PLONG allcids)
     3549{
     3550    unsigned int cw = __FPU_CW_Get();
    31573551    BOOL ret = GpiQuerySetIds (hps, lCount, alTypes, aNames,    allcids);
    3158     __FPU_CW_Restore();
     3552    __FPU_CW_Set(cw);
    31593553    return ret;
    31603554}
    31613555#define GpiQuerySetIds __FPU_CW_GpiQuerySetIds
    31623556
    3163 inline BOOL APIENTRY __FPU_CW_GpiQueryTextAlignment (HPS hps, PLONG plHoriz, PLONG plVert)
    3164 {
     3557extern inline BOOL APIENTRY __FPU_CW_GpiQueryTextAlignment (HPS hps, PLONG plHoriz, PLONG plVert)
     3558{
     3559    unsigned int cw = __FPU_CW_Get();
    31653560    BOOL ret = GpiQueryTextAlignment (hps, plHoriz, plVert);
    3166     __FPU_CW_Restore();
     3561    __FPU_CW_Set(cw);
    31673562    return ret;
    31683563}
    31693564#define GpiQueryTextAlignment __FPU_CW_GpiQueryTextAlignment
    31703565
    3171 inline BOOL APIENTRY __FPU_CW_GpiQueryTextBox (HPS hps, LONG lCount1, PCH pchString, LONG lCount2,    PPOINTL aptlPoints)
    3172 {
     3566extern inline BOOL APIENTRY __FPU_CW_GpiQueryTextBox (HPS hps, LONG lCount1, PCH pchString, LONG lCount2,    PPOINTL aptlPoints)
     3567{
     3568    unsigned int cw = __FPU_CW_Get();
    31733569    BOOL ret = GpiQueryTextBox (hps, lCount1, pchString, lCount2,    aptlPoints);
    3174     __FPU_CW_Restore();
     3570    __FPU_CW_Set(cw);
    31753571    return ret;
    31763572}
    31773573#define GpiQueryTextBox __FPU_CW_GpiQueryTextBox
    31783574
    3179 inline BOOL APIENTRY __FPU_CW_GpiQueryViewingLimits (HPS hps, PRECTL prclLimits)
    3180 {
     3575extern inline BOOL APIENTRY __FPU_CW_GpiQueryViewingLimits (HPS hps, PRECTL prclLimits)
     3576{
     3577    unsigned int cw = __FPU_CW_Get();
    31813578    BOOL ret = GpiQueryViewingLimits (hps, prclLimits);
    3182     __FPU_CW_Restore();
     3579    __FPU_CW_Set(cw);
    31833580    return ret;
    31843581}
    31853582#define GpiQueryViewingLimits __FPU_CW_GpiQueryViewingLimits
    31863583
    3187 inline BOOL APIENTRY __FPU_CW_GpiQueryViewingTransformMatrix (HPS hps, LONG lCount,    PMATRIXLF pmatlfArray)
    3188 {
     3584extern inline BOOL APIENTRY __FPU_CW_GpiQueryViewingTransformMatrix (HPS hps, LONG lCount,    PMATRIXLF pmatlfArray)
     3585{
     3586    unsigned int cw = __FPU_CW_Get();
    31893587    BOOL ret = GpiQueryViewingTransformMatrix (hps, lCount,    pmatlfArray);
    3190     __FPU_CW_Restore();
     3588    __FPU_CW_Set(cw);
    31913589    return ret;
    31923590}
    31933591#define GpiQueryViewingTransformMatrix __FPU_CW_GpiQueryViewingTransformMatrix
    31943592
    3195 inline BOOL APIENTRY __FPU_CW_GpiQueryWidthTable (HPS hps, LONG lFirstChar, LONG lCount, PLONG alData)
    3196 {
     3593extern inline BOOL APIENTRY __FPU_CW_GpiQueryWidthTable (HPS hps, LONG lFirstChar, LONG lCount, PLONG alData)
     3594{
     3595    unsigned int cw = __FPU_CW_Get();
    31973596    BOOL ret = GpiQueryWidthTable (hps, lFirstChar, lCount, alData);
    3198     __FPU_CW_Restore();
     3597    __FPU_CW_Set(cw);
    31993598    return ret;
    32003599}
    32013600#define GpiQueryWidthTable __FPU_CW_GpiQueryWidthTable
    32023601
    3203 inline LONG APIENTRY __FPU_CW_GpiRectInRegion (HPS hps, HRGN hrgn, __const__ RECTL *prclRect)
    3204 {
     3602extern inline LONG APIENTRY __FPU_CW_GpiRectInRegion (HPS hps, HRGN hrgn, __const__ RECTL *prclRect)
     3603{
     3604    unsigned int cw = __FPU_CW_Get();
    32053605    LONG ret = GpiRectInRegion (hps, hrgn, prclRect);
    3206     __FPU_CW_Restore();
     3606    __FPU_CW_Set(cw);
    32073607    return ret;
    32083608}
    32093609#define GpiRectInRegion __FPU_CW_GpiRectInRegion
    32103610
    3211 inline LONG APIENTRY __FPU_CW_GpiRectVisible (HPS hps, __const__ RECTL *prclRectangle)
    3212 {
     3611extern inline LONG APIENTRY __FPU_CW_GpiRectVisible (HPS hps, __const__ RECTL *prclRectangle)
     3612{
     3613    unsigned int cw = __FPU_CW_Get();
    32133614    LONG ret = GpiRectVisible (hps, prclRectangle);
    3214     __FPU_CW_Restore();
     3615    __FPU_CW_Set(cw);
    32153616    return ret;
    32163617}
    32173618#define GpiRectVisible __FPU_CW_GpiRectVisible
    32183619
    3219 inline BOOL APIENTRY __FPU_CW_GpiRotate (HPS hps, PMATRIXLF pmatlfArray, LONG lOptions, FIXED fxAngle,    __const__ POINTL *pptlCenter)
    3220 {
     3620extern inline BOOL APIENTRY __FPU_CW_GpiRotate (HPS hps, PMATRIXLF pmatlfArray, LONG lOptions, FIXED fxAngle,    __const__ POINTL *pptlCenter)
     3621{
     3622    unsigned int cw = __FPU_CW_Get();
    32213623    BOOL ret = GpiRotate (hps, pmatlfArray, lOptions, fxAngle,    pptlCenter);
    3222     __FPU_CW_Restore();
     3624    __FPU_CW_Set(cw);
    32233625    return ret;
    32243626}
    32253627#define GpiRotate __FPU_CW_GpiRotate
    32263628
    3227 inline BOOL APIENTRY __FPU_CW_GpiSaveMetaFile (HMF hmf, PCSZ pszFilename)
    3228 {
     3629extern inline BOOL APIENTRY __FPU_CW_GpiSaveMetaFile (HMF hmf, PCSZ pszFilename)
     3630{
     3631    unsigned int cw = __FPU_CW_Get();
    32293632    BOOL ret = GpiSaveMetaFile (hmf, pszFilename);
    3230     __FPU_CW_Restore();
     3633    __FPU_CW_Set(cw);
    32313634    return ret;
    32323635}
    32333636#define GpiSaveMetaFile __FPU_CW_GpiSaveMetaFile
    32343637
    3235 inline BOOL APIENTRY __FPU_CW_GpiScale (HPS hps, PMATRIXLF pmfatlfArray, LONG lOptions,    __const__ FIXED *afxScale, __const__ POINTL *pptlCenter)
    3236 {
     3638extern inline BOOL APIENTRY __FPU_CW_GpiScale (HPS hps, PMATRIXLF pmfatlfArray, LONG lOptions,    __const__ FIXED *afxScale, __const__ POINTL *pptlCenter)
     3639{
     3640    unsigned int cw = __FPU_CW_Get();
    32373641    BOOL ret = GpiScale (hps, pmfatlfArray, lOptions,    afxScale, pptlCenter);
    3238     __FPU_CW_Restore();
     3642    __FPU_CW_Set(cw);
    32393643    return ret;
    32403644}
    32413645#define GpiScale __FPU_CW_GpiScale
    32423646
    3243 inline HPAL APIENTRY __FPU_CW_GpiSelectPalette (HPS hps, HPAL hpal)
    3244 {
     3647extern inline HPAL APIENTRY __FPU_CW_GpiSelectPalette (HPS hps, HPAL hpal)
     3648{
     3649    unsigned int cw = __FPU_CW_Get();
    32453650    HPAL ret = GpiSelectPalette (hps, hpal);
    3246     __FPU_CW_Restore();
     3651    __FPU_CW_Set(cw);
    32473652    return ret;
    32483653}
    32493654#define GpiSelectPalette __FPU_CW_GpiSelectPalette
    32503655
    3251 inline BOOL APIENTRY __FPU_CW_GpiSetArcParams (HPS hps, __const__ ARCPARAMS *parcpArcParams)
    3252 {
     3656extern inline BOOL APIENTRY __FPU_CW_GpiSetArcParams (HPS hps, __const__ ARCPARAMS *parcpArcParams)
     3657{
     3658    unsigned int cw = __FPU_CW_Get();
    32533659    BOOL ret = GpiSetArcParams (hps, parcpArcParams);
    3254     __FPU_CW_Restore();
     3660    __FPU_CW_Set(cw);
    32553661    return ret;
    32563662}
    32573663#define GpiSetArcParams __FPU_CW_GpiSetArcParams
    32583664
    3259 inline BOOL APIENTRY __FPU_CW_GpiSetAttrMode (HPS hps, LONG lMode)
    3260 {
     3665extern inline BOOL APIENTRY __FPU_CW_GpiSetAttrMode (HPS hps, LONG lMode)
     3666{
     3667    unsigned int cw = __FPU_CW_Get();
    32613668    BOOL ret = GpiSetAttrMode (hps, lMode);
    3262     __FPU_CW_Restore();
     3669    __FPU_CW_Set(cw);
    32633670    return ret;
    32643671}
    32653672#define GpiSetAttrMode __FPU_CW_GpiSetAttrMode
    32663673
    3267 inline BOOL APIENTRY __FPU_CW_GpiSetAttrs (HPS hps, LONG lPrimType, ULONG flAttrMask, ULONG flDefMask,    __const__ VOID *ppbunAttrs)
    3268 {
     3674extern inline BOOL APIENTRY __FPU_CW_GpiSetAttrs (HPS hps, LONG lPrimType, ULONG flAttrMask, ULONG flDefMask,    __const__ VOID *ppbunAttrs)
     3675{
     3676    unsigned int cw = __FPU_CW_Get();
    32693677    BOOL ret = GpiSetAttrs (hps, lPrimType, flAttrMask, flDefMask,    ppbunAttrs);
    3270     __FPU_CW_Restore();
     3678    __FPU_CW_Set(cw);
    32713679    return ret;
    32723680}
    32733681#define GpiSetAttrs __FPU_CW_GpiSetAttrs
    32743682
    3275 inline BOOL APIENTRY __FPU_CW_GpiSetBackColor (HPS hps, LONG lColor)
    3276 {
     3683extern inline BOOL APIENTRY __FPU_CW_GpiSetBackColor (HPS hps, LONG lColor)
     3684{
     3685    unsigned int cw = __FPU_CW_Get();
    32773686    BOOL ret = GpiSetBackColor (hps, lColor);
    3278     __FPU_CW_Restore();
     3687    __FPU_CW_Set(cw);
    32793688    return ret;
    32803689}
    32813690#define GpiSetBackColor __FPU_CW_GpiSetBackColor
    32823691
    3283 inline BOOL APIENTRY __FPU_CW_GpiSetBackMix (HPS hps, LONG lMixMode)
    3284 {
     3692extern inline BOOL APIENTRY __FPU_CW_GpiSetBackMix (HPS hps, LONG lMixMode)
     3693{
     3694    unsigned int cw = __FPU_CW_Get();
    32853695    BOOL ret = GpiSetBackMix (hps, lMixMode);
    3286     __FPU_CW_Restore();
     3696    __FPU_CW_Set(cw);
    32873697    return ret;
    32883698}
    32893699#define GpiSetBackMix __FPU_CW_GpiSetBackMix
    32903700
    3291 inline BOOL APIENTRY __FPU_CW_GpiSetCharAngle (HPS hps, __const__ GRADIENTL *pgradlAngle)
    3292 {
     3701extern inline BOOL APIENTRY __FPU_CW_GpiSetCharAngle (HPS hps, __const__ GRADIENTL *pgradlAngle)
     3702{
     3703    unsigned int cw = __FPU_CW_Get();
    32933704    BOOL ret = GpiSetCharAngle (hps, pgradlAngle);
    3294     __FPU_CW_Restore();
     3705    __FPU_CW_Set(cw);
    32953706    return ret;
    32963707}
    32973708#define GpiSetCharAngle __FPU_CW_GpiSetCharAngle
    32983709
    3299 inline BOOL APIENTRY __FPU_CW_GpiSetCharBox (HPS hps, __const__ SIZEF *psizfxBox)
    3300 {
     3710extern inline BOOL APIENTRY __FPU_CW_GpiSetCharBox (HPS hps, __const__ SIZEF *psizfxBox)
     3711{
     3712    unsigned int cw = __FPU_CW_Get();
    33013713    BOOL ret = GpiSetCharBox (hps, psizfxBox);
    3302     __FPU_CW_Restore();
     3714    __FPU_CW_Set(cw);
    33033715    return ret;
    33043716}
    33053717#define GpiSetCharBox __FPU_CW_GpiSetCharBox
    33063718
    3307 inline BOOL APIENTRY __FPU_CW_GpiSetCharBreakExtra (HPS hps, FIXED BreakExtra)
    3308 {
     3719extern inline BOOL APIENTRY __FPU_CW_GpiSetCharBreakExtra (HPS hps, FIXED BreakExtra)
     3720{
     3721    unsigned int cw = __FPU_CW_Get();
    33093722    BOOL ret = GpiSetCharBreakExtra (hps, BreakExtra);
    3310     __FPU_CW_Restore();
     3723    __FPU_CW_Set(cw);
    33113724    return ret;
    33123725}
    33133726#define GpiSetCharBreakExtra __FPU_CW_GpiSetCharBreakExtra
    33143727
    3315 inline BOOL APIENTRY __FPU_CW_GpiSetCharDirection (HPS hps, LONG lDirection)
    3316 {
     3728extern inline BOOL APIENTRY __FPU_CW_GpiSetCharDirection (HPS hps, LONG lDirection)
     3729{
     3730    unsigned int cw = __FPU_CW_Get();
    33173731    BOOL ret = GpiSetCharDirection (hps, lDirection);
    3318     __FPU_CW_Restore();
     3732    __FPU_CW_Set(cw);
    33193733    return ret;
    33203734}
    33213735#define GpiSetCharDirection __FPU_CW_GpiSetCharDirection
    33223736
    3323 inline BOOL APIENTRY __FPU_CW_GpiSetCharExtra (HPS hps, FIXED  Extra)
    3324 {
     3737extern inline BOOL APIENTRY __FPU_CW_GpiSetCharExtra (HPS hps, FIXED  Extra)
     3738{
     3739    unsigned int cw = __FPU_CW_Get();
    33253740    BOOL ret = GpiSetCharExtra (hps, Extra);
    3326     __FPU_CW_Restore();
     3741    __FPU_CW_Set(cw);
    33273742    return ret;
    33283743}
    33293744#define GpiSetCharExtra __FPU_CW_GpiSetCharExtra
    33303745
    3331 inline BOOL APIENTRY __FPU_CW_GpiSetCharMode (HPS hps, LONG lMode)
    3332 {
     3746extern inline BOOL APIENTRY __FPU_CW_GpiSetCharMode (HPS hps, LONG lMode)
     3747{
     3748    unsigned int cw = __FPU_CW_Get();
    33333749    BOOL ret = GpiSetCharMode (hps, lMode);
    3334     __FPU_CW_Restore();
     3750    __FPU_CW_Set(cw);
    33353751    return ret;
    33363752}
    33373753#define GpiSetCharMode __FPU_CW_GpiSetCharMode
    33383754
    3339 inline BOOL APIENTRY __FPU_CW_GpiSetCharSet (HPS hps, LONG llcid)
    3340 {
     3755extern inline BOOL APIENTRY __FPU_CW_GpiSetCharSet (HPS hps, LONG llcid)
     3756{
     3757    unsigned int cw = __FPU_CW_Get();
    33413758    BOOL ret = GpiSetCharSet (hps, llcid);
    3342     __FPU_CW_Restore();
     3759    __FPU_CW_Set(cw);
    33433760    return ret;
    33443761}
    33453762#define GpiSetCharSet __FPU_CW_GpiSetCharSet
    33463763
    3347 inline BOOL APIENTRY __FPU_CW_GpiSetCharShear (HPS hps, __const__ POINTL *pptlAngle)
    3348 {
     3764extern inline BOOL APIENTRY __FPU_CW_GpiSetCharShear (HPS hps, __const__ POINTL *pptlAngle)
     3765{
     3766    unsigned int cw = __FPU_CW_Get();
    33493767    BOOL ret = GpiSetCharShear (hps, pptlAngle);
    3350     __FPU_CW_Restore();
     3768    __FPU_CW_Set(cw);
    33513769    return ret;
    33523770}
    33533771#define GpiSetCharShear __FPU_CW_GpiSetCharShear
    33543772
    3355 inline BOOL APIENTRY __FPU_CW_GpiSetClipPath (HPS hps, LONG lPath, LONG lOptions)
    3356 {
     3773extern inline BOOL APIENTRY __FPU_CW_GpiSetClipPath (HPS hps, LONG lPath, LONG lOptions)
     3774{
     3775    unsigned int cw = __FPU_CW_Get();
    33573776    BOOL ret = GpiSetClipPath (hps, lPath, lOptions);
    3358     __FPU_CW_Restore();
     3777    __FPU_CW_Set(cw);
    33593778    return ret;
    33603779}
    33613780#define GpiSetClipPath __FPU_CW_GpiSetClipPath
    33623781
    3363 inline LONG APIENTRY __FPU_CW_GpiSetClipRegion (HPS hps, HRGN hrgn, PHRGN phrgnOld)
    3364 {
     3782extern inline LONG APIENTRY __FPU_CW_GpiSetClipRegion (HPS hps, HRGN hrgn, PHRGN phrgnOld)
     3783{
     3784    unsigned int cw = __FPU_CW_Get();
    33653785    LONG ret = GpiSetClipRegion (hps, hrgn, phrgnOld);
    3366     __FPU_CW_Restore();
     3786    __FPU_CW_Set(cw);
    33673787    return ret;
    33683788}
    33693789#define GpiSetClipRegion __FPU_CW_GpiSetClipRegion
    33703790
    3371 inline BOOL APIENTRY __FPU_CW_GpiSetColor (HPS hps, LONG lColor)
    3372 {
     3791extern inline BOOL APIENTRY __FPU_CW_GpiSetColor (HPS hps, LONG lColor)
     3792{
     3793    unsigned int cw = __FPU_CW_Get();
    33733794    BOOL ret = GpiSetColor (hps, lColor);
    3374     __FPU_CW_Restore();
     3795    __FPU_CW_Set(cw);
    33753796    return ret;
    33763797}
    33773798#define GpiSetColor __FPU_CW_GpiSetColor
    33783799
    3379 inline BOOL APIENTRY __FPU_CW_GpiSetCp (HPS hps, ULONG ulCodePage)
    3380 {
     3800extern inline BOOL APIENTRY __FPU_CW_GpiSetCp (HPS hps, ULONG ulCodePage)
     3801{
     3802    unsigned int cw = __FPU_CW_Get();
    33813803    BOOL ret = GpiSetCp (hps, ulCodePage);
    3382     __FPU_CW_Restore();
     3804    __FPU_CW_Set(cw);
    33833805    return ret;
    33843806}
    33853807#define GpiSetCp __FPU_CW_GpiSetCp
    33863808
    3387 inline BOOL APIENTRY __FPU_CW_GpiSetCurrentPosition (HPS hps, __const__ POINTL *pptlPoint)
    3388 {
     3809extern inline BOOL APIENTRY __FPU_CW_GpiSetCurrentPosition (HPS hps, __const__ POINTL *pptlPoint)
     3810{
     3811    unsigned int cw = __FPU_CW_Get();
    33893812    BOOL ret = GpiSetCurrentPosition (hps, pptlPoint);
    3390     __FPU_CW_Restore();
     3813    __FPU_CW_Set(cw);
    33913814    return ret;
    33923815}
    33933816#define GpiSetCurrentPosition __FPU_CW_GpiSetCurrentPosition
    33943817
    3395 inline BOOL APIENTRY __FPU_CW_GpiSetDefArcParams (HPS hps, __const__ ARCPARAMS *parcpArcParams)
    3396 {
     3818extern inline BOOL APIENTRY __FPU_CW_GpiSetDefArcParams (HPS hps, __const__ ARCPARAMS *parcpArcParams)
     3819{
     3820    unsigned int cw = __FPU_CW_Get();
    33973821    BOOL ret = GpiSetDefArcParams (hps, parcpArcParams);
    3398     __FPU_CW_Restore();
     3822    __FPU_CW_Set(cw);
    33993823    return ret;
    34003824}
    34013825#define GpiSetDefArcParams __FPU_CW_GpiSetDefArcParams
    34023826
    3403 inline BOOL APIENTRY __FPU_CW_GpiSetDefAttrs (HPS hps, LONG lPrimType, ULONG flAttrMask,    __const__ VOID *ppbunAttrs)
    3404 {
     3827extern inline BOOL APIENTRY __FPU_CW_GpiSetDefAttrs (HPS hps, LONG lPrimType, ULONG flAttrMask,    __const__ VOID *ppbunAttrs)
     3828{
     3829    unsigned int cw = __FPU_CW_Get();
    34053830    BOOL ret = GpiSetDefAttrs (hps, lPrimType, flAttrMask,    ppbunAttrs);
    3406     __FPU_CW_Restore();
     3831    __FPU_CW_Set(cw);
    34073832    return ret;
    34083833}
    34093834#define GpiSetDefAttrs __FPU_CW_GpiSetDefAttrs
    34103835
    3411 inline BOOL APIENTRY __FPU_CW_GpiSetDefaultViewMatrix (HPS hps, LONG lCount,    __const__ MATRIXLF *pmatlfarray, LONG lOptions)
    3412 {
     3836extern inline BOOL APIENTRY __FPU_CW_GpiSetDefaultViewMatrix (HPS hps, LONG lCount,    __const__ MATRIXLF *pmatlfarray, LONG lOptions)
     3837{
     3838    unsigned int cw = __FPU_CW_Get();
    34133839    BOOL ret = GpiSetDefaultViewMatrix (hps, lCount,    pmatlfarray, lOptions);
    3414     __FPU_CW_Restore();
     3840    __FPU_CW_Set(cw);
    34153841    return ret;
    34163842}
    34173843#define GpiSetDefaultViewMatrix __FPU_CW_GpiSetDefaultViewMatrix
    34183844
    3419 inline BOOL APIENTRY __FPU_CW_GpiSetDefTag (HPS hps, LONG lTag)
    3420 {
     3845extern inline BOOL APIENTRY __FPU_CW_GpiSetDefTag (HPS hps, LONG lTag)
     3846{
     3847    unsigned int cw = __FPU_CW_Get();
    34213848    BOOL ret = GpiSetDefTag (hps, lTag);
    3422     __FPU_CW_Restore();
     3849    __FPU_CW_Set(cw);
    34233850    return ret;
    34243851}
    34253852#define GpiSetDefTag __FPU_CW_GpiSetDefTag
    34263853
    3427 inline BOOL APIENTRY __FPU_CW_GpiSetDefViewingLimits (HPS hps, __const__ RECTL *prclLimits)
    3428 {
     3854extern inline BOOL APIENTRY __FPU_CW_GpiSetDefViewingLimits (HPS hps, __const__ RECTL *prclLimits)
     3855{
     3856    unsigned int cw = __FPU_CW_Get();
    34293857    BOOL ret = GpiSetDefViewingLimits (hps, prclLimits);
    3430     __FPU_CW_Restore();
     3858    __FPU_CW_Set(cw);
    34313859    return ret;
    34323860}
    34333861#define GpiSetDefViewingLimits __FPU_CW_GpiSetDefViewingLimits
    34343862
    3435 inline BOOL APIENTRY __FPU_CW_GpiSetEditMode (HPS hps, LONG lMode)
    3436 {
     3863extern inline BOOL APIENTRY __FPU_CW_GpiSetEditMode (HPS hps, LONG lMode)
     3864{
     3865    unsigned int cw = __FPU_CW_Get();
    34373866    BOOL ret = GpiSetEditMode (hps, lMode);
    3438     __FPU_CW_Restore();
     3867    __FPU_CW_Set(cw);
    34393868    return ret;
    34403869}
    34413870#define GpiSetEditMode __FPU_CW_GpiSetEditMode
    34423871
    3443 inline BOOL APIENTRY __FPU_CW_GpiSetElementPointer (HPS hps, LONG lElement)
    3444 {
     3872extern inline BOOL APIENTRY __FPU_CW_GpiSetElementPointer (HPS hps, LONG lElement)
     3873{
     3874    unsigned int cw = __FPU_CW_Get();
    34453875    BOOL ret = GpiSetElementPointer (hps, lElement);
    3446     __FPU_CW_Restore();
     3876    __FPU_CW_Set(cw);
    34473877    return ret;
    34483878}
    34493879#define GpiSetElementPointer __FPU_CW_GpiSetElementPointer
    34503880
    3451 inline BOOL APIENTRY __FPU_CW_GpiSetElementPointerAtLabel (HPS hps, LONG lLabel)
    3452 {
     3881extern inline BOOL APIENTRY __FPU_CW_GpiSetElementPointerAtLabel (HPS hps, LONG lLabel)
     3882{
     3883    unsigned int cw = __FPU_CW_Get();
    34533884    BOOL ret = GpiSetElementPointerAtLabel (hps, lLabel);
    3454     __FPU_CW_Restore();
     3885    __FPU_CW_Set(cw);
    34553886    return ret;
    34563887}
    34573888#define GpiSetElementPointerAtLabel __FPU_CW_GpiSetElementPointerAtLabel
    34583889
    3459 inline BOOL APIENTRY __FPU_CW_GpiSetGraphicsField (HPS hps, __const__ RECTL *prclField)
    3460 {
     3890extern inline BOOL APIENTRY __FPU_CW_GpiSetGraphicsField (HPS hps, __const__ RECTL *prclField)
     3891{
     3892    unsigned int cw = __FPU_CW_Get();
    34613893    BOOL ret = GpiSetGraphicsField (hps, prclField);
    3462     __FPU_CW_Restore();
     3894    __FPU_CW_Set(cw);
    34633895    return ret;
    34643896}
    34653897#define GpiSetGraphicsField __FPU_CW_GpiSetGraphicsField
    34663898
    3467 inline BOOL APIENTRY __FPU_CW_GpiSetLineEnd (HPS hps, LONG lLineEnd)
    3468 {
     3899extern inline BOOL APIENTRY __FPU_CW_GpiSetLineEnd (HPS hps, LONG lLineEnd)
     3900{
     3901    unsigned int cw = __FPU_CW_Get();
    34693902    BOOL ret = GpiSetLineEnd (hps, lLineEnd);
    3470     __FPU_CW_Restore();
     3903    __FPU_CW_Set(cw);
    34713904    return ret;
    34723905}
    34733906#define GpiSetLineEnd __FPU_CW_GpiSetLineEnd
    34743907
    3475 inline BOOL APIENTRY __FPU_CW_GpiSetLineJoin (HPS hps, LONG lLineJoin)
    3476 {
     3908extern inline BOOL APIENTRY __FPU_CW_GpiSetLineJoin (HPS hps, LONG lLineJoin)
     3909{
     3910    unsigned int cw = __FPU_CW_Get();
    34773911    BOOL ret = GpiSetLineJoin (hps, lLineJoin);
    3478     __FPU_CW_Restore();
     3912    __FPU_CW_Set(cw);
    34793913    return ret;
    34803914}
    34813915#define GpiSetLineJoin __FPU_CW_GpiSetLineJoin
    34823916
    3483 inline BOOL APIENTRY __FPU_CW_GpiSetLineType (HPS hps, LONG lLineType)
    3484 {
     3917extern inline BOOL APIENTRY __FPU_CW_GpiSetLineType (HPS hps, LONG lLineType)
     3918{
     3919    unsigned int cw = __FPU_CW_Get();
    34853920    BOOL ret = GpiSetLineType (hps, lLineType);
    3486     __FPU_CW_Restore();
     3921    __FPU_CW_Set(cw);
    34873922    return ret;
    34883923}
    34893924#define GpiSetLineType __FPU_CW_GpiSetLineType
    34903925
    3491 inline BOOL APIENTRY __FPU_CW_GpiSetLineWidth (HPS hps, FIXED fxLineWidth)
    3492 {
     3926extern inline BOOL APIENTRY __FPU_CW_GpiSetLineWidth (HPS hps, FIXED fxLineWidth)
     3927{
     3928    unsigned int cw = __FPU_CW_Get();
    34933929    BOOL ret = GpiSetLineWidth (hps, fxLineWidth);
    3494     __FPU_CW_Restore();
     3930    __FPU_CW_Set(cw);
    34953931    return ret;
    34963932}
    34973933#define GpiSetLineWidth __FPU_CW_GpiSetLineWidth
    34983934
    3499 inline BOOL APIENTRY __FPU_CW_GpiSetLineWidthGeom (HPS hps, LONG lLineWidth)
    3500 {
     3935extern inline BOOL APIENTRY __FPU_CW_GpiSetLineWidthGeom (HPS hps, LONG lLineWidth)
     3936{
     3937    unsigned int cw = __FPU_CW_Get();
    35013938    BOOL ret = GpiSetLineWidthGeom (hps, lLineWidth);
    3502     __FPU_CW_Restore();
     3939    __FPU_CW_Set(cw);
    35033940    return ret;
    35043941}
    35053942#define GpiSetLineWidthGeom __FPU_CW_GpiSetLineWidthGeom
    35063943
    3507 inline BOOL APIENTRY __FPU_CW_GpiSetMarker (HPS hps, LONG lSymbol)
    3508 {
     3944extern inline BOOL APIENTRY __FPU_CW_GpiSetMarker (HPS hps, LONG lSymbol)
     3945{
     3946    unsigned int cw = __FPU_CW_Get();
    35093947    BOOL ret = GpiSetMarker (hps, lSymbol);
    3510     __FPU_CW_Restore();
     3948    __FPU_CW_Set(cw);
    35113949    return ret;
    35123950}
    35133951#define GpiSetMarker __FPU_CW_GpiSetMarker
    35143952
    3515 inline BOOL APIENTRY __FPU_CW_GpiSetMarkerBox (HPS hps, __const__ SIZEF *psizfxSize)
    3516 {
     3953extern inline BOOL APIENTRY __FPU_CW_GpiSetMarkerBox (HPS hps, __const__ SIZEF *psizfxSize)
     3954{
     3955    unsigned int cw = __FPU_CW_Get();
    35173956    BOOL ret = GpiSetMarkerBox (hps, psizfxSize);
    3518     __FPU_CW_Restore();
     3957    __FPU_CW_Set(cw);
    35193958    return ret;
    35203959}
    35213960#define GpiSetMarkerBox __FPU_CW_GpiSetMarkerBox
    35223961
    3523 inline BOOL APIENTRY __FPU_CW_GpiSetMarkerSet (HPS hps, LONG lSet)
    3524 {
     3962extern inline BOOL APIENTRY __FPU_CW_GpiSetMarkerSet (HPS hps, LONG lSet)
     3963{
     3964    unsigned int cw = __FPU_CW_Get();
    35253965    BOOL ret = GpiSetMarkerSet (hps, lSet);
    3526     __FPU_CW_Restore();
     3966    __FPU_CW_Set(cw);
    35273967    return ret;
    35283968}
    35293969#define GpiSetMarkerSet __FPU_CW_GpiSetMarkerSet
    35303970
    3531 inline BOOL APIENTRY __FPU_CW_GpiSetMetaFileBits (HMF hmf, LONG lOffset, LONG lLength,    __const__ BYTE *pbBuffer)
    3532 {
     3971extern inline BOOL APIENTRY __FPU_CW_GpiSetMetaFileBits (HMF hmf, LONG lOffset, LONG lLength,    __const__ BYTE *pbBuffer)
     3972{
     3973    unsigned int cw = __FPU_CW_Get();
    35333974    BOOL ret = GpiSetMetaFileBits (hmf, lOffset, lLength,    pbBuffer);
    3534     __FPU_CW_Restore();
     3975    __FPU_CW_Set(cw);
    35353976    return ret;
    35363977}
    35373978#define GpiSetMetaFileBits __FPU_CW_GpiSetMetaFileBits
    35383979
    3539 inline BOOL APIENTRY __FPU_CW_GpiSetMix (HPS hps, LONG lMixMode)
    3540 {
     3980extern inline BOOL APIENTRY __FPU_CW_GpiSetMix (HPS hps, LONG lMixMode)
     3981{
     3982    unsigned int cw = __FPU_CW_Get();
    35413983    BOOL ret = GpiSetMix (hps, lMixMode);
    3542     __FPU_CW_Restore();
     3984    __FPU_CW_Set(cw);
    35433985    return ret;
    35443986}
    35453987#define GpiSetMix __FPU_CW_GpiSetMix
    35463988
    3547 inline BOOL APIENTRY __FPU_CW_GpiSetModelTransformMatrix (HPS hps, LONG lCount,    __const__ MATRIXLF *pmatlfArray, LONG lOptions)
    3548 {
     3989extern inline BOOL APIENTRY __FPU_CW_GpiSetModelTransformMatrix (HPS hps, LONG lCount,    __const__ MATRIXLF *pmatlfArray, LONG lOptions)
     3990{
     3991    unsigned int cw = __FPU_CW_Get();
    35493992    BOOL ret = GpiSetModelTransformMatrix (hps, lCount,    pmatlfArray, lOptions);
    3550     __FPU_CW_Restore();
     3993    __FPU_CW_Set(cw);
    35513994    return ret;
    35523995}
    35533996#define GpiSetModelTransformMatrix __FPU_CW_GpiSetModelTransformMatrix
    35543997
    3555 inline BOOL APIENTRY __FPU_CW_GpiSetPageViewport (HPS hps, __const__ RECTL *prclViewport)
    3556 {
     3998extern inline BOOL APIENTRY __FPU_CW_GpiSetPageViewport (HPS hps, __const__ RECTL *prclViewport)
     3999{
     4000    unsigned int cw = __FPU_CW_Get();
    35574001    BOOL ret = GpiSetPageViewport (hps, prclViewport);
    3558     __FPU_CW_Restore();
     4002    __FPU_CW_Set(cw);
    35594003    return ret;
    35604004}
    35614005#define GpiSetPageViewport __FPU_CW_GpiSetPageViewport
    35624006
    3563 inline BOOL APIENTRY __FPU_CW_GpiSetPaletteEntries (HPAL hpal, ULONG ulFormat, ULONG ulStart,    ULONG ulCount, __const__ ULONG *aulTable)
    3564 {
     4007extern inline BOOL APIENTRY __FPU_CW_GpiSetPaletteEntries (HPAL hpal, ULONG ulFormat, ULONG ulStart,    ULONG ulCount, __const__ ULONG *aulTable)
     4008{
     4009    unsigned int cw = __FPU_CW_Get();
    35654010    BOOL ret = GpiSetPaletteEntries (hpal, ulFormat, ulStart,    ulCount, aulTable);
    3566     __FPU_CW_Restore();
     4011    __FPU_CW_Set(cw);
    35674012    return ret;
    35684013}
    35694014#define GpiSetPaletteEntries __FPU_CW_GpiSetPaletteEntries
    35704015
    3571 inline BOOL APIENTRY __FPU_CW_GpiSetPattern (HPS hps, LONG lPatternSymbol)
    3572 {
     4016extern inline BOOL APIENTRY __FPU_CW_GpiSetPattern (HPS hps, LONG lPatternSymbol)
     4017{
     4018    unsigned int cw = __FPU_CW_Get();
    35734019    BOOL ret = GpiSetPattern (hps, lPatternSymbol);
    3574     __FPU_CW_Restore();
     4020    __FPU_CW_Set(cw);
    35754021    return ret;
    35764022}
    35774023#define GpiSetPattern __FPU_CW_GpiSetPattern
    35784024
    3579 inline BOOL APIENTRY __FPU_CW_GpiSetPatternRefPoint (HPS hps, __const__ POINTL *pptlRefPoint)
    3580 {
     4025extern inline BOOL APIENTRY __FPU_CW_GpiSetPatternRefPoint (HPS hps, __const__ POINTL *pptlRefPoint)
     4026{
     4027    unsigned int cw = __FPU_CW_Get();
    35814028    BOOL ret = GpiSetPatternRefPoint (hps, pptlRefPoint);
    3582     __FPU_CW_Restore();
     4029    __FPU_CW_Set(cw);
    35834030    return ret;
    35844031}
    35854032#define GpiSetPatternRefPoint __FPU_CW_GpiSetPatternRefPoint
    35864033
    3587 inline BOOL APIENTRY __FPU_CW_GpiSetPatternSet (HPS hps, LONG lSet)
    3588 {
     4034extern inline BOOL APIENTRY __FPU_CW_GpiSetPatternSet (HPS hps, LONG lSet)
     4035{
     4036    unsigned int cw = __FPU_CW_Get();
    35894037    BOOL ret = GpiSetPatternSet (hps, lSet);
    3590     __FPU_CW_Restore();
     4038    __FPU_CW_Set(cw);
    35914039    return ret;
    35924040}
    35934041#define GpiSetPatternSet __FPU_CW_GpiSetPatternSet
    35944042
    3595 inline BOOL APIENTRY __FPU_CW_GpiSetRegion (HPS hps, HRGN hrgn, LONG lcount,    __const__ RECTL *arclRectangles)
    3596 {
     4043extern inline BOOL APIENTRY __FPU_CW_GpiSetRegion (HPS hps, HRGN hrgn, LONG lcount,    __const__ RECTL *arclRectangles)
     4044{
     4045    unsigned int cw = __FPU_CW_Get();
    35974046    BOOL ret = GpiSetRegion (hps, hrgn, lcount,    arclRectangles);
    3598     __FPU_CW_Restore();
     4047    __FPU_CW_Set(cw);
    35994048    return ret;
    36004049}
    36014050#define GpiSetRegion __FPU_CW_GpiSetRegion
    36024051
    3603 inline BOOL APIENTRY __FPU_CW_GpiSetSegmentTransformMatrix (HPS hps, LONG lSegid, LONG lCount,    __const__ MATRIXLF *pmatlfarray, LONG lOptions)
    3604 {
     4052extern inline BOOL APIENTRY __FPU_CW_GpiSetSegmentTransformMatrix (HPS hps, LONG lSegid, LONG lCount,    __const__ MATRIXLF *pmatlfarray, LONG lOptions)
     4053{
     4054    unsigned int cw = __FPU_CW_Get();
    36054055    BOOL ret = GpiSetSegmentTransformMatrix (hps, lSegid, lCount,    pmatlfarray, lOptions);
    3606     __FPU_CW_Restore();
     4056    __FPU_CW_Set(cw);
    36074057    return ret;
    36084058}
    36094059#define GpiSetSegmentTransformMatrix __FPU_CW_GpiSetSegmentTransformMatrix
    36104060
    3611 inline BOOL APIENTRY __FPU_CW_GpiSetTextAlignment (HPS hps, LONG lHoriz, LONG lVert)
    3612 {
     4061extern inline BOOL APIENTRY __FPU_CW_GpiSetTextAlignment (HPS hps, LONG lHoriz, LONG lVert)
     4062{
     4063    unsigned int cw = __FPU_CW_Get();
    36134064    BOOL ret = GpiSetTextAlignment (hps, lHoriz, lVert);
    3614     __FPU_CW_Restore();
     4065    __FPU_CW_Set(cw);
    36154066    return ret;
    36164067}
    36174068#define GpiSetTextAlignment __FPU_CW_GpiSetTextAlignment
    36184069
    3619 inline BOOL APIENTRY __FPU_CW_GpiSetViewingLimits (HPS hps, __const__ RECTL *prclLimits)
    3620 {
     4070extern inline BOOL APIENTRY __FPU_CW_GpiSetViewingLimits (HPS hps, __const__ RECTL *prclLimits)
     4071{
     4072    unsigned int cw = __FPU_CW_Get();
    36214073    BOOL ret = GpiSetViewingLimits (hps, prclLimits);
    3622     __FPU_CW_Restore();
     4074    __FPU_CW_Set(cw);
    36234075    return ret;
    36244076}
    36254077#define GpiSetViewingLimits __FPU_CW_GpiSetViewingLimits
    36264078
    3627 inline BOOL APIENTRY __FPU_CW_GpiSetViewingTransformMatrix (HPS hps, LONG lCount,    __const__ MATRIXLF *pmatlfArray, LONG lOptions)
    3628 {
     4079extern inline BOOL APIENTRY __FPU_CW_GpiSetViewingTransformMatrix (HPS hps, LONG lCount,    __const__ MATRIXLF *pmatlfArray, LONG lOptions)
     4080{
     4081    unsigned int cw = __FPU_CW_Get();
    36294082    BOOL ret = GpiSetViewingTransformMatrix (hps, lCount,    pmatlfArray, lOptions);
    3630     __FPU_CW_Restore();
     4083    __FPU_CW_Set(cw);
    36314084    return ret;
    36324085}
    36334086#define GpiSetViewingTransformMatrix __FPU_CW_GpiSetViewingTransformMatrix
    36344087
    3635 inline LONG APIENTRY __FPU_CW_GpiStrokePath (HPS hps, LONG lPath, ULONG flOptions)
    3636 {
     4088extern inline LONG APIENTRY __FPU_CW_GpiStrokePath (HPS hps, LONG lPath, ULONG flOptions)
     4089{
     4090    unsigned int cw = __FPU_CW_Get();
    36374091    LONG ret = GpiStrokePath (hps, lPath, flOptions);
    3638     __FPU_CW_Restore();
     4092    __FPU_CW_Set(cw);
    36394093    return ret;
    36404094}
    36414095#define GpiStrokePath __FPU_CW_GpiStrokePath
    36424096
    3643 inline BOOL APIENTRY __FPU_CW_GpiTranslate (HPS hps, PMATRIXLF pmatlfArray, LONG lOptions,    __const__ POINTL *pptlTranslation)
    3644 {
     4097extern inline BOOL APIENTRY __FPU_CW_GpiTranslate (HPS hps, PMATRIXLF pmatlfArray, LONG lOptions,    __const__ POINTL *pptlTranslation)
     4098{
     4099    unsigned int cw = __FPU_CW_Get();
    36454100    BOOL ret = GpiTranslate (hps, pmatlfArray, lOptions,    pptlTranslation);
    3646     __FPU_CW_Restore();
     4101    __FPU_CW_Set(cw);
    36474102    return ret;
    36484103}
    36494104#define GpiTranslate __FPU_CW_GpiTranslate
    36504105
    3651 inline BOOL APIENTRY __FPU_CW_GpiUnloadFonts (HAB hab, PCSZ pszFilename)
    3652 {
     4106extern inline BOOL APIENTRY __FPU_CW_GpiUnloadFonts (HAB hab, PCSZ pszFilename)
     4107{
     4108    unsigned int cw = __FPU_CW_Get();
    36534109    BOOL ret = GpiUnloadFonts (hab, pszFilename);
    3654     __FPU_CW_Restore();
     4110    __FPU_CW_Set(cw);
    36554111    return ret;
    36564112}
    36574113#define GpiUnloadFonts __FPU_CW_GpiUnloadFonts
    36584114
    3659 inline BOOL APIENTRY __FPU_CW_GpiUnloadPublicFonts (HAB hab, PCSZ pszFilename)
    3660 {
     4115extern inline BOOL APIENTRY __FPU_CW_GpiUnloadPublicFonts (HAB hab, PCSZ pszFilename)
     4116{
     4117    unsigned int cw = __FPU_CW_Get();
    36614118    BOOL ret = GpiUnloadPublicFonts (hab, pszFilename);
    3662     __FPU_CW_Restore();
     4119    __FPU_CW_Set(cw);
    36634120    return ret;
    36644121}
    36654122#define GpiUnloadPublicFonts __FPU_CW_GpiUnloadPublicFonts
    36664123
    3667 inline LONG APIENTRY __FPU_CW_GpiBitBlt (HPS hpsTarget, HPS hpsSource, LONG lCount,    __const__ POINTL *aptlPoints, LONG lRop, ULONG flOptions)
    3668 {
     4124extern inline LONG APIENTRY __FPU_CW_GpiBitBlt (HPS hpsTarget, HPS hpsSource, LONG lCount,    __const__ POINTL *aptlPoints, LONG lRop, ULONG flOptions)
     4125{
     4126    unsigned int cw = __FPU_CW_Get();
    36694127    LONG ret = GpiBitBlt (hpsTarget, hpsSource, lCount,    aptlPoints, lRop, flOptions);
    3670     __FPU_CW_Restore();
     4128    __FPU_CW_Set(cw);
    36714129    return ret;
    36724130}
    36734131#define GpiBitBlt __FPU_CW_GpiBitBlt
    36744132
    3675 inline BOOL APIENTRY __FPU_CW_GpiDeleteBitmap (HBITMAP hbm)
    3676 {
     4133extern inline BOOL APIENTRY __FPU_CW_GpiDeleteBitmap (HBITMAP hbm)
     4134{
     4135    unsigned int cw = __FPU_CW_Get();
    36774136    BOOL ret = GpiDeleteBitmap (hbm);
    3678     __FPU_CW_Restore();
     4137    __FPU_CW_Set(cw);
    36794138    return ret;
    36804139}
    36814140#define GpiDeleteBitmap __FPU_CW_GpiDeleteBitmap
    36824141
    3683 inline HBITMAP APIENTRY __FPU_CW_GpiLoadBitmap (HPS hps, HMODULE Resource, ULONG idBitmap,    LONG lWidth, LONG lHeight)
    3684 {
     4142extern inline HBITMAP APIENTRY __FPU_CW_GpiLoadBitmap (HPS hps, HMODULE Resource, ULONG idBitmap,    LONG lWidth, LONG lHeight)
     4143{
     4144    unsigned int cw = __FPU_CW_Get();
    36854145    HBITMAP ret = GpiLoadBitmap (hps, Resource, idBitmap,    lWidth, lHeight);
    3686     __FPU_CW_Restore();
     4146    __FPU_CW_Set(cw);
    36874147    return ret;
    36884148}
    36894149#define GpiLoadBitmap __FPU_CW_GpiLoadBitmap
    36904150
    3691 inline HBITMAP APIENTRY __FPU_CW_GpiSetBitmap (HPS hps, HBITMAP hbm)
    3692 {
     4151extern inline HBITMAP APIENTRY __FPU_CW_GpiSetBitmap (HPS hps, HBITMAP hbm)
     4152{
     4153    unsigned int cw = __FPU_CW_Get();
    36934154    HBITMAP ret = GpiSetBitmap (hps, hbm);
    3694     __FPU_CW_Restore();
     4155    __FPU_CW_Set(cw);
    36954156    return ret;
    36964157}
    36974158#define GpiSetBitmap __FPU_CW_GpiSetBitmap
    36984159
    3699 inline LONG APIENTRY __FPU_CW_GpiWCBitBlt (HPS hpsTarget, HBITMAP hbmSource, LONG lCount,    __const__ POINTL *aptlPoints, LONG lRop, ULONG flOptions)
    3700 {
     4160extern inline LONG APIENTRY __FPU_CW_GpiWCBitBlt (HPS hpsTarget, HBITMAP hbmSource, LONG lCount,    __const__ POINTL *aptlPoints, LONG lRop, ULONG flOptions)
     4161{
     4162    unsigned int cw = __FPU_CW_Get();
    37014163    LONG ret = GpiWCBitBlt (hpsTarget, hbmSource, lCount,    aptlPoints, lRop, flOptions);
    3702     __FPU_CW_Restore();
     4164    __FPU_CW_Set(cw);
    37034165    return ret;
    37044166}
    37054167#define GpiWCBitBlt __FPU_CW_GpiWCBitBlt
    37064168
    3707 inline HBITMAP APIENTRY __FPU_CW_GpiCreateBitmap (HPS hps, __const__ BITMAPINFOHEADER2 *pbmpNew,    ULONG flOptions, __const__ BYTE *pbInitData,    __const__ BITMAPINFO2 *pbmiInfoTable)
    3708 {
     4169extern inline HBITMAP APIENTRY __FPU_CW_GpiCreateBitmap (HPS hps, __const__ BITMAPINFOHEADER2 *pbmpNew,    ULONG flOptions, __const__ BYTE *pbInitData,    __const__ BITMAPINFO2 *pbmiInfoTable)
     4170{
     4171    unsigned int cw = __FPU_CW_Get();
    37094172    HBITMAP ret = GpiCreateBitmap (hps, pbmpNew,    flOptions, pbInitData,    pbmiInfoTable);
    3710     __FPU_CW_Restore();
     4173    __FPU_CW_Set(cw);
    37114174    return ret;
    37124175}
    37134176#define GpiCreateBitmap __FPU_CW_GpiCreateBitmap
    37144177
    3715 inline LONG APIENTRY __FPU_CW_GpiDrawBits (HPS hps, __const__ VOID *pBits,    __const__ BITMAPINFO2 *pbmiInfoTable, LONG lCount,    __const__ POINTL *aptlPoints, LONG lRop, ULONG flOptions)
    3716 {
     4178extern inline LONG APIENTRY __FPU_CW_GpiDrawBits (HPS hps, __const__ VOID *pBits,    __const__ BITMAPINFO2 *pbmiInfoTable, LONG lCount,    __const__ POINTL *aptlPoints, LONG lRop, ULONG flOptions)
     4179{
     4180    unsigned int cw = __FPU_CW_Get();
    37174181    LONG ret = GpiDrawBits (hps, pBits,    pbmiInfoTable, lCount,    aptlPoints, lRop, flOptions);
    3718     __FPU_CW_Restore();
     4182    __FPU_CW_Set(cw);
    37194183    return ret;
    37204184}
    37214185#define GpiDrawBits __FPU_CW_GpiDrawBits
    37224186
    3723 inline LONG APIENTRY __FPU_CW_GpiFloodFill (HPS hps, LONG lOptions, LONG lColor)
    3724 {
     4187extern inline LONG APIENTRY __FPU_CW_GpiFloodFill (HPS hps, LONG lOptions, LONG lColor)
     4188{
     4189    unsigned int cw = __FPU_CW_Get();
    37254190    LONG ret = GpiFloodFill (hps, lOptions, lColor);
    3726     __FPU_CW_Restore();
     4191    __FPU_CW_Set(cw);
    37274192    return ret;
    37284193}
    37294194#define GpiFloodFill __FPU_CW_GpiFloodFill
    37304195
    3731 inline LONG APIENTRY __FPU_CW_GpiQueryBitmapBits (HPS hps, LONG lScanStart, LONG lScans, PBYTE pbBuffer,    PBITMAPINFO2 pbmiInfoTable)
    3732 {
     4196extern inline LONG APIENTRY __FPU_CW_GpiQueryBitmapBits (HPS hps, LONG lScanStart, LONG lScans, PBYTE pbBuffer,    PBITMAPINFO2 pbmiInfoTable)
     4197{
     4198    unsigned int cw = __FPU_CW_Get();
    37334199    LONG ret = GpiQueryBitmapBits (hps, lScanStart, lScans, pbBuffer,    pbmiInfoTable);
    3734     __FPU_CW_Restore();
     4200    __FPU_CW_Set(cw);
    37354201    return ret;
    37364202}
    37374203#define GpiQueryBitmapBits __FPU_CW_GpiQueryBitmapBits
    37384204
    3739 inline BOOL APIENTRY __FPU_CW_GpiQueryBitmapDimension (HBITMAP hbm, PSIZEL psizlBitmapDimension)
    3740 {
     4205extern inline BOOL APIENTRY __FPU_CW_GpiQueryBitmapDimension (HBITMAP hbm, PSIZEL psizlBitmapDimension)
     4206{
     4207    unsigned int cw = __FPU_CW_Get();
    37414208    BOOL ret = GpiQueryBitmapDimension (hbm, psizlBitmapDimension);
    3742     __FPU_CW_Restore();
     4209    __FPU_CW_Set(cw);
    37434210    return ret;
    37444211}
    37454212#define GpiQueryBitmapDimension __FPU_CW_GpiQueryBitmapDimension
    37464213
    3747 inline HBITMAP APIENTRY __FPU_CW_GpiQueryBitmapHandle (HPS hps, LONG lLcid)
    3748 {
     4214extern inline HBITMAP APIENTRY __FPU_CW_GpiQueryBitmapHandle (HPS hps, LONG lLcid)
     4215{
     4216    unsigned int cw = __FPU_CW_Get();
    37494217    HBITMAP ret = GpiQueryBitmapHandle (hps, lLcid);
    3750     __FPU_CW_Restore();
     4218    __FPU_CW_Set(cw);
    37514219    return ret;
    37524220}
    37534221#define GpiQueryBitmapHandle __FPU_CW_GpiQueryBitmapHandle
    37544222
    3755 inline BOOL APIENTRY __FPU_CW_GpiQueryBitmapInfoHeader (HBITMAP hbm, PBITMAPINFOHEADER2 pbmpData)
    3756 {
     4223extern inline BOOL APIENTRY __FPU_CW_GpiQueryBitmapInfoHeader (HBITMAP hbm, PBITMAPINFOHEADER2 pbmpData)
     4224{
     4225    unsigned int cw = __FPU_CW_Get();
    37574226    BOOL ret = GpiQueryBitmapInfoHeader (hbm, pbmpData);
    3758     __FPU_CW_Restore();
     4227    __FPU_CW_Set(cw);
    37594228    return ret;
    37604229}
    37614230#define GpiQueryBitmapInfoHeader __FPU_CW_GpiQueryBitmapInfoHeader
    37624231
    3763 inline BOOL APIENTRY __FPU_CW_GpiQueryBitmapParameters (HBITMAP hbm, PBITMAPINFOHEADER pbmpData)
    3764 {
     4232extern inline BOOL APIENTRY __FPU_CW_GpiQueryBitmapParameters (HBITMAP hbm, PBITMAPINFOHEADER pbmpData)
     4233{
     4234    unsigned int cw = __FPU_CW_Get();
    37654235    BOOL ret = GpiQueryBitmapParameters (hbm, pbmpData);
    3766     __FPU_CW_Restore();
     4236    __FPU_CW_Set(cw);
    37674237    return ret;
    37684238}
    37694239#define GpiQueryBitmapParameters __FPU_CW_GpiQueryBitmapParameters
    37704240
    3771 inline BOOL APIENTRY __FPU_CW_GpiQueryDeviceBitmapFormats (HPS hps, LONG lCount, PLONG alArray)
    3772 {
     4241extern inline BOOL APIENTRY __FPU_CW_GpiQueryDeviceBitmapFormats (HPS hps, LONG lCount, PLONG alArray)
     4242{
     4243    unsigned int cw = __FPU_CW_Get();
    37734244    BOOL ret = GpiQueryDeviceBitmapFormats (hps, lCount, alArray);
    3774     __FPU_CW_Restore();
     4245    __FPU_CW_Set(cw);
    37754246    return ret;
    37764247}
    37774248#define GpiQueryDeviceBitmapFormats __FPU_CW_GpiQueryDeviceBitmapFormats
    37784249
    3779 inline LONG APIENTRY  __FPU_CW_GpiSetBitmapBits (HPS hps, LONG lScanStart, LONG lScans,    __const__ BYTE *pbBuffer, __const__ BITMAPINFO2 *pbmiInfoTable)
    3780 {
     4250extern inline LONG APIENTRY  __FPU_CW_GpiSetBitmapBits (HPS hps, LONG lScanStart, LONG lScans,    __const__ BYTE *pbBuffer, __const__ BITMAPINFO2 *pbmiInfoTable)
     4251{
     4252    unsigned int cw = __FPU_CW_Get();
    37814253    LONG ret = GpiSetBitmapBits (hps, lScanStart, lScans,    pbBuffer, pbmiInfoTable);
    3782     __FPU_CW_Restore();
     4254    __FPU_CW_Set(cw);
    37834255    return ret;
    37844256}
    37854257#define GpiSetBitmapBits __FPU_CW_GpiSetBitmapBits
    37864258
    3787 inline LONG APIENTRY __FPU_CW_GpiQueryPel (HPS hps, PPOINTL pptlPoint)
    3788 {
     4259extern inline LONG APIENTRY __FPU_CW_GpiQueryPel (HPS hps, PPOINTL pptlPoint)
     4260{
     4261    unsigned int cw = __FPU_CW_Get();
    37894262    LONG ret = GpiQueryPel (hps, pptlPoint);
    3790     __FPU_CW_Restore();
     4263    __FPU_CW_Set(cw);
    37914264    return ret;
    37924265}
    37934266#define GpiQueryPel __FPU_CW_GpiQueryPel
    37944267
    3795 inline BOOL APIENTRY __FPU_CW_GpiSetBitmapDimension (HBITMAP hbm,    __const__ SIZEL *psizlBitmapDimension)
    3796 {
     4268extern inline BOOL APIENTRY __FPU_CW_GpiSetBitmapDimension (HBITMAP hbm,    __const__ SIZEL *psizlBitmapDimension)
     4269{
     4270    unsigned int cw = __FPU_CW_Get();
    37974271    BOOL ret = GpiSetBitmapDimension (hbm,    psizlBitmapDimension);
    3798     __FPU_CW_Restore();
     4272    __FPU_CW_Set(cw);
    37994273    return ret;
    38004274}
    38014275#define GpiSetBitmapDimension __FPU_CW_GpiSetBitmapDimension
    38024276
    3803 inline BOOL APIENTRY __FPU_CW_GpiSetBitmapId (HPS hps, HBITMAP hbm, LONG lLcid)
    3804 {
     4277extern inline BOOL APIENTRY __FPU_CW_GpiSetBitmapId (HPS hps, HBITMAP hbm, LONG lLcid)
     4278{
     4279    unsigned int cw = __FPU_CW_Get();
    38054280    BOOL ret = GpiSetBitmapId (hps, hbm, lLcid);
    3806     __FPU_CW_Restore();
     4281    __FPU_CW_Set(cw);
    38074282    return ret;
    38084283}
    38094284#define GpiSetBitmapId __FPU_CW_GpiSetBitmapId
    38104285
    3811 inline LONG APIENTRY __FPU_CW_GpiSetPel (HPS hps, __const__ POINTL *pptlPoint)
    3812 {
     4286extern inline LONG APIENTRY __FPU_CW_GpiSetPel (HPS hps, __const__ POINTL *pptlPoint)
     4287{
     4288    unsigned int cw = __FPU_CW_Get();
    38134289    LONG ret = GpiSetPel (hps, pptlPoint);
    3814     __FPU_CW_Restore();
     4290    __FPU_CW_Set(cw);
    38154291    return ret;
    38164292}
    38174293#define GpiSetPel __FPU_CW_GpiSetPel
    38184294
    3819 inline BOOL APIENTRY __FPU_CW_GpiAssociate (HPS hps, HDC hdc)
    3820 {
     4295extern inline BOOL APIENTRY __FPU_CW_GpiAssociate (HPS hps, HDC hdc)
     4296{
     4297    unsigned int cw = __FPU_CW_Get();
    38214298    BOOL ret = GpiAssociate (hps, hdc);
    3822     __FPU_CW_Restore();
     4299    __FPU_CW_Set(cw);
    38234300    return ret;
    38244301}
    38254302#define GpiAssociate __FPU_CW_GpiAssociate
    38264303
    3827 inline HPS APIENTRY __FPU_CW_GpiCreatePS (HAB hab, HDC hdc, PSIZEL psizlSize, ULONG flOptions)
    3828 {
     4304extern inline HPS APIENTRY __FPU_CW_GpiCreatePS (HAB hab, HDC hdc, PSIZEL psizlSize, ULONG flOptions)
     4305{
     4306    unsigned int cw = __FPU_CW_Get();
    38294307    HPS ret = GpiCreatePS (hab, hdc, psizlSize, flOptions);
    3830     __FPU_CW_Restore();
     4308    __FPU_CW_Set(cw);
    38314309    return ret;
    38324310}
    38334311#define GpiCreatePS __FPU_CW_GpiCreatePS
    38344312
    3835 inline BOOL APIENTRY __FPU_CW_GpiDestroyPS (HPS hps)
    3836 {
     4313extern inline BOOL APIENTRY __FPU_CW_GpiDestroyPS (HPS hps)
     4314{
     4315    unsigned int cw = __FPU_CW_Get();
    38374316    BOOL ret = GpiDestroyPS (hps);
    3838     __FPU_CW_Restore();
     4317    __FPU_CW_Set(cw);
    38394318    return ret;
    38404319}
    38414320#define GpiDestroyPS __FPU_CW_GpiDestroyPS
    38424321
    3843 inline BOOL APIENTRY __FPU_CW_GpiErase (HPS hps)
    3844 {
     4322extern inline BOOL APIENTRY __FPU_CW_GpiErase (HPS hps)
     4323{
     4324    unsigned int cw = __FPU_CW_Get();
    38454325    BOOL ret = GpiErase (hps);
    3846     __FPU_CW_Restore();
     4326    __FPU_CW_Set(cw);
    38474327    return ret;
    38484328}
    38494329#define GpiErase __FPU_CW_GpiErase
    38504330
    3851 inline HDC APIENTRY __FPU_CW_GpiQueryDevice (HPS hps)
    3852 {
     4331extern inline HDC APIENTRY __FPU_CW_GpiQueryDevice (HPS hps)
     4332{
     4333    unsigned int cw = __FPU_CW_Get();
    38534334    HDC ret = GpiQueryDevice (hps);
    3854     __FPU_CW_Restore();
     4335    __FPU_CW_Set(cw);
    38554336    return ret;
    38564337}
    38574338#define GpiQueryDevice __FPU_CW_GpiQueryDevice
    38584339
    3859 inline BOOL APIENTRY __FPU_CW_GpiRestorePS (HPS hps, LONG lPSid)
    3860 {
     4340extern inline BOOL APIENTRY __FPU_CW_GpiRestorePS (HPS hps, LONG lPSid)
     4341{
     4342    unsigned int cw = __FPU_CW_Get();
    38614343    BOOL ret = GpiRestorePS (hps, lPSid);
    3862     __FPU_CW_Restore();
     4344    __FPU_CW_Set(cw);
    38634345    return ret;
    38644346}
    38654347#define GpiRestorePS __FPU_CW_GpiRestorePS
    38664348
    3867 inline LONG APIENTRY __FPU_CW_GpiSavePS (HPS hps)
    3868 {
     4349extern inline LONG APIENTRY __FPU_CW_GpiSavePS (HPS hps)
     4350{
     4351    unsigned int cw = __FPU_CW_Get();
    38694352    LONG ret = GpiSavePS (hps);
    3870     __FPU_CW_Restore();
     4353    __FPU_CW_Set(cw);
    38714354    return ret;
    38724355}
    38734356#define GpiSavePS __FPU_CW_GpiSavePS
    38744357
    3875 inline LONG APIENTRY __FPU_CW_GpiErrorSegmentData (HPS hps, PLONG plSegment, PLONG plContext)
    3876 {
     4358extern inline LONG APIENTRY __FPU_CW_GpiErrorSegmentData (HPS hps, PLONG plSegment, PLONG plContext)
     4359{
     4360    unsigned int cw = __FPU_CW_Get();
    38774361    LONG ret = GpiErrorSegmentData (hps, plSegment, plContext);
    3878     __FPU_CW_Restore();
     4362    __FPU_CW_Set(cw);
    38794363    return ret;
    38804364}
    38814365#define GpiErrorSegmentData __FPU_CW_GpiErrorSegmentData
    38824366
    3883 inline LONG APIENTRY __FPU_CW_GpiQueryDrawControl (HPS hps, LONG lControl)
    3884 {
     4367extern inline LONG APIENTRY __FPU_CW_GpiQueryDrawControl (HPS hps, LONG lControl)
     4368{
     4369    unsigned int cw = __FPU_CW_Get();
    38854370    LONG ret = GpiQueryDrawControl (hps, lControl);
    3886     __FPU_CW_Restore();
     4371    __FPU_CW_Set(cw);
    38874372    return ret;
    38884373}
    38894374#define GpiQueryDrawControl __FPU_CW_GpiQueryDrawControl
    38904375
    3891 inline LONG APIENTRY __FPU_CW_GpiQueryDrawingMode (HPS hps)
    3892 {
     4376extern inline LONG APIENTRY __FPU_CW_GpiQueryDrawingMode (HPS hps)
     4377{
     4378    unsigned int cw = __FPU_CW_Get();
    38934379    LONG ret = GpiQueryDrawingMode (hps);
    3894     __FPU_CW_Restore();
     4380    __FPU_CW_Set(cw);
    38954381    return ret;
    38964382}
    38974383#define GpiQueryDrawingMode __FPU_CW_GpiQueryDrawingMode
    38984384
    3899 inline ULONG APIENTRY __FPU_CW_GpiQueryPS (HPS hps, PSIZEL psizlSize)
    3900 {
     4385extern inline ULONG APIENTRY __FPU_CW_GpiQueryPS (HPS hps, PSIZEL psizlSize)
     4386{
     4387    unsigned int cw = __FPU_CW_Get();
    39014388    ULONG ret = GpiQueryPS (hps, psizlSize);
    3902     __FPU_CW_Restore();
     4389    __FPU_CW_Set(cw);
    39034390    return ret;
    39044391}
    39054392#define GpiQueryPS __FPU_CW_GpiQueryPS
    39064393
    3907 inline BOOL APIENTRY __FPU_CW_GpiResetPS (HPS hps, ULONG flOptions)
    3908 {
     4394extern inline BOOL APIENTRY __FPU_CW_GpiResetPS (HPS hps, ULONG flOptions)
     4395{
     4396    unsigned int cw = __FPU_CW_Get();
    39094397    BOOL ret = GpiResetPS (hps, flOptions);
    3910     __FPU_CW_Restore();
     4398    __FPU_CW_Set(cw);
    39114399    return ret;
    39124400}
    39134401#define GpiResetPS __FPU_CW_GpiResetPS
    39144402
    3915 inline LONG APIENTRY __FPU_CW_GpiQueryStopDraw (HPS hps)
    3916 {
     4403extern inline LONG APIENTRY __FPU_CW_GpiQueryStopDraw (HPS hps)
     4404{
     4405    unsigned int cw = __FPU_CW_Get();
    39174406    LONG ret = GpiQueryStopDraw (hps);
    3918     __FPU_CW_Restore();
     4407    __FPU_CW_Set(cw);
    39194408    return ret;
    39204409}
    39214410#define GpiQueryStopDraw __FPU_CW_GpiQueryStopDraw
    39224411
    3923 inline BOOL APIENTRY __FPU_CW_GpiSetDrawControl (HPS hps, LONG lControl, LONG lValue)
    3924 {
     4412extern inline BOOL APIENTRY __FPU_CW_GpiSetDrawControl (HPS hps, LONG lControl, LONG lValue)
     4413{
     4414    unsigned int cw = __FPU_CW_Get();
    39254415    BOOL ret = GpiSetDrawControl (hps, lControl, lValue);
    3926     __FPU_CW_Restore();
     4416    __FPU_CW_Set(cw);
    39274417    return ret;
    39284418}
    39294419#define GpiSetDrawControl __FPU_CW_GpiSetDrawControl
    39304420
    3931 inline BOOL APIENTRY __FPU_CW_GpiSetDrawingMode (HPS hps, LONG lMode)
    3932 {
     4421extern inline BOOL APIENTRY __FPU_CW_GpiSetDrawingMode (HPS hps, LONG lMode)
     4422{
     4423    unsigned int cw = __FPU_CW_Get();
    39334424    BOOL ret = GpiSetDrawingMode (hps, lMode);
    3934     __FPU_CW_Restore();
     4425    __FPU_CW_Set(cw);
    39354426    return ret;
    39364427}
    39374428#define GpiSetDrawingMode __FPU_CW_GpiSetDrawingMode
    39384429
    3939 inline BOOL APIENTRY __FPU_CW_GpiSetPS (HPS hps, __const__ SIZEL *psizlsize, ULONG flOptions)
    3940 {
     4430extern inline BOOL APIENTRY __FPU_CW_GpiSetPS (HPS hps, __const__ SIZEL *psizlsize, ULONG flOptions)
     4431{
     4432    unsigned int cw = __FPU_CW_Get();
    39414433    BOOL ret = GpiSetPS (hps, psizlsize, flOptions);
    3942     __FPU_CW_Restore();
     4434    __FPU_CW_Set(cw);
    39434435    return ret;
    39444436}
    39454437#define GpiSetPS __FPU_CW_GpiSetPS
    39464438
    3947 inline BOOL APIENTRY __FPU_CW_GpiSetStopDraw (HPS hps, LONG lValue)
    3948 {
     4439extern inline BOOL APIENTRY __FPU_CW_GpiSetStopDraw (HPS hps, LONG lValue)
     4440{
     4441    unsigned int cw = __FPU_CW_Get();
    39494442    BOOL ret = GpiSetStopDraw (hps, lValue);
    3950     __FPU_CW_Restore();
     4443    __FPU_CW_Set(cw);
    39514444    return ret;
    39524445}
    39534446#define GpiSetStopDraw __FPU_CW_GpiSetStopDraw
    39544447
    3955 inline LONG APIENTRY __FPU_CW_GpiCorrelateChain (HPS hps, LONG lType, __const__ POINTL *pptlPick,    LONG lMaxHits, LONG lMaxDepth, PLONG pl2)
    3956 {
     4448extern inline LONG APIENTRY __FPU_CW_GpiCorrelateChain (HPS hps, LONG lType, __const__ POINTL *pptlPick,    LONG lMaxHits, LONG lMaxDepth, PLONG pl2)
     4449{
     4450    unsigned int cw = __FPU_CW_Get();
    39574451    LONG ret = GpiCorrelateChain (hps, lType, pptlPick,    lMaxHits, lMaxDepth, pl2);
    3958     __FPU_CW_Restore();
     4452    __FPU_CW_Set(cw);
    39594453    return ret;
    39604454}
    39614455#define GpiCorrelateChain __FPU_CW_GpiCorrelateChain
    39624456
    3963 inline LONG APIENTRY __FPU_CW_GpiCorrelateFrom (HPS hps, LONG lFirstSegment, LONG lLastSegment,    LONG lType, __const__ POINTL *pptlPick, LONG lMaxHits, LONG lMaxDepth,    PLONG plSegTag)
    3964 {
     4457extern inline LONG APIENTRY __FPU_CW_GpiCorrelateFrom (HPS hps, LONG lFirstSegment, LONG lLastSegment,    LONG lType, __const__ POINTL *pptlPick, LONG lMaxHits, LONG lMaxDepth,    PLONG plSegTag)
     4458{
     4459    unsigned int cw = __FPU_CW_Get();
    39654460    LONG ret = GpiCorrelateFrom (hps, lFirstSegment, lLastSegment,    lType, pptlPick, lMaxHits, lMaxDepth,    plSegTag);
    3966     __FPU_CW_Restore();
     4461    __FPU_CW_Set(cw);
    39674462    return ret;
    39684463}
    39694464#define GpiCorrelateFrom __FPU_CW_GpiCorrelateFrom
    39704465
    3971 inline LONG APIENTRY __FPU_CW_GpiCorrelateSegment (HPS hps, LONG lSegment, LONG lType,    __const__ POINTL *pptlPick, LONG lMaxHits, LONG lMaxDepth, PLONG alSegTag)
    3972 {
     4466extern inline LONG APIENTRY __FPU_CW_GpiCorrelateSegment (HPS hps, LONG lSegment, LONG lType,    __const__ POINTL *pptlPick, LONG lMaxHits, LONG lMaxDepth, PLONG alSegTag)
     4467{
     4468    unsigned int cw = __FPU_CW_Get();
    39734469    LONG ret = GpiCorrelateSegment (hps, lSegment, lType,    pptlPick, lMaxHits, lMaxDepth, alSegTag);
    3974     __FPU_CW_Restore();
     4470    __FPU_CW_Set(cw);
    39754471    return ret;
    39764472}
    39774473#define GpiCorrelateSegment __FPU_CW_GpiCorrelateSegment
    39784474
    3979 inline BOOL APIENTRY __FPU_CW_GpiQueryBoundaryData (HPS hps, PRECTL prclBoundary)
    3980 {
     4475extern inline BOOL APIENTRY __FPU_CW_GpiQueryBoundaryData (HPS hps, PRECTL prclBoundary)
     4476{
     4477    unsigned int cw = __FPU_CW_Get();
    39814478    BOOL ret = GpiQueryBoundaryData (hps, prclBoundary);
    3982     __FPU_CW_Restore();
     4479    __FPU_CW_Set(cw);
    39834480    return ret;
    39844481}
    39854482#define GpiQueryBoundaryData __FPU_CW_GpiQueryBoundaryData
    39864483
    3987 inline BOOL APIENTRY __FPU_CW_GpiQueryPickAperturePosition (HPS hps, PPOINTL pptlPoint)
    3988 {
     4484extern inline BOOL APIENTRY __FPU_CW_GpiQueryPickAperturePosition (HPS hps, PPOINTL pptlPoint)
     4485{
     4486    unsigned int cw = __FPU_CW_Get();
    39894487    BOOL ret = GpiQueryPickAperturePosition (hps, pptlPoint);
    3990     __FPU_CW_Restore();
     4488    __FPU_CW_Set(cw);
    39914489    return ret;
    39924490}
    39934491#define GpiQueryPickAperturePosition __FPU_CW_GpiQueryPickAperturePosition
    39944492
    3995 inline BOOL APIENTRY __FPU_CW_GpiQueryPickApertureSize (HPS hps, PSIZEL psizlSize)
    3996 {
     4493extern inline BOOL APIENTRY __FPU_CW_GpiQueryPickApertureSize (HPS hps, PSIZEL psizlSize)
     4494{
     4495    unsigned int cw = __FPU_CW_Get();
    39974496    BOOL ret = GpiQueryPickApertureSize (hps, psizlSize);
    3998     __FPU_CW_Restore();
     4497    __FPU_CW_Set(cw);
    39994498    return ret;
    40004499}
    40014500#define GpiQueryPickApertureSize __FPU_CW_GpiQueryPickApertureSize
    40024501
    4003 inline BOOL APIENTRY __FPU_CW_GpiQueryTag (HPS hps, PLONG plTag)
    4004 {
     4502extern inline BOOL APIENTRY __FPU_CW_GpiQueryTag (HPS hps, PLONG plTag)
     4503{
     4504    unsigned int cw = __FPU_CW_Get();
    40054505    BOOL ret = GpiQueryTag (hps, plTag);
    4006     __FPU_CW_Restore();
     4506    __FPU_CW_Set(cw);
    40074507    return ret;
    40084508}
    40094509#define GpiQueryTag __FPU_CW_GpiQueryTag
    40104510
    4011 inline BOOL APIENTRY __FPU_CW_GpiResetBoundaryData (HPS hps)
    4012 {
     4511extern inline BOOL APIENTRY __FPU_CW_GpiResetBoundaryData (HPS hps)
     4512{
     4513    unsigned int cw = __FPU_CW_Get();
    40134514    BOOL ret = GpiResetBoundaryData (hps);
    4014     __FPU_CW_Restore();
     4515    __FPU_CW_Set(cw);
    40154516    return ret;
    40164517}
    40174518#define GpiResetBoundaryData __FPU_CW_GpiResetBoundaryData
    40184519
    4019 inline BOOL APIENTRY __FPU_CW_GpiSetPickAperturePosition (HPS hps, __const__ POINTL *pptlPick)
    4020 {
     4520extern inline BOOL APIENTRY __FPU_CW_GpiSetPickAperturePosition (HPS hps, __const__ POINTL *pptlPick)
     4521{
     4522    unsigned int cw = __FPU_CW_Get();
    40214523    BOOL ret = GpiSetPickAperturePosition (hps, pptlPick);
    4022     __FPU_CW_Restore();
     4524    __FPU_CW_Set(cw);
    40234525    return ret;
    40244526}
    40254527#define GpiSetPickAperturePosition __FPU_CW_GpiSetPickAperturePosition
    40264528
    4027 inline BOOL APIENTRY __FPU_CW_GpiSetPickApertureSize (HPS hps, LONG lOptions,    __const__ SIZEL *psizlSize)
    4028 {
     4529extern inline BOOL APIENTRY __FPU_CW_GpiSetPickApertureSize (HPS hps, LONG lOptions,    __const__ SIZEL *psizlSize)
     4530{
     4531    unsigned int cw = __FPU_CW_Get();
    40294532    BOOL ret = GpiSetPickApertureSize (hps, lOptions,    psizlSize);
    4030     __FPU_CW_Restore();
     4533    __FPU_CW_Set(cw);
    40314534    return ret;
    40324535}
    40334536#define GpiSetPickApertureSize __FPU_CW_GpiSetPickApertureSize
    40344537
    4035 inline BOOL APIENTRY __FPU_CW_GpiSetTag (HPS hps, LONG lTag)
    4036 {
     4538extern inline BOOL APIENTRY __FPU_CW_GpiSetTag (HPS hps, LONG lTag)
     4539{
     4540    unsigned int cw = __FPU_CW_Get();
    40374541    BOOL ret = GpiSetTag (hps, lTag);
    4038     __FPU_CW_Restore();
     4542    __FPU_CW_Set(cw);
    40394543    return ret;
    40404544}
    40414545#define GpiSetTag __FPU_CW_GpiSetTag
    40424546
    4043 inline BOOL APIENTRY __FPU_CW_GpiBeginInkPath (HPS hps, LONG lPath, ULONG flOptions)
    4044 {
     4547extern inline BOOL APIENTRY __FPU_CW_GpiBeginInkPath (HPS hps, LONG lPath, ULONG flOptions)
     4548{
     4549    unsigned int cw = __FPU_CW_Get();
    40454550    BOOL ret = GpiBeginInkPath (hps, lPath, flOptions);
    4046     __FPU_CW_Restore();
     4551    __FPU_CW_Set(cw);
    40474552    return ret;
    40484553}
    40494554#define GpiBeginInkPath __FPU_CW_GpiBeginInkPath
    40504555
    4051 inline BOOL APIENTRY __FPU_CW_GpiEndInkPath (HPS hps, ULONG flOptions)
    4052 {
     4556extern inline BOOL APIENTRY __FPU_CW_GpiEndInkPath (HPS hps, ULONG flOptions)
     4557{
     4558    unsigned int cw = __FPU_CW_Get();
    40534559    BOOL ret = GpiEndInkPath (hps, flOptions);
    4054     __FPU_CW_Restore();
     4560    __FPU_CW_Set(cw);
    40554561    return ret;
    40564562}
    40574563#define GpiEndInkPath __FPU_CW_GpiEndInkPath
    40584564
    4059 inline LONG APIENTRY __FPU_CW_GpiStrokeInkPath (HPS hps, LONG lPath, LONG lCount,    __const__ POINTL *aptlPoints, ULONG flOptions)
    4060 {
     4565extern inline LONG APIENTRY __FPU_CW_GpiStrokeInkPath (HPS hps, LONG lPath, LONG lCount,    __const__ POINTL *aptlPoints, ULONG flOptions)
     4566{
     4567    unsigned int cw = __FPU_CW_Get();
    40614568    LONG ret = GpiStrokeInkPath (hps, lPath, lCount,    aptlPoints, flOptions);
    4062     __FPU_CW_Restore();
     4569    __FPU_CW_Set(cw);
    40634570    return ret;
    40644571}
    40654572#define GpiStrokeInkPath __FPU_CW_GpiStrokeInkPath
    40664573
    4067 inline BOOL APIENTRY __FPU_CW_GpiCloseSegment (HPS hps)
    4068 {
     4574extern inline BOOL APIENTRY __FPU_CW_GpiCloseSegment (HPS hps)
     4575{
     4576    unsigned int cw = __FPU_CW_Get();
    40694577    BOOL ret = GpiCloseSegment (hps);
    4070     __FPU_CW_Restore();
     4578    __FPU_CW_Set(cw);
    40714579    return ret;
    40724580}
    40734581#define GpiCloseSegment __FPU_CW_GpiCloseSegment
    40744582
    4075 inline BOOL APIENTRY __FPU_CW_GpiDeleteSegment (HPS hps, LONG lSegid)
    4076 {
     4583extern inline BOOL APIENTRY __FPU_CW_GpiDeleteSegment (HPS hps, LONG lSegid)
     4584{
     4585    unsigned int cw = __FPU_CW_Get();
    40774586    BOOL ret = GpiDeleteSegment (hps, lSegid);
    4078     __FPU_CW_Restore();
     4587    __FPU_CW_Set(cw);
    40794588    return ret;
    40804589}
    40814590#define GpiDeleteSegment __FPU_CW_GpiDeleteSegment
    40824591
    4083 inline BOOL APIENTRY __FPU_CW_GpiDeleteSegments (HPS hps, LONG lFirstSegment, LONG lLastSegment)
    4084 {
     4592extern inline BOOL APIENTRY __FPU_CW_GpiDeleteSegments (HPS hps, LONG lFirstSegment, LONG lLastSegment)
     4593{
     4594    unsigned int cw = __FPU_CW_Get();
    40854595    BOOL ret = GpiDeleteSegments (hps, lFirstSegment, lLastSegment);
    4086     __FPU_CW_Restore();
     4596    __FPU_CW_Set(cw);
    40874597    return ret;
    40884598}
    40894599#define GpiDeleteSegments __FPU_CW_GpiDeleteSegments
    40904600
    4091 inline BOOL APIENTRY __FPU_CW_GpiDrawChain (HPS hps)
    4092 {
     4601extern inline BOOL APIENTRY __FPU_CW_GpiDrawChain (HPS hps)
     4602{
     4603    unsigned int cw = __FPU_CW_Get();
    40934604    BOOL ret = GpiDrawChain (hps);
    4094     __FPU_CW_Restore();
     4605    __FPU_CW_Set(cw);
    40954606    return ret;
    40964607}
    40974608#define GpiDrawChain __FPU_CW_GpiDrawChain
    40984609
    4099 inline BOOL APIENTRY __FPU_CW_GpiDrawDynamics (HPS hps)
    4100 {
     4610extern inline BOOL APIENTRY __FPU_CW_GpiDrawDynamics (HPS hps)
     4611{
     4612    unsigned int cw = __FPU_CW_Get();
    41014613    BOOL ret = GpiDrawDynamics (hps);
    4102     __FPU_CW_Restore();
     4614    __FPU_CW_Set(cw);
    41034615    return ret;
    41044616}
    41054617#define GpiDrawDynamics __FPU_CW_GpiDrawDynamics
    41064618
    4107 inline BOOL APIENTRY __FPU_CW_GpiDrawFrom (HPS hps, LONG lFirstSegment, LONG lLastSegment)
    4108 {
     4619extern inline BOOL APIENTRY __FPU_CW_GpiDrawFrom (HPS hps, LONG lFirstSegment, LONG lLastSegment)
     4620{
     4621    unsigned int cw = __FPU_CW_Get();
    41094622    BOOL ret = GpiDrawFrom (hps, lFirstSegment, lLastSegment);
    4110     __FPU_CW_Restore();
     4623    __FPU_CW_Set(cw);
    41114624    return ret;
    41124625}
    41134626#define GpiDrawFrom __FPU_CW_GpiDrawFrom
    41144627
    4115 inline BOOL APIENTRY __FPU_CW_GpiDrawSegment (HPS hps, LONG lSegment)
    4116 {
     4628extern inline BOOL APIENTRY __FPU_CW_GpiDrawSegment (HPS hps, LONG lSegment)
     4629{
     4630    unsigned int cw = __FPU_CW_Get();
    41174631    BOOL ret = GpiDrawSegment (hps, lSegment);
    4118     __FPU_CW_Restore();
     4632    __FPU_CW_Set(cw);
    41194633    return ret;
    41204634}
    41214635#define GpiDrawSegment __FPU_CW_GpiDrawSegment
    41224636
    4123 inline LONG APIENTRY __FPU_CW_GpiGetData (HPS hps, LONG lSegid, PLONG plOffset, LONG lFormat,    LONG lLength, PBYTE pbData)
    4124 {
     4637extern inline LONG APIENTRY __FPU_CW_GpiGetData (HPS hps, LONG lSegid, PLONG plOffset, LONG lFormat,    LONG lLength, PBYTE pbData)
     4638{
     4639    unsigned int cw = __FPU_CW_Get();
    41254640    LONG ret = GpiGetData (hps, lSegid, plOffset, lFormat,    lLength, pbData);
    4126     __FPU_CW_Restore();
     4641    __FPU_CW_Set(cw);
    41274642    return ret;
    41284643}
    41294644#define GpiGetData __FPU_CW_GpiGetData
    41304645
    4131 inline BOOL APIENTRY __FPU_CW_GpiOpenSegment (HPS hps, LONG lSegment)
    4132 {
     4646extern inline BOOL APIENTRY __FPU_CW_GpiOpenSegment (HPS hps, LONG lSegment)
     4647{
     4648    unsigned int cw = __FPU_CW_Get();
    41334649    BOOL ret = GpiOpenSegment (hps, lSegment);
    4134     __FPU_CW_Restore();
     4650    __FPU_CW_Set(cw);
    41354651    return ret;
    41364652}
    41374653#define GpiOpenSegment __FPU_CW_GpiOpenSegment
    41384654
    4139 inline LONG APIENTRY __FPU_CW_GpiPutData (HPS hps, LONG lFormat, PLONG plCount, __const__ BYTE *pbData)
    4140 {
     4655extern inline LONG APIENTRY __FPU_CW_GpiPutData (HPS hps, LONG lFormat, PLONG plCount, __const__ BYTE *pbData)
     4656{
     4657    unsigned int cw = __FPU_CW_Get();
    41414658    LONG ret = GpiPutData (hps, lFormat, plCount, pbData);
    4142     __FPU_CW_Restore();
     4659    __FPU_CW_Set(cw);
    41434660    return ret;
    41444661}
    41454662#define GpiPutData __FPU_CW_GpiPutData
    41464663
    4147 inline LONG APIENTRY __FPU_CW_GpiQueryInitialSegmentAttrs (HPS hps, LONG lAttribute)
    4148 {
     4664extern inline LONG APIENTRY __FPU_CW_GpiQueryInitialSegmentAttrs (HPS hps, LONG lAttribute)
     4665{
     4666    unsigned int cw = __FPU_CW_Get();
    41494667    LONG ret = GpiQueryInitialSegmentAttrs (hps, lAttribute);
    4150     __FPU_CW_Restore();
     4668    __FPU_CW_Set(cw);
    41514669    return ret;
    41524670}
    41534671#define GpiQueryInitialSegmentAttrs __FPU_CW_GpiQueryInitialSegmentAttrs
    41544672
    4155 inline LONG APIENTRY __FPU_CW_GpiQuerySegmentAttrs (HPS hps, LONG lSegid, LONG lAttribute)
    4156 {
     4673extern inline LONG APIENTRY __FPU_CW_GpiQuerySegmentAttrs (HPS hps, LONG lSegid, LONG lAttribute)
     4674{
     4675    unsigned int cw = __FPU_CW_Get();
    41574676    LONG ret = GpiQuerySegmentAttrs (hps, lSegid, lAttribute);
    4158     __FPU_CW_Restore();
     4677    __FPU_CW_Set(cw);
    41594678    return ret;
    41604679}
    41614680#define GpiQuerySegmentAttrs __FPU_CW_GpiQuerySegmentAttrs
    41624681
    4163 inline LONG APIENTRY __FPU_CW_GpiQuerySegmentNames (HPS hps, LONG lFirstSegid, LONG lLastSegid,    LONG lMax, PLONG alSegids)
    4164 {
     4682extern inline LONG APIENTRY __FPU_CW_GpiQuerySegmentNames (HPS hps, LONG lFirstSegid, LONG lLastSegid,    LONG lMax, PLONG alSegids)
     4683{
     4684    unsigned int cw = __FPU_CW_Get();
    41654685    LONG ret = GpiQuerySegmentNames (hps, lFirstSegid, lLastSegid,    lMax, alSegids);
    4166     __FPU_CW_Restore();
     4686    __FPU_CW_Set(cw);
    41674687    return ret;
    41684688}
    41694689#define GpiQuerySegmentNames __FPU_CW_GpiQuerySegmentNames
    41704690
    4171 inline LONG APIENTRY __FPU_CW_GpiQuerySegmentPriority (HPS hps, LONG lRefSegid, LONG lOrder)
    4172 {
     4691extern inline LONG APIENTRY __FPU_CW_GpiQuerySegmentPriority (HPS hps, LONG lRefSegid, LONG lOrder)
     4692{
     4693    unsigned int cw = __FPU_CW_Get();
    41734694    LONG ret = GpiQuerySegmentPriority (hps, lRefSegid, lOrder);
    4174     __FPU_CW_Restore();
     4695    __FPU_CW_Set(cw);
    41754696    return ret;
    41764697}
    41774698#define GpiQuerySegmentPriority __FPU_CW_GpiQuerySegmentPriority
    41784699
    4179 inline BOOL APIENTRY __FPU_CW_GpiRemoveDynamics (HPS hps, LONG lFirstSegid, LONG lLastSegid)
    4180 {
     4700extern inline BOOL APIENTRY __FPU_CW_GpiRemoveDynamics (HPS hps, LONG lFirstSegid, LONG lLastSegid)
     4701{
     4702    unsigned int cw = __FPU_CW_Get();
    41814703    BOOL ret = GpiRemoveDynamics (hps, lFirstSegid, lLastSegid);
    4182     __FPU_CW_Restore();
     4704    __FPU_CW_Set(cw);
    41834705    return ret;
    41844706}
    41854707#define GpiRemoveDynamics __FPU_CW_GpiRemoveDynamics
    41864708
    4187 inline BOOL APIENTRY __FPU_CW_GpiSetInitialSegmentAttrs (HPS hps, LONG lAttribute, LONG lValue)
    4188 {
     4709extern inline BOOL APIENTRY __FPU_CW_GpiSetInitialSegmentAttrs (HPS hps, LONG lAttribute, LONG lValue)
     4710{
     4711    unsigned int cw = __FPU_CW_Get();
    41894712    BOOL ret = GpiSetInitialSegmentAttrs (hps, lAttribute, lValue);
    4190     __FPU_CW_Restore();
     4713    __FPU_CW_Set(cw);
    41914714    return ret;
    41924715}
    41934716#define GpiSetInitialSegmentAttrs __FPU_CW_GpiSetInitialSegmentAttrs
    41944717
    4195 inline BOOL APIENTRY __FPU_CW_GpiSetSegmentAttrs (HPS hps, LONG lSegid, LONG lAttribute, LONG lValue)
    4196 {
     4718extern inline BOOL APIENTRY __FPU_CW_GpiSetSegmentAttrs (HPS hps, LONG lSegid, LONG lAttribute, LONG lValue)
     4719{
     4720    unsigned int cw = __FPU_CW_Get();
    41974721    BOOL ret = GpiSetSegmentAttrs (hps, lSegid, lAttribute, lValue);
    4198     __FPU_CW_Restore();
     4722    __FPU_CW_Set(cw);
    41994723    return ret;
    42004724}
    42014725#define GpiSetSegmentAttrs __FPU_CW_GpiSetSegmentAttrs
    42024726
    4203 inline BOOL APIENTRY __FPU_CW_GpiSetSegmentPriority (HPS hps, LONG lSegid, LONG lRefSegid, LONG lOrder)
    4204 {
     4727extern inline BOOL APIENTRY __FPU_CW_GpiSetSegmentPriority (HPS hps, LONG lSegid, LONG lRefSegid, LONG lOrder)
     4728{
     4729    unsigned int cw = __FPU_CW_Get();
    42054730    BOOL ret = GpiSetSegmentPriority (hps, lSegid, lRefSegid, lOrder);
    4206     __FPU_CW_Restore();
     4731    __FPU_CW_Set(cw);
    42074732    return ret;
    42084733}
    42094734#define GpiSetSegmentPriority __FPU_CW_GpiSetSegmentPriority
    42104735
    4211 inline HAPP APIENTRY __FPU_CW_WinStartApp (HWND hwndNotify, PPROGDETAILS pDetails,    PCSZ pszParams, PVOID Reserved, ULONG fbOptions)
    4212 {
     4736extern inline HAPP APIENTRY __FPU_CW_WinStartApp (HWND hwndNotify, PPROGDETAILS pDetails,    PCSZ pszParams, PVOID Reserved, ULONG fbOptions)
     4737{
     4738    unsigned int cw = __FPU_CW_Get();
    42134739    HAPP ret = WinStartApp (hwndNotify, pDetails,    pszParams, Reserved, fbOptions);
    4214     __FPU_CW_Restore();
     4740    __FPU_CW_Set(cw);
    42154741    return ret;
    42164742}
    42174743#define WinStartApp __FPU_CW_WinStartApp
    42184744
    4219 inline BOOL APIENTRY __FPU_CW_WinTerminateApp (HAPP happ)
    4220 {
     4745extern inline BOOL APIENTRY __FPU_CW_WinTerminateApp (HAPP happ)
     4746{
     4747    unsigned int cw = __FPU_CW_Get();
    42214748    BOOL ret = WinTerminateApp (happ);
    4222     __FPU_CW_Restore();
     4749    __FPU_CW_Set(cw);
    42234750    return ret;
    42244751}
    42254752#define WinTerminateApp __FPU_CW_WinTerminateApp
    42264753
    4227 inline HSWITCH APIENTRY __FPU_CW_WinAddSwitchEntry (__const__ SWCNTRL *pswctl)
    4228 {
     4754extern inline HSWITCH APIENTRY __FPU_CW_WinAddSwitchEntry (__const__ SWCNTRL *pswctl)
     4755{
     4756    unsigned int cw = __FPU_CW_Get();
    42294757    HSWITCH ret = WinAddSwitchEntry (pswctl);
    4230     __FPU_CW_Restore();
     4758    __FPU_CW_Set(cw);
    42314759    return ret;
    42324760}
    42334761#define WinAddSwitchEntry __FPU_CW_WinAddSwitchEntry
    42344762
    4235 inline ULONG APIENTRY __FPU_CW_WinRemoveSwitchEntry (HSWITCH hsw)
    4236 {
     4763extern inline ULONG APIENTRY __FPU_CW_WinRemoveSwitchEntry (HSWITCH hsw)
     4764{
     4765    unsigned int cw = __FPU_CW_Get();
    42374766    ULONG ret = WinRemoveSwitchEntry (hsw);
    4238     __FPU_CW_Restore();
     4767    __FPU_CW_Set(cw);
    42394768    return ret;
    42404769}
    42414770#define WinRemoveSwitchEntry __FPU_CW_WinRemoveSwitchEntry
    42424771
    4243 inline ULONG APIENTRY __FPU_CW_WinChangeSwitchEntry (HSWITCH hsw, __const__ SWCNTRL *pswctl)
    4244 {
     4772extern inline ULONG APIENTRY __FPU_CW_WinChangeSwitchEntry (HSWITCH hsw, __const__ SWCNTRL *pswctl)
     4773{
     4774    unsigned int cw = __FPU_CW_Get();
    42454775    ULONG ret = WinChangeSwitchEntry (hsw, pswctl);
    4246     __FPU_CW_Restore();
     4776    __FPU_CW_Set(cw);
    42474777    return ret;
    42484778}
    42494779#define WinChangeSwitchEntry __FPU_CW_WinChangeSwitchEntry
    42504780
    4251 inline HSWITCH APIENTRY __FPU_CW_WinCreateSwitchEntry (HAB hab, __const__ SWCNTRL *pswctl)
    4252 {
     4781extern inline HSWITCH APIENTRY __FPU_CW_WinCreateSwitchEntry (HAB hab, __const__ SWCNTRL *pswctl)
     4782{
     4783    unsigned int cw = __FPU_CW_Get();
    42534784    HSWITCH ret = WinCreateSwitchEntry (hab, pswctl);
    4254     __FPU_CW_Restore();
     4785    __FPU_CW_Set(cw);
    42554786    return ret;
    42564787}
    42574788#define WinCreateSwitchEntry __FPU_CW_WinCreateSwitchEntry
    42584789
    4259 inline ULONG APIENTRY __FPU_CW_WinQuerySessionTitle (HAB hab, ULONG usSession, PSZ pszTitle,    ULONG usTitlelen)
    4260 {
     4790extern inline ULONG APIENTRY __FPU_CW_WinQuerySessionTitle (HAB hab, ULONG usSession, PSZ pszTitle,    ULONG usTitlelen)
     4791{
     4792    unsigned int cw = __FPU_CW_Get();
    42614793    ULONG ret = WinQuerySessionTitle (hab, usSession, pszTitle,    usTitlelen);
    4262     __FPU_CW_Restore();
     4794    __FPU_CW_Set(cw);
    42634795    return ret;
    42644796}
    42654797#define WinQuerySessionTitle __FPU_CW_WinQuerySessionTitle
    42664798
    4267 inline ULONG APIENTRY __FPU_CW_WinQuerySwitchEntry (HSWITCH hsw, PSWCNTRL pswctl)
    4268 {
     4799extern inline ULONG APIENTRY __FPU_CW_WinQuerySwitchEntry (HSWITCH hsw, PSWCNTRL pswctl)
     4800{
     4801    unsigned int cw = __FPU_CW_Get();
    42694802    ULONG ret = WinQuerySwitchEntry (hsw, pswctl);
    4270     __FPU_CW_Restore();
     4803    __FPU_CW_Set(cw);
    42714804    return ret;
    42724805}
    42734806#define WinQuerySwitchEntry __FPU_CW_WinQuerySwitchEntry
    42744807
    4275 inline HSWITCH APIENTRY __FPU_CW_WinQuerySwitchHandle (HWND hwnd, PID pid)
    4276 {
     4808extern inline HSWITCH APIENTRY __FPU_CW_WinQuerySwitchHandle (HWND hwnd, PID pid)
     4809{
     4810    unsigned int cw = __FPU_CW_Get();
    42774811    HSWITCH ret = WinQuerySwitchHandle (hwnd, pid);
    4278     __FPU_CW_Restore();
     4812    __FPU_CW_Set(cw);
    42794813    return ret;
    42804814}
    42814815#define WinQuerySwitchHandle __FPU_CW_WinQuerySwitchHandle
    42824816
    4283 inline ULONG APIENTRY __FPU_CW_WinQuerySwitchList (HAB hab, PSWBLOCK pswblk, ULONG usDataLength)
    4284 {
     4817extern inline ULONG APIENTRY __FPU_CW_WinQuerySwitchList (HAB hab, PSWBLOCK pswblk, ULONG usDataLength)
     4818{
     4819    unsigned int cw = __FPU_CW_Get();
    42854820    ULONG ret = WinQuerySwitchList (hab, pswblk, usDataLength);
    4286     __FPU_CW_Restore();
     4821    __FPU_CW_Set(cw);
    42874822    return ret;
    42884823}
    42894824#define WinQuerySwitchList __FPU_CW_WinQuerySwitchList
    42904825
    4291 inline ULONG APIENTRY __FPU_CW_WinQueryTaskSizePos (HAB hab, ULONG usScreenGroup, PSWP pswp)
    4292 {
     4826extern inline ULONG APIENTRY __FPU_CW_WinQueryTaskSizePos (HAB hab, ULONG usScreenGroup, PSWP pswp)
     4827{
     4828    unsigned int cw = __FPU_CW_Get();
    42934829    ULONG ret = WinQueryTaskSizePos (hab, usScreenGroup, pswp);
    4294     __FPU_CW_Restore();
     4830    __FPU_CW_Set(cw);
    42954831    return ret;
    42964832}
    42974833#define WinQueryTaskSizePos __FPU_CW_WinQueryTaskSizePos
    42984834
    4299 inline ULONG APIENTRY __FPU_CW_WinQueryTaskTitle (ULONG usSession, PSZ pszTitle, ULONG usTitlelen)
    4300 {
     4835extern inline ULONG APIENTRY __FPU_CW_WinQueryTaskTitle (ULONG usSession, PSZ pszTitle, ULONG usTitlelen)
     4836{
     4837    unsigned int cw = __FPU_CW_Get();
    43014838    ULONG ret = WinQueryTaskTitle (usSession, pszTitle, usTitlelen);
    4302     __FPU_CW_Restore();
     4839    __FPU_CW_Set(cw);
    43034840    return ret;
    43044841}
    43054842#define WinQueryTaskTitle __FPU_CW_WinQueryTaskTitle
    43064843
    4307 inline ULONG APIENTRY __FPU_CW_WinSwitchToProgram (HSWITCH hsw)
    4308 {
     4844extern inline ULONG APIENTRY __FPU_CW_WinSwitchToProgram (HSWITCH hsw)
     4845{
     4846    unsigned int cw = __FPU_CW_Get();
    43094847    ULONG ret = WinSwitchToProgram (hsw);
    4310     __FPU_CW_Restore();
     4848    __FPU_CW_Set(cw);
    43114849    return ret;
    43124850}
    43134851#define WinSwitchToProgram __FPU_CW_WinSwitchToProgram
    43144852
    4315 inline MRESULT APIENTRY __FPU_CW_WinDefFileDlgProc (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
    4316 {
     4853extern inline MRESULT APIENTRY __FPU_CW_WinDefFileDlgProc (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
     4854{
     4855    unsigned int cw = __FPU_CW_Get();
    43174856    MRESULT ret = WinDefFileDlgProc (hwnd, msg, mp1, mp2);
    4318     __FPU_CW_Restore();
     4857    __FPU_CW_Set(cw);
    43194858    return ret;
    43204859}
    43214860#define WinDefFileDlgProc __FPU_CW_WinDefFileDlgProc
    43224861
    4323 inline HWND APIENTRY __FPU_CW_WinFileDlg (HWND hwndP, HWND hwndO, PFILEDLG pfild)
    4324 {
     4862extern inline HWND APIENTRY __FPU_CW_WinFileDlg (HWND hwndP, HWND hwndO, PFILEDLG pfild)
     4863{
     4864    unsigned int cw = __FPU_CW_Get();
    43254865    HWND ret = WinFileDlg (hwndP, hwndO, pfild);
    4326     __FPU_CW_Restore();
     4866    __FPU_CW_Set(cw);
    43274867    return ret;
    43284868}
    43294869#define WinFileDlg __FPU_CW_WinFileDlg
    43304870
    4331 inline BOOL APIENTRY __FPU_CW_WinFreeFileDlgList (PAPSZ papszFQFilename)
    4332 {
     4871extern inline BOOL APIENTRY __FPU_CW_WinFreeFileDlgList (PAPSZ papszFQFilename)
     4872{
     4873    unsigned int cw = __FPU_CW_Get();
    43334874    BOOL ret = WinFreeFileDlgList (papszFQFilename);
    4334     __FPU_CW_Restore();
     4875    __FPU_CW_Set(cw);
    43354876    return ret;
    43364877}
    43374878#define WinFreeFileDlgList __FPU_CW_WinFreeFileDlgList
    43384879
    4339 inline HWND APIENTRY __FPU_CW_WinFontDlg (HWND hwndP, HWND hwndO, PFONTDLG pfntd)
    4340 {
     4880extern inline HWND APIENTRY __FPU_CW_WinFontDlg (HWND hwndP, HWND hwndO, PFONTDLG pfntd)
     4881{
     4882    unsigned int cw = __FPU_CW_Get();
    43414883    HWND ret = WinFontDlg (hwndP, hwndO, pfntd);
    4342     __FPU_CW_Restore();
     4884    __FPU_CW_Set(cw);
    43434885    return ret;
    43444886}
    43454887#define WinFontDlg __FPU_CW_WinFontDlg
    43464888
    4347 inline MRESULT APIENTRY __FPU_CW_WinDefFontDlgProc (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
    4348 {
     4889extern inline MRESULT APIENTRY __FPU_CW_WinDefFontDlgProc (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
     4890{
     4891    unsigned int cw = __FPU_CW_Get();
    43494892    MRESULT ret = WinDefFontDlgProc (hwnd, msg, mp1, mp2);
    4350     __FPU_CW_Restore();
     4893    __FPU_CW_Set(cw);
    43514894    return ret;
    43524895}
    43534896#define WinDefFontDlgProc __FPU_CW_WinDefFontDlgProc
    43544897
    4355 inline HOBJECT APIENTRY __FPU_CW_WinCopyObject (HOBJECT hObjectofObject, HOBJECT hObjectofDest,    ULONG ulReserved)
    4356 {
     4898extern inline HOBJECT APIENTRY __FPU_CW_WinCopyObject (HOBJECT hObjectofObject, HOBJECT hObjectofDest,    ULONG ulReserved)
     4899{
     4900    unsigned int cw = __FPU_CW_Get();
    43574901    HOBJECT ret = WinCopyObject (hObjectofObject, hObjectofDest,    ulReserved);
    4358     __FPU_CW_Restore();
     4902    __FPU_CW_Set(cw);
    43594903    return ret;
    43604904}
    43614905#define WinCopyObject __FPU_CW_WinCopyObject
    43624906
    4363 inline HOBJECT APIENTRY __FPU_CW_WinCreateObject (PCSZ pszClassName, PCSZ pszTitle, PCSZ pszSetupString,    PCSZ pszLocation, ULONG ulFlags)
    4364 {
     4907extern inline HOBJECT APIENTRY __FPU_CW_WinCreateObject (PCSZ pszClassName, PCSZ pszTitle, PCSZ pszSetupString,    PCSZ pszLocation, ULONG ulFlags)
     4908{
     4909    unsigned int cw = __FPU_CW_Get();
    43654910    HOBJECT ret = WinCreateObject (pszClassName, pszTitle, pszSetupString,    pszLocation, ulFlags);
    4366     __FPU_CW_Restore();
     4911    __FPU_CW_Set(cw);
    43674912    return ret;
    43684913}
    43694914#define WinCreateObject __FPU_CW_WinCreateObject
    43704915
    4371 inline HOBJECT APIENTRY __FPU_CW_WinCreateShadow (HOBJECT hObjectofObject, HOBJECT hObjectofDest,    ULONG ulReserved)
    4372 {
     4916extern inline HOBJECT APIENTRY __FPU_CW_WinCreateShadow (HOBJECT hObjectofObject, HOBJECT hObjectofDest,    ULONG ulReserved)
     4917{
     4918    unsigned int cw = __FPU_CW_Get();
    43734919    HOBJECT ret = WinCreateShadow (hObjectofObject, hObjectofDest,    ulReserved);
    4374     __FPU_CW_Restore();
     4920    __FPU_CW_Set(cw);
    43754921    return ret;
    43764922}
    43774923#define WinCreateShadow __FPU_CW_WinCreateShadow
    43784924
    4379 inline BOOL APIENTRY __FPU_CW_WinDeregisterObjectClass (PCSZ pszClassName)
    4380 {
     4925extern inline BOOL APIENTRY __FPU_CW_WinDeregisterObjectClass (PCSZ pszClassName)
     4926{
     4927    unsigned int cw = __FPU_CW_Get();
    43814928    BOOL ret = WinDeregisterObjectClass (pszClassName);
    4382     __FPU_CW_Restore();
     4929    __FPU_CW_Set(cw);
    43834930    return ret;
    43844931}
    43854932#define WinDeregisterObjectClass __FPU_CW_WinDeregisterObjectClass
    43864933
    4387 inline BOOL APIENTRY __FPU_CW_WinDestroyObject (HOBJECT hObject)
    4388 {
     4934extern inline BOOL APIENTRY __FPU_CW_WinDestroyObject (HOBJECT hObject)
     4935{
     4936    unsigned int cw = __FPU_CW_Get();
    43894937    BOOL ret = WinDestroyObject (hObject);
    4390     __FPU_CW_Restore();
     4938    __FPU_CW_Set(cw);
    43914939    return ret;
    43924940}
    43934941#define WinDestroyObject __FPU_CW_WinDestroyObject
    43944942
    4395 inline BOOL APIENTRY __FPU_CW_WinEnumObjectClasses (POBJCLASS pObjClass, PULONG pulSize)
    4396 {
     4943extern inline BOOL APIENTRY __FPU_CW_WinEnumObjectClasses (POBJCLASS pObjClass, PULONG pulSize)
     4944{
     4945    unsigned int cw = __FPU_CW_Get();
    43974946    BOOL ret = WinEnumObjectClasses (pObjClass, pulSize);
    4398     __FPU_CW_Restore();
     4947    __FPU_CW_Set(cw);
    43994948    return ret;
    44004949}
    44014950#define WinEnumObjectClasses __FPU_CW_WinEnumObjectClasses
    44024951
    4403 inline BOOL APIENTRY __FPU_CW_WinIsSOMDDReady (VOID)
    4404 {
     4952extern inline BOOL APIENTRY __FPU_CW_WinIsSOMDDReady (VOID)
     4953{
     4954    unsigned int cw = __FPU_CW_Get();
    44054955    BOOL ret = WinIsSOMDDReady ();
    4406     __FPU_CW_Restore();
     4956    __FPU_CW_Set(cw);
    44074957    return ret;
    44084958}
    44094959#define WinIsSOMDDReady __FPU_CW_WinIsSOMDDReady
    44104960
    4411 inline BOOL APIENTRY __FPU_CW_WinIsWPDServerReady (VOID)
    4412 {
     4961extern inline BOOL APIENTRY __FPU_CW_WinIsWPDServerReady (VOID)
     4962{
     4963    unsigned int cw = __FPU_CW_Get();
    44134964    BOOL ret = WinIsWPDServerReady ();
    4414     __FPU_CW_Restore();
     4965    __FPU_CW_Set(cw);
    44154966    return ret;
    44164967}
    44174968#define WinIsWPDServerReady __FPU_CW_WinIsWPDServerReady
    44184969
    4419 inline HOBJECT APIENTRY __FPU_CW_WinMoveObject (HOBJECT hObjectofObject, HOBJECT hObjectofDest,    ULONG ulReserved)
    4420 {
     4970extern inline HOBJECT APIENTRY __FPU_CW_WinMoveObject (HOBJECT hObjectofObject, HOBJECT hObjectofDest,    ULONG ulReserved)
     4971{
     4972    unsigned int cw = __FPU_CW_Get();
    44214973    HOBJECT ret = WinMoveObject (hObjectofObject, hObjectofDest,    ulReserved);
    4422     __FPU_CW_Restore();
     4974    __FPU_CW_Set(cw);
    44234975    return ret;
    44244976}
    44254977#define WinMoveObject __FPU_CW_WinMoveObject
    44264978
    4427 inline BOOL APIENTRY __FPU_CW_WinOpenObject (HOBJECT hObject, ULONG ulView, BOOL fFlag)
    4428 {
     4979extern inline BOOL APIENTRY __FPU_CW_WinOpenObject (HOBJECT hObject, ULONG ulView, BOOL fFlag)
     4980{
     4981    unsigned int cw = __FPU_CW_Get();
    44294982    BOOL ret = WinOpenObject (hObject, ulView, fFlag);
    4430     __FPU_CW_Restore();
     4983    __FPU_CW_Set(cw);
    44314984    return ret;
    44324985}
    44334986#define WinOpenObject __FPU_CW_WinOpenObject
    44344987
    4435 inline BOOL APIENTRY __FPU_CW_WinQueryActiveDesktopPathname (PSZ pszPathName, ULONG ulSize)
    4436 {
     4988extern inline BOOL APIENTRY __FPU_CW_WinQueryActiveDesktopPathname (PSZ pszPathName, ULONG ulSize)
     4989{
     4990    unsigned int cw = __FPU_CW_Get();
    44374991    BOOL ret = WinQueryActiveDesktopPathname (pszPathName, ulSize);
    4438     __FPU_CW_Restore();
     4992    __FPU_CW_Set(cw);
    44394993    return ret;
    44404994}
    44414995#define WinQueryActiveDesktopPathname __FPU_CW_WinQueryActiveDesktopPathname
    44424996
    4443 inline HOBJECT APIENTRY __FPU_CW_WinQueryObject (PCSZ pszObjectID)
    4444 {
     4997extern inline HOBJECT APIENTRY __FPU_CW_WinQueryObject (PCSZ pszObjectID)
     4998{
     4999    unsigned int cw = __FPU_CW_Get();
    44455000    HOBJECT ret = WinQueryObject (pszObjectID);
    4446     __FPU_CW_Restore();
     5001    __FPU_CW_Set(cw);
    44475002    return ret;
    44485003}
    44495004#define WinQueryObject __FPU_CW_WinQueryObject
    44505005
    4451 inline BOOL APIENTRY __FPU_CW_WinQueryObjectPath (HOBJECT hobject, PSZ pszPathName, ULONG ulSize)
    4452 {
     5006extern inline BOOL APIENTRY __FPU_CW_WinQueryObjectPath (HOBJECT hobject, PSZ pszPathName, ULONG ulSize)
     5007{
     5008    unsigned int cw = __FPU_CW_Get();
    44535009    BOOL ret = WinQueryObjectPath (hobject, pszPathName, ulSize);
    4454     __FPU_CW_Restore();
     5010    __FPU_CW_Set(cw);
    44555011    return ret;
    44565012}
    44575013#define WinQueryObjectPath __FPU_CW_WinQueryObjectPath
    44585014
    4459 inline BOOL APIENTRY __FPU_CW_WinRegisterObjectClass (PCSZ pszClassName, PCSZ pszModName)
    4460 {
     5015extern inline BOOL APIENTRY __FPU_CW_WinRegisterObjectClass (PCSZ pszClassName, PCSZ pszModName)
     5016{
     5017    unsigned int cw = __FPU_CW_Get();
    44615018    BOOL ret = WinRegisterObjectClass (pszClassName, pszModName);
    4462     __FPU_CW_Restore();
     5019    __FPU_CW_Set(cw);
    44635020    return ret;
    44645021}
    44655022#define WinRegisterObjectClass __FPU_CW_WinRegisterObjectClass
    44665023
    4467 inline BOOL APIENTRY __FPU_CW_WinReplaceObjectClass (PCSZ pszOldClassName, PCSZ pszNewClassName,    BOOL fReplace)
    4468 {
     5024extern inline BOOL APIENTRY __FPU_CW_WinReplaceObjectClass (PCSZ pszOldClassName, PCSZ pszNewClassName,    BOOL fReplace)
     5025{
     5026    unsigned int cw = __FPU_CW_Get();
    44695027    BOOL ret = WinReplaceObjectClass (pszOldClassName, pszNewClassName,    fReplace);
    4470     __FPU_CW_Restore();
     5028    __FPU_CW_Set(cw);
    44715029    return ret;
    44725030}
    44735031#define WinReplaceObjectClass __FPU_CW_WinReplaceObjectClass
    44745032
    4475 inline ULONG APIENTRY __FPU_CW_WinRestartSOMDD (BOOL fState)
    4476 {
     5033extern inline ULONG APIENTRY __FPU_CW_WinRestartSOMDD (BOOL fState)
     5034{
     5035    unsigned int cw = __FPU_CW_Get();
    44775036    ULONG ret = WinRestartSOMDD (fState);
    4478     __FPU_CW_Restore();
     5037    __FPU_CW_Set(cw);
    44795038    return ret;
    44805039}
    44815040#define WinRestartSOMDD __FPU_CW_WinRestartSOMDD
    44825041
    4483 inline ULONG APIENTRY __FPU_CW_WinRestartWPDServer (BOOL fState)
    4484 {
     5042extern inline ULONG APIENTRY __FPU_CW_WinRestartWPDServer (BOOL fState)
     5043{
     5044    unsigned int cw = __FPU_CW_Get();
    44855045    ULONG ret = WinRestartWPDServer (fState);
    4486     __FPU_CW_Restore();
     5046    __FPU_CW_Set(cw);
    44875047    return ret;
    44885048}
    44895049#define WinRestartWPDServer __FPU_CW_WinRestartWPDServer
    44905050
    4491 inline BOOL APIENTRY __FPU_CW_WinSaveObject (HOBJECT hObject, BOOL fAsync)
    4492 {
     5051extern inline BOOL APIENTRY __FPU_CW_WinSaveObject (HOBJECT hObject, BOOL fAsync)
     5052{
     5053    unsigned int cw = __FPU_CW_Get();
    44935054    BOOL ret = WinSaveObject (hObject, fAsync);
    4494     __FPU_CW_Restore();
     5055    __FPU_CW_Set(cw);
    44955056    return ret;
    44965057}
    44975058#define WinSaveObject __FPU_CW_WinSaveObject
    44985059
    4499 inline BOOL APIENTRY __FPU_CW_WinSetObjectData (HOBJECT hObject, PCSZ pszSetupString)
    4500 {
     5060extern inline BOOL APIENTRY __FPU_CW_WinSetObjectData (HOBJECT hObject, PCSZ pszSetupString)
     5061{
     5062    unsigned int cw = __FPU_CW_Get();
    45015063    BOOL ret = WinSetObjectData (hObject, pszSetupString);
    4502     __FPU_CW_Restore();
     5064    __FPU_CW_Set(cw);
    45035065    return ret;
    45045066}
    45055067#define WinSetObjectData __FPU_CW_WinSetObjectData
    45065068
    4507 inline BOOL APIENTRY __FPU_CW_WinFreeFileIcon (HPOINTER hptr)
    4508 {
     5069extern inline BOOL APIENTRY __FPU_CW_WinFreeFileIcon (HPOINTER hptr)
     5070{
     5071    unsigned int cw = __FPU_CW_Get();
    45095072    BOOL ret = WinFreeFileIcon (hptr);
    4510     __FPU_CW_Restore();
     5073    __FPU_CW_Set(cw);
    45115074    return ret;
    45125075}
    45135076#define WinFreeFileIcon __FPU_CW_WinFreeFileIcon
    45145077
    4515 inline HPOINTER APIENTRY __FPU_CW_WinLoadFileIcon (PCSZ pszFileName, BOOL fPrivate)
    4516 {
     5078extern inline HPOINTER APIENTRY __FPU_CW_WinLoadFileIcon (PCSZ pszFileName, BOOL fPrivate)
     5079{
     5080    unsigned int cw = __FPU_CW_Get();
    45175081    HPOINTER ret = WinLoadFileIcon (pszFileName, fPrivate);
    4518     __FPU_CW_Restore();
     5082    __FPU_CW_Set(cw);
    45195083    return ret;
    45205084}
    45215085#define WinLoadFileIcon __FPU_CW_WinLoadFileIcon
    45225086
    4523 inline BOOL APIENTRY __FPU_CW_WinRestoreWindowPos (PCSZ pszAppName, PCSZ pszKeyName, HWND hwnd)
    4524 {
     5087extern inline BOOL APIENTRY __FPU_CW_WinRestoreWindowPos (PCSZ pszAppName, PCSZ pszKeyName, HWND hwnd)
     5088{
     5089    unsigned int cw = __FPU_CW_Get();
    45255090    BOOL ret = WinRestoreWindowPos (pszAppName, pszKeyName, hwnd);
    4526     __FPU_CW_Restore();
     5091    __FPU_CW_Set(cw);
    45275092    return ret;
    45285093}
    45295094#define WinRestoreWindowPos __FPU_CW_WinRestoreWindowPos
    45305095
    4531 inline BOOL APIENTRY __FPU_CW_WinSetFileIcon (PCSZ pszFileName, __const__ ICONINFO *pIconInfo)
    4532 {
     5096extern inline BOOL APIENTRY __FPU_CW_WinSetFileIcon (PCSZ pszFileName, __const__ ICONINFO *pIconInfo)
     5097{
     5098    unsigned int cw = __FPU_CW_Get();
    45335099    BOOL ret = WinSetFileIcon (pszFileName, pIconInfo);
    4534     __FPU_CW_Restore();
     5100    __FPU_CW_Set(cw);
    45355101    return ret;
    45365102}
    45375103#define WinSetFileIcon __FPU_CW_WinSetFileIcon
    45385104
    4539 inline BOOL APIENTRY __FPU_CW_WinShutdownSystem (HAB hab, HMQ hmq)
    4540 {
     5105extern inline BOOL APIENTRY __FPU_CW_WinShutdownSystem (HAB hab, HMQ hmq)
     5106{
     5107    unsigned int cw = __FPU_CW_Get();
    45415108    BOOL ret = WinShutdownSystem (hab, hmq);
    4542     __FPU_CW_Restore();
     5109    __FPU_CW_Set(cw);
    45435110    return ret;
    45445111}
    45455112#define WinShutdownSystem __FPU_CW_WinShutdownSystem
    45465113
    4547 inline BOOL APIENTRY __FPU_CW_WinStoreWindowPos (PCSZ pszAppName, PCSZ pszKeyName, HWND hwnd)
    4548 {
     5114extern inline BOOL APIENTRY __FPU_CW_WinStoreWindowPos (PCSZ pszAppName, PCSZ pszKeyName, HWND hwnd)
     5115{
     5116    unsigned int cw = __FPU_CW_Get();
    45495117    BOOL ret = WinStoreWindowPos (pszAppName, pszKeyName, hwnd);
    4550     __FPU_CW_Restore();
     5118    __FPU_CW_Set(cw);
    45515119    return ret;
    45525120}
    45535121#define WinStoreWindowPos __FPU_CW_WinStoreWindowPos
    45545122
    4555 inline BOOL APIENTRY __FPU_CW_WinAssociateHelpInstance (HWND hwndHelpInstance, HWND hwndApp)
    4556 {
     5123extern inline BOOL APIENTRY __FPU_CW_WinAssociateHelpInstance (HWND hwndHelpInstance, HWND hwndApp)
     5124{
     5125    unsigned int cw = __FPU_CW_Get();
    45575126    BOOL ret = WinAssociateHelpInstance (hwndHelpInstance, hwndApp);
    4558     __FPU_CW_Restore();
     5127    __FPU_CW_Set(cw);
    45595128    return ret;
    45605129}
    45615130#define WinAssociateHelpInstance __FPU_CW_WinAssociateHelpInstance
    45625131
    4563 inline HWND APIENTRY __FPU_CW_WinCreateHelpInstance (HAB hab, PHELPINIT phinitHMInitStructure)
    4564 {
     5132extern inline HWND APIENTRY __FPU_CW_WinCreateHelpInstance (HAB hab, PHELPINIT phinitHMInitStructure)
     5133{
     5134    unsigned int cw = __FPU_CW_Get();
    45655135    HWND ret = WinCreateHelpInstance (hab, phinitHMInitStructure);
    4566     __FPU_CW_Restore();
     5136    __FPU_CW_Set(cw);
    45675137    return ret;
    45685138}
    45695139#define WinCreateHelpInstance __FPU_CW_WinCreateHelpInstance
    45705140
    4571 inline BOOL APIENTRY __FPU_CW_WinCreateHelpTable (HWND hwndHelpInstance,    __const__ HELPTABLE *phtHelpTable)
    4572 {
     5141extern inline BOOL APIENTRY __FPU_CW_WinCreateHelpTable (HWND hwndHelpInstance,    __const__ HELPTABLE *phtHelpTable)
     5142{
     5143    unsigned int cw = __FPU_CW_Get();
    45735144    BOOL ret = WinCreateHelpTable (hwndHelpInstance,    phtHelpTable);
    4574     __FPU_CW_Restore();
     5145    __FPU_CW_Set(cw);
    45755146    return ret;
    45765147}
    45775148#define WinCreateHelpTable __FPU_CW_WinCreateHelpTable
    45785149
    4579 inline BOOL APIENTRY __FPU_CW_WinDestroyHelpInstance (HWND hwndHelpInstance)
    4580 {
     5150extern inline BOOL APIENTRY __FPU_CW_WinDestroyHelpInstance (HWND hwndHelpInstance)
     5151{
     5152    unsigned int cw = __FPU_CW_Get();
    45815153    BOOL ret = WinDestroyHelpInstance (hwndHelpInstance);
    4582     __FPU_CW_Restore();
     5154    __FPU_CW_Set(cw);
    45835155    return ret;
    45845156}
    45855157#define WinDestroyHelpInstance __FPU_CW_WinDestroyHelpInstance
    45865158
    4587 inline BOOL APIENTRY __FPU_CW_WinLoadHelpTable (HWND hwndHelpInstance, ULONG idHelpTable,    HMODULE Module)
    4588 {
     5159extern inline BOOL APIENTRY __FPU_CW_WinLoadHelpTable (HWND hwndHelpInstance, ULONG idHelpTable,    HMODULE Module)
     5160{
     5161    unsigned int cw = __FPU_CW_Get();
    45895162    BOOL ret = WinLoadHelpTable (hwndHelpInstance, idHelpTable,    Module);
    4590     __FPU_CW_Restore();
     5163    __FPU_CW_Set(cw);
    45915164    return ret;
    45925165}
    45935166#define WinLoadHelpTable __FPU_CW_WinLoadHelpTable
    45945167
    4595 inline HWND APIENTRY __FPU_CW_WinQueryHelpInstance (HWND hwndApp)
    4596 {
     5168extern inline HWND APIENTRY __FPU_CW_WinQueryHelpInstance (HWND hwndApp)
     5169{
     5170    unsigned int cw = __FPU_CW_Get();
    45975171    HWND ret = WinQueryHelpInstance (hwndApp);
    4598     __FPU_CW_Restore();
     5172    __FPU_CW_Set(cw);
    45995173    return ret;
    46005174}
    46015175#define WinQueryHelpInstance __FPU_CW_WinQueryHelpInstance
    46025176
    4603 inline MRESULT APIENTRY __FPU_CW_WinDefAVioWindowProc (HWND hwnd, USHORT msg, ULONG mp1, ULONG mp2)
    4604 {
     5177extern inline MRESULT APIENTRY __FPU_CW_WinDefAVioWindowProc (HWND hwnd, USHORT msg, ULONG mp1, ULONG mp2)
     5178{
     5179    unsigned int cw = __FPU_CW_Get();
    46055180    MRESULT ret = WinDefAVioWindowProc (hwnd, msg, mp1, mp2);
    4606     __FPU_CW_Restore();
     5181    __FPU_CW_Set(cw);
    46075182    return ret;
    46085183}
  • trunk/src/corelib/global/qt_os2.h

    r659 r873  
    6969LONG APIENTRY WinQueryClipRegion(HWND hwnd, HRGN hrgnClip);
    7070
    71 inline LONG APIENTRY __FPU_CW_WinQueryClipRegion (HWND hwnd, HRGN hrgnClip)
     71extern inline LONG APIENTRY __FPU_CW_WinQueryClipRegion (HWND hwnd, HRGN hrgnClip)
    7272{
     73    unsigned int cw = __FPU_CW_Get();
    7374    LONG ret = WinQueryClipRegion (hwnd, hrgnClip);
    74     __FPU_CW_Restore();
     75    __FPU_CW_Set(cw);
    7576    return ret;
    7677}
     
    7980BOOL APIENTRY WinSetClipRegion(HWND hwnd, HRGN hrgnClip);
    8081
    81 inline LONG APIENTRY __FPU_CW_WinSetClipRegion (HWND hwnd, HRGN hrgnClip)
     82extern inline LONG APIENTRY __FPU_CW_WinSetClipRegion (HWND hwnd, HRGN hrgnClip)
    8283{
     84    unsigned int cw = __FPU_CW_Get();
    8385    LONG ret = WinSetClipRegion (hwnd, hrgnClip);
    84     __FPU_CW_Restore();
     86    __FPU_CW_Set(cw);
    8587    return ret;
    8688}
Note: See TracChangeset for help on using the changeset viewer.