Changeset 21916 for trunk/src/user32


Ignore:
Timestamp:
Dec 18, 2011, 10:28:22 PM (14 years ago)
Author:
dmik
Message:

Merge branch gcc-kmk to trunk.

Location:
trunk
Files:
5 deleted
80 edited
5 copied

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1 bin
        2 Makefile.inc
         1env.cmd
         2LocalConfig.kmk
    • Property svn:mergeinfo set to
      /branches/gcc-kmkmergedeligible
  • trunk/src/user32/caret.cpp

    r10379 r21916  
    2323#include <wprocess.h>
    2424#include <misc.h>
    25 #include <win32wbase.h>
     25#include "win32wbase.h"
    2626#include "oslibwin.h"
    2727#include <dcdata.h>
     
    4040#endif
    4141
    42 #pragma data_seg(_GLOBALDATA)
    43 
    44 static HWND hwndCaret = 0;
    45 static HBITMAP hbmCaret;
    46 static int CaretWidth, CaretHeight;
    47 static int CaretPosX, CaretPosY;
    48 static INT CaretIsVisible; //visible if > 0
    49 
    50 #pragma data_seg()
    51 
     42//
     43// Global DLL Data (keep it in sync with globaldata.asm!)
     44//
     45extern HWND hwndCaret; // = 0
     46extern HBITMAP hbmCaret; // = 0
     47extern int CaretWidth, CaretHeight; // = 0
     48extern int CaretPosX, CaretPosY; // = 0
     49extern INT CaretIsVisible; // =0, visible if > 0
     50
     51extern "C" {
    5252
    5353BOOL WIN32API CreateCaret (HWND hwnd, HBITMAP hBmp, int width, int height)
     
    262262}
    263263
     264} // extern "C"
     265
    264266void recreateCaret (HWND hwndFocus)
    265267{
  • trunk/src/user32/caret.h

    r2468 r21916  
    99
    1010extern void recreateCaret (HWND hwndFocus);
    11 extern BOOL WIN32API SetCaretPos (int x, int y);
    12 extern BOOL WIN32API GetCaretPos (PPOINT pPoint);
     11extern "C" BOOL WIN32API SetCaretPos (int x, int y);
     12extern "C" BOOL WIN32API GetCaretPos (PPOINT pPoint);
    1313
    1414
  • trunk/src/user32/clipboard.cpp

    r21573 r21916  
    276276                do { } while(0)
    277277#endif
     278extern "C" {
    278279UINT WIN32API   clipboardPMToOdinFormat(ULONG ulPMFormat);
    279280ULONG WIN32API  clipboardOdinToPMFormat(UINT uOdinFormat);
     281}
    280282static ULONG    clipboardAddDynFormat(UINT uFormat, const char *pszFormatName);
    281283static BOOL     clipboardIsRWOwner(void);
     
    321323 * @param   ulPMFormat  PM Clipboard format number.
    322324 */
    323 UINT       clipboardPMToOdinFormat(ULONG ulPMFormat)
     325UINT WIN32API clipboardPMToOdinFormat(ULONG ulPMFormat)
    324326{
    325327    for (int i = 0; i < sizeof(gaFormats) / sizeof(gaFormats[0]); i++)
     
    377379 * @todo    serialize this!
    378380 */
    379 ULONG    clipboardAddDynFormat(UINT uFormat, const char *pszFormatName)
     381ULONG clipboardAddDynFormat(UINT uFormat, const char *pszFormatName)
    380382{
    381383    char szFormat[64];
     
    432434 * @param   ulPMFormat  PM Clipboard format number.
    433435 */
    434 ULONG       clipboardOdinToPMFormat(UINT uOdinFormat)
     436ULONG WIN32API clipboardOdinToPMFormat(UINT uOdinFormat)
    435437{
    436438    if (uOdinFormat == 0)
     
    606608 * @returns Success indicator.
    607609 */
     610extern "C"
    608611BOOL WIN32API InitClipboardFormats(void)
    609612{
  • trunk/src/user32/combo.c

    r21356 r21916  
    14281428       switch( HIWORD(wParam) )
    14291429       {
    1430        case LBN_ERRSPACE:
     1430       case (WORD)LBN_ERRSPACE:
    14311431        CB_NOTIFY( lphc, CBN_ERRSPACE );
    14321432        break;
  • trunk/src/user32/controls/controls.h

    r8543 r21916  
    1010#define __CONTROLS_H
    1111
    12 #include <win\win.h>
     12#include <win/win.h>
    1313#include <heapstring.h>
    1414
  • trunk/src/user32/controls/initodinctrl.cpp

    r21649 r21916  
    6767         ParseLogStatusOdinCtrl();
    6868
    69          if (InitializeKernel32() == 0)
     69         if (!InitializeKernel32())
    7070             return 0;
    7171
  • trunk/src/user32/controls/initterm.cpp

    r8543 r21916  
    5151/* calling this function.                                                   */
    5252/****************************************************************************/
    53 ULONG DLLENTRYPOINT_CCONV DLLENTRYPOINT_NAME(ULONG hModule, ULONG ulFlag)
     53ULONG SYSTEM _DLL_InitTerm(ULONG hModule, ULONG ulFlag)
    5454{
    5555   size_t i;
  • trunk/src/user32/dbglocal.cpp

    r9930 r21916  
    2020USHORT DbgEnabledLvl2USER32[DBG_MAXFILES] = {0};
    2121
    22 static char *DbgFileNames[DBG_MAXFILES] =
     22static const char *DbgFileNames[DBG_MAXFILES] =
    2323{
    2424"user32",
  • trunk/src/user32/dbgwrap.cpp

    r21553 r21916  
    1616
    1717#define DBG_LOCALLOG    DBG_trace
    18 #include <dbglocal.h>
     18#include "dbglocal.h"
    1919
    2020#define DBGWRAP_MODULE "USER32"
  • trunk/src/user32/dc.cpp

    r21459 r21916  
    2828#include <winconst.h>
    2929#include <misc.h>
    30 #include <win32wbase.h>
    3130#include <math.h>
    3231#include <limits.h>
     32#include "win32wbase.h"
    3333#include "oslibwin.h"
    3434#include "oslibmsg.h"
     
    617617   return erased;
    618618}
     619
     620extern "C" {
     621
    619622//******************************************************************************
    620623//******************************************************************************
     
    12441247
    12451248        BytesNeeded = GetRegionData (hrgn, 0, NULL);
    1246         RgnData = (PRGNDATA)_alloca (BytesNeeded);
     1249        RgnData = (PRGNDATA)alloca (BytesNeeded);
    12471250        if (RgnData == NULL)
    12481251          goto error;
     
    17431746//******************************************************************************
    17441747
     1748} // extern "C"
  • trunk/src/user32/dc.h

    r10379 r21916  
    2121BOOL GetOS2UpdateRect(Win32BaseWindow *window,LPRECT pRect);
    2222
    23 int WIN32API GetUpdateRgnFrame(HWND hwnd, HRGN hrgn);
     23extern "C" int WIN32API GetUpdateRgnFrame(HWND hwnd, HRGN hrgn);
    2424
    2525#ifdef DEBUG
  • trunk/src/user32/dcrgn.cpp

    r10316 r21916  
    2727#include <winconst.h>
    2828#include <misc.h>
    29 #include <win32wbase.h>
    3029#include <math.h>
    3130#include <limits.h>
     31#include "win32wbase.h"
    3232#include "oslibwin.h"
    3333#include "oslibmsg.h"
     
    6565#endif
    6666
     67extern "C" {
     68
    6769//******************************************************************************
    6870//******************************************************************************
     
    342344//******************************************************************************
    343345//******************************************************************************
     346
     347} // extern "C"
  • trunk/src/user32/dib.h

    r4601 r21916  
    1919#define __DIB_H__
    2020
    21 //must use WIN32API as it's exported
     21#ifdef __cplusplus
     22extern "C" {
     23#endif
     24
     25// must use WIN32API as it's exported
    2226int WIN32API DIB_GetDIBWidthBytes( int width, int depth );
     27int  WIN32API BITMAP_GetWidthBytes( INT width, INT depth );
     28
     29#ifdef __cplusplus
     30} // extern "C"
     31#endif
    2332
    2433int DIB_GetDIBImageBytes( int width, int height, int depth );
     
    2736                              int *height, WORD *bpp, WORD *compr );
    2837void DIB_FixColorsToLoadflags(BITMAPINFO * bmi, UINT loadflags, BYTE pix);
    29 int  WIN32API BITMAP_GetWidthBytes( INT width, INT depth );
    3038
    3139#endif
  • trunk/src/user32/display.cpp

    r9974 r21916  
    2727#define NRMODES 5
    2828#define NRDEPTHS 4
    29 struct {
    30         int w,h;
     29static struct {
     30    int w,h;
    3131} modes[NRMODES]={{512,384},{640,400},{640,480},{800,600},{1024,768}};
    3232int depths[4] = {8,16,24,32};
  • trunk/src/user32/gen_object.cpp

    r10587 r21916  
    1515#include <misc.h>
    1616#include <win32type.h>
    17 #include <gen_object.h>
     17#include "gen_object.h"
    1818
    1919#define DBG_LOCALLOG    DBG_gen_object
  • trunk/src/user32/icon.cpp

    r9851 r21916  
    2121#include <string.h>
    2222#include <stdlib.h>
     23#include <string.h>
     24#ifndef __EMX__
    2325#include <iostream.h>
    24 #include <string.h>
     26#endif
    2527
    2628#include <win32api.h>
     
    271273  return (void *)iconhdr;
    272274}
     275
     276extern "C" {
     277
    273278//******************************************************************************
    274279//******************************************************************************
     
    465470//******************************************************************************
    466471//******************************************************************************
     472
     473} // extern "C"
  • trunk/src/user32/initterm.h

    r10595 r21916  
    1313#define __INITTERM_H__
    1414
     15#ifdef __cplusplus
     16extern "C" {
     17#endif
     18
    1519extern DWORD hInstanceUser32;
    1620extern BOOL  fVersionWarp3;
     
    2024BOOL WIN32API InitClipboardFormats(void);
    2125
     26#ifdef __cplusplus
     27} // extern "C"
     28#endif
     29
    2230#endif //__INITTERM_H__
  • trunk/src/user32/inituser32.cpp

    r21649 r21916  
    174174         ParseLogStatusUSER32();
    175175
    176          if (InitializeKernel32() == 0)
     176         if (!InitializeKernel32())
    177177             return 0;
    178178
  • trunk/src/user32/loadres.cpp

    r21303 r21916  
    1919 */
    2020#include <os2win.h>
    21 #include <user32.h>
     21#include "user32.h"
    2222#include <heapstring.h>
    23 #include <oslibres.h>
    24 #include <win\virtual.h>
     23#include "oslibres.h"
     24#include <win/virtual.h>
    2525#include "dib.h"
    2626#include "initterm.h"
     
    7070    hRes = FindResourceW(hinst, (LPWSTR)(((wID>>4)&0xffff)+1), RT_STRINGW);
    7171    if(hRes == NULL) {
    72         dprintf(("LoadStringW NOT FOUND from %X, id %d buffersize %d\n", hinst, wID, cchBuffer)); 
     72        dprintf(("LoadStringW NOT FOUND from %X, id %d buffersize %d\n", hinst, wID, cchBuffer));
    7373        *lpBuffer = 0;  //NT4, SP6 clears first character
    7474        return 0;
     
    342342    headersize = sizeof(BITMAPINFO)+colortablesize+3*sizeof(DWORD); //+ extra space for > 8bpp images
    343343
    344     pInfo = (BITMAPINFO *)malloc(headersize+bmpsize); 
     344    pInfo = (BITMAPINFO *)malloc(headersize+bmpsize);
    345345    if(pInfo == NULL) {
    346346        DebugInt3();
     
    360360    GetDIBits(hdc, hBitmap, 0, bm.bmHeight, pBitmapData, pInfo, DIB_RGB_COLORS);
    361361
    362     res = CreateDIBitmap(hdc, &pInfo->bmiHeader, CBM_INIT, pBitmapData, 
     362    res = CreateDIBitmap(hdc, &pInfo->bmiHeader, CBM_INIT, pBitmapData,
    363363                         pInfo, DIB_RGB_COLORS );
    364364
  • trunk/src/user32/mdi.c

    r21356 r21916  
    9999#ifdef __WIN32OS2__
    100100#include "mdi.h"
    101 #include <win32wmisc.h>
     101#include "win32wmisc.h"
    102102#else
    103103#define MDI_MAXLISTLENGTH       0x40
  • trunk/src/user32/mdi.h

    r6762 r21916  
    3434#define MDIF_NEEDUPDATE         0x0001
    3535
    36 LRESULT WINAPI MDIClientWndProcA( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam );
    37 LRESULT WINAPI MDIClientWndProcW( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam );
    38 
    3936typedef struct
    4037{
  • trunk/src/user32/menu.c

    r21356 r21916  
    757757    if (id && IS_MAGIC_ITEM( id ))
    758758    {
    759         switch(LOWORD(id))
     759        switch((HBITMAP)LOWORD(id))
    760760        {
    761761        case HBMMENU_SYSTEM:
     
    813813        RECT r;
    814814
    815         switch(LOWORD(lpitem->text))
     815        switch((HBITMAP)LOWORD(lpitem->text))
    816816        {
    817817        case HBMMENU_SYSTEM:
  • trunk/src/user32/message.cpp

    r21553 r21916  
    2121#include <os2win.h>
    2222#include <misc.h>
    23 #include <win32wbase.h>
     23#include "win32wbase.h"
    2424#include <win.h>
    2525#include <heapstring.h>
  • trunk/src/user32/msgbox.c

    r10190 r21916  
    88 *
    99 */
    10 #include <win\winbase.h>
    11 #include <win\winuser.h>
     10#include <win/winbase.h>
     11#include <win/winuser.h>
    1212#include <string.h>
    1313#include <dlgs.h>
  • trunk/src/user32/new/winmenu.cpp

    r2400 r21916  
    2525#include <stdlib.h>
    2626#include <string.h>
    27 #include <win32wbase.h>
     27#include "win32wbase.h"
    2828#include "oslibmenu.h"
    2929#include "oslibwin.h"
  • trunk/src/user32/oslibgdi.cpp

    r5685 r21916  
    1717#include <misc.h>
    1818#include <winconst.h>
    19 #include <oslibgdi.h>
    20 #include <oslibwin.h>
     19#include "oslibgdi.h"
     20#include "oslibwin.h"
    2121#include "win32wbase.h"
    2222
  • trunk/src/user32/oslibgdi.h

    r5685 r21916  
    1414
    1515#ifdef OS2_INCLUDED
    16 #include "win32type.h"
     16#include <win32type.h>
    1717#endif
    18 #include <win32wbase.h>
     18#include "win32wbase.h"
    1919
    2020typedef struct
  • trunk/src/user32/oslibkbd.cpp

    r9810 r21916  
    2626#include "dbglocal.h"
    2727
     28#ifdef __EMX__
     29
     30USHORT _THUNK_FUNCTION (Win16GetScanState) ();
     31USHORT APIENTRY WinGetScanState (HWND hwnd, USHORT vk)
     32{
     33    return ((USHORT)
     34            (_THUNK_PASCAL_PROLOG (4+2);
     35             _THUNK_PASCAL_LONG ((ULONG) hwnd);
     36             _THUNK_PASCAL_SHORT (vk);
     37             _THUNK_PASCAL_CALL (Win16GetScanState)));
     38}
     39
     40USHORT _THUNK_FUNCTION (Win16SetScanStateTable) ();
     41BOOL APIENTRY WinSetScanStateTable (HWND hwnd, PUCHAR pTable, BOOL bFlag)
     42{
     43    return ((BOOL)
     44            (_THUNK_PASCAL_PROLOG (4+4+4);
     45             _THUNK_PASCAL_LONG ((ULONG) hwnd);
     46             _THUNK_PASCAL_FLAT ((void *) pTable);
     47             _THUNK_PASCAL_LONG (bFlag);
     48             _THUNK_PASCAL_CALL (Win16SetScanStateTable)));
     49}
     50
     51#else
     52
    2853SHORT APIENTRY16 WinGetScanState( HWND, USHORT );
    2954BOOL  APIENTRY16 WinSetScanStateTable(HWND,unsigned char *,BOOL);
     55
     56#endif
    3057
    3158//******************************************************************************
  • trunk/src/user32/oslibmsg.cpp

    r21555 r21916  
    4949#include "pmwindow.h"
    5050#include "oslibwin.h"
    51 #include <win\hook.h>
     51#include <win/hook.h>
    5252#include <winscan.h>
    5353#include <winkeyboard.h>
  • trunk/src/user32/oslibmsgtranslate.cpp

    r21341 r21916  
    5353static MSG  doubleClickMsg = {0};
    5454
    55 extern UINT WINAPI GetACP(void); // from winnls.h
     55extern "C" UINT WINAPI GetACP(void); // from winnls.h
     56extern "C" UINT WIN32API clipboardPMToOdinFormat(ULONG ulPMFormat);
    5657
    5758//For wheel mouse translation
     
    9495{
    9596 ULONG ret;
    96  BYTE winKey;
     97 UCHAR winKey;
    9798
    9899  switch (pmScan)
     
    112113  }
    113114
    114   KeyTranslatePMScanToWinVKey(ret, FALSE, (PBYTE)&winKey, NULL, NULL);
     115  KeyTranslatePMScanToWinVKey(ret, FALSE, &winKey, NULL, NULL);
    115116  return winKey;
    116117
     
    759760
    760761        BOOL  fWinExtended;
    761         BYTE  bWinVKey;
     762        UCHAR uchWinVKey;
    762763        WORD  wWinScan;
    763764
     
    774775                // for Korean
    775776                case VK_DBE_HANJA :
    776                     bWinVKey = 0x19;
     777                    uchWinVKey = 0x19;
    777778                    break;
    778779
    779780                case VK_DBE_HANGEUL :
    780                     bWinVKey = 0x15;
     781                    uchWinVKey = 0x15;
    781782                    break;
    782783
    783784                case VK_DBE_JAMO :
    784                     bWinVKey = 0;
     785                    uchWinVKey = 0;
    785786                    break;
    786787
    787788                // for Japan
    788789                case VK_DBE_KATAKANA :
    789                     bWinVKey = 0;
     790                    uchWinVKey = 0;
    790791                    break;
    791792
    792793                case VK_DBE_HIRAGANA :
    793                     bWinVKey = 0;
     794                    uchWinVKey = 0;
    794795                    break;
    795796
    796797                case VK_DBE_SBCSCHAR :
    797                     bWinVKey = 0;
     798                    uchWinVKey = 0;
    798799                    break;
    799800
    800801                case VK_DBE_DBCSCHAR :
    801                     bWinVKey = 0;
     802                    uchWinVKey = 0;
    802803                    break;
    803804
    804805                case VK_DBE_SBCSDBCSCHAR :
    805                     bWinVKey = 0;
     806                    uchWinVKey = 0;
    806807                    break;
    807808
    808809                case VK_DBE_ROMAN :
    809                     bWinVKey = 0;
     810                    uchWinVKey = 0;
    810811                    break;
    811812
    812813                // for PRC-Chinese
    813814                case VK_DBE_HANZI :
    814                     bWinVKey = 0;
     815                    uchWinVKey = 0;
    815816                    break;
    816817
    817818                // for Taiwan
    818819                case VK_DBE_TSANGJYE :
    819                     bWinVKey = 0;
     820                    uchWinVKey = 0;
    820821                    break;
    821822
    822823                case VK_DBE_PHONETIC :
    823                     bWinVKey = 0;
     824                    uchWinVKey = 0;
    824825                    break;
    825826
    826827                case VK_DBE_CONV :
    827                     bWinVKey = 0;
     828                    uchWinVKey = 0;
    828829                    break;
    829830
    830831                case VK_DBE_NOCONV :
    831                     bWinVKey = 0;
     832                    uchWinVKey = 0;
    832833                    break;
    833834
     
    837838                        case 949 :  // Korea
    838839                        case 1361 :
    839                             bWinVKey = 0x15;
     840                            uchWinVKey = 0x15;
    840841                            break;
    841842
     
    849850                        case 950 :  // Taiwan
    850851                        default :
    851                             bWinVKey = 0;
     852                            uchWinVKey = 0;
    852853                    }
    853854                    break;
     
    856857                    KeyTranslatePMScanToWinVKey(usPMScanCode,
    857858                                                FALSE,
    858                                                 &bWinVKey,
     859                                                &uchWinVKey,
    859860                                                &wWinScan,
    860861                                                &fWinExtended);
    861862            }
    862863
    863             winMsg->wParam = bWinVKey;
     864            winMsg->wParam = uchWinVKey;
    864865        }
    865866        else
     
    11151116    case WM_RENDERFMT:
    11161117        winMsg->message = WINWM_RENDERFORMAT;
    1117         extern UINT WIN32API clipboardPMToOdinFormat(ULONG ulPMFormat);
    11181118        winMsg->wParam  = (UINT)clipboardPMToOdinFormat((ULONG)os2Msg->mp1);
    11191119        if (!winMsg->wParam)
  • trunk/src/user32/oslibprf.cpp

    r6327 r21916  
    1919#include "oslibprf.h"
    2020
    21 LONG OSLibPrfQueryProfileInt(OSLIB_HINI hini, char *pszApp, char *pszKey, LONG sDefault)
     21LONG OSLibPrfQueryProfileInt(OSLIB_HINI hini, const char *pszApp, const char *pszKey, LONG sDefault)
    2222{
    2323    return PrfQueryProfileInt(hini, pszApp, pszKey, sDefault);
    2424}
    2525
    26 LONG OSLibPrfQueryProfileString(OSLIB_HINI hini, char *pszApp, char *pszKey, char *pszDefault, char *buffer, ULONG buflen)
     26LONG OSLibPrfQueryProfileString(OSLIB_HINI hini, const char *pszApp, const char *pszKey, const char *pszDefault, char *buffer, ULONG buflen)
    2727{
    2828    return PrfQueryProfileString(hini, pszApp, pszKey, pszDefault, buffer, buflen);
  • trunk/src/user32/oslibprf.h

    r9854 r21916  
    2323extern "C" {
    2424
    25 LONG OSLibPrfQueryProfileInt(OSLIB_HINI hini, char *pszApp, char *pszKey, LONG sDefault);
    26 LONG OSLibPrfQueryProfileString(OSLIB_HINI hini, char *pszApp, char *pszKey, char *pszDefault, char *buffer, ULONG buflen);
     25LONG OSLibPrfQueryProfileInt(OSLIB_HINI hini, const char *pszApp, const char *pszKey, LONG sDefault);
     26LONG OSLibPrfQueryProfileString(OSLIB_HINI hini, const char *pszApp, const char *pszKey, const char *pszDefault, char *buffer, ULONG buflen);
    2727
    2828}
  • trunk/src/user32/oslibres.cpp

    r10540 r21916  
    276276    HPS hpsDest = 0;
    277277    SIZEL sizl = { 0, 0 };  /* use same page size as device         */
    278     DEVOPENSTRUC dop = {0L, "DISPLAY", NULL, 0L, 0L, 0L, 0L, 0L, 0L};
     278    DEVOPENSTRUC dop = {0L, (PSZ)"DISPLAY", NULL, 0L, 0L, 0L, 0L, 0L, 0L};
    279279    LONG lHits;
    280280    char *bmpbuffer = 0;
  • trunk/src/user32/oslibres.h

    r6168 r21916  
    1717#endif
    1818
    19 #include <win\cursoricon.h>
     19#include <win/cursoricon.h>
    2020
    2121#ifdef OS2_INCLUDED
  • trunk/src/user32/oslibwin.cpp

    r21544 r21916  
    969969PVOID OSLibWinSubclassWindow(HWND hwnd,PVOID newWndProc)
    970970{
    971   return WinSubclassWindow(hwnd,(PFNWP)newWndProc);
     971  return (PVOID)WinSubclassWindow(hwnd,(PFNWP)newWndProc);
    972972}
    973973//******************************************************************************
  • trunk/src/user32/oslibwin.h

    r10396 r21916  
    1515
    1616#ifdef __cplusplus
    17 #include <oslibgdi.h>
     17#include "oslibgdi.h"
    1818
    1919#ifndef WIN_INCLUDED
     
    332332}
    333333
     334#ifdef __cplusplus
     335extern "C" {
     336#endif
     337
    334338ULONG OSLibGetScreenHeight();
    335339ULONG OSLibGetScreenWidth();
     340
     341#ifdef __cplusplus
     342} // extern "C"
     343#endif
    336344
    337345BOOL   OSLibWinLockWindowUpdate(HWND hwnd);
  • trunk/src/user32/pmwindow.cpp

    r21556 r21916  
    3232#include <wprocess.h>
    3333#include <dbglog.h>
    34 #include <win32wbase.h>
    35 #include <win32wfake.h>
    36 #include <win32dlg.h>
     34#include "win32wbase.h"
     35#include "win32wfake.h"
     36#include "win32dlg.h"
    3737#include "win32wdesktop.h"
    3838#include "pmwindow.h"
     
    5757#include <oslibdnd.h>
    5858#include <custombuild.h>
    59 #include <win\dbt.h>
     59#include <win/dbt.h>
    6060#include "dragdrop.h"
    6161#include "menu.h"
     
    257257    HDC   hdc;              /* Device-context handle                */
    258258    /* context data structure */
    259     DEVOPENSTRUC dop = {NULL, "DISPLAY", NULL, NULL, NULL, NULL,
     259    DEVOPENSTRUC dop = {NULL, (PSZ)"DISPLAY", NULL, NULL, NULL, NULL,
    260260                        NULL, NULL, NULL};
    261261
     
    328328        HMODULE hModDisplay;
    329329        HDC   hdc;              /* Device-context handle                */
    330         DEVOPENSTRUC dop = {NULL, "DISPLAY", NULL, NULL, NULL, NULL,
     330        DEVOPENSTRUC dop = {NULL, (PSZ)"DISPLAY", NULL, NULL, NULL, NULL,
    331331                            NULL, NULL, NULL};
    332332
     
    25262526PVOID PMWinSubclassFakeWindow(HWND hwndOS2)
    25272527{
    2528     return WinSubclassWindow(hwndOS2, Win32FakeWindowProc);
     2528    return (PVOID)WinSubclassWindow(hwndOS2, Win32FakeWindowProc);
    25292529}
    25302530//******************************************************************************
     
    27472747//******************************************************************************
    27482748//******************************************************************************
    2749 char *WIN32API QueryCustomStdClassName()
     2749const char *WIN32API QueryCustomStdClassName()
    27502750{
    27512751   return WIN32_STDCLASS;
  • trunk/src/user32/pmwindow.h

    r10485 r21916  
    99#define __PMWINDOW_H__
    1010
    11 #include <win32wbase.h>
     11#include "win32wbase.h"
    1212
    1313extern char WIN32_STDCLASS[255];
  • trunk/src/user32/syscolor.cpp

    r9787 r21916  
    7575};
    7676
    77 static char* ColorNames[NUM_SYS_COLORS] =
     77static const char* ColorNames[NUM_SYS_COLORS] =
    7878{
    7979  "SCROLLBAR",
  • trunk/src/user32/syscolor.h

    r9605 r21916  
    1212#define __WINE_SYSCOLOR_H
    1313
     14#ifdef __cplusplus
     15extern "C" {
     16#endif
     17
    1418HBRUSH WIN32API GetOS2ColorBrush(int nIndex);
    1519COLORREF WIN32API GetOS2Color(int nIndex);
     
    2428HBRUSH WIN32API GetControlBrush(HWND hwnd, HDC hdc, DWORD ctlType);
    2529
     30#ifdef __cplusplus
     31} // extern "C"
     32#endif
     33
    2634#endif  /* __WINE_SYSCOLOR_H */
  • trunk/src/user32/timer.cpp

    r10544 r21916  
    2020#include <winconst.h>
    2121#include <misc.h>
    22 #include <win32wbase.h>
     22#include "win32wbase.h"
    2323#include "oslibutil.h"
    2424#include "timer.h"
     
    252252}
    253253
     254extern "C" {
     255
    254256/***********************************************************************
    255257 *           SetTimer32   (USER32.511)
     
    304306}
    305307
     308} // extern "C"
  • trunk/src/user32/unknown.cpp

    r3662 r21916  
    1414#define DBG_LOCALLOG    DBG_unknown
    1515#include "dbglocal.h"
     16
     17#ifdef __cplusplus
     18extern "C" {
     19#endif
    1620
    1721/*****************************************************************************
     
    179183}
    180184
    181 
    182 
     185#ifdef __cplusplus
     186} // extern "C"
     187#endif
  • trunk/src/user32/user32.cpp

    r10523 r21916  
    4646#include <stdlib.h>
    4747#include <string.h>
    48 //#include <oslibwin.h>
    49 #include <win32wnd.h>
     48//#include "oslibwin.h"
    5049#include <winuser.h>
     50#include "win32wnd.h"
    5151#include "initterm.h"
    5252
     
    9090ODINDEBUGCHANNEL(USER32-USER32)
    9191
     92#ifdef __cplusplus
     93extern "C" {
     94#endif
    9295
    9396/* Coordinate Transformation */
     
    22402243}
    22412244
    2242 
     2245#ifdef __cplusplus
     2246} // extern "C"
     2247#endif
  • trunk/src/user32/user32api.h

    r10316 r21916  
    55#define __USER32API_H_
    66
     7#ifdef __cplusplus
     8extern "C" {
     9#endif
     10
    711//Notify that focus has changed (necessary for SetFocus(0) handling)
    812void SetFocusChanged();
     
    1014extern BOOL fIgnoreKeystrokes;
    1115
     16#ifdef __cplusplus
     17} // extern "C"
    1218#endif
     19
     20#endif
  • trunk/src/user32/user32dbg.def

    r21595 r21916  
    66CODE SHARED LOADONCALL
    77
    8 SEGMENTS
    9    _GLOBALDATA CLASS 'DATA'       SHARED LOADONCALL READWRITE
     8;
     9; Segments are done with LDFLAGS (emxomfld limitation)
     10;
     11; SEGMENTS
     12;
     13;   _GLOBALDATA CLASS 'DATA'       SHARED LOADONCALL READWRITE
     14;
    1015
    1116IMPORTS
     
    3439    WINSETSCANSTATETABLE        = PMMERGE.3266
    3540    WINGETSCANSTATE             = PMMERGE.3138
     41    ; For GCC:
     42    _16_Win16SetScanStateTable  = PMMERGE.3266
     43    _16_Win16GetScanState       = PMMERGE.3138
    3644
    3745;;;; Present in WGSS50
     
    4351
    4452EXPORTS
    45     ActivateKeyboardLayout     = _DbgActivateKeyboardLayout@8  @1
    46     AdjustWindowRect           = _DbgAdjustWindowRect@12        @2
    47     AdjustWindowRectEx         = _DbgAdjustWindowRectEx@16      @3
    48     AnyPopup                   = _DbgAnyPopup@0                 @4
    49     AppendMenuA                = _DbgAppendMenuA@16             @5
    50     AppendMenuW                = _DbgAppendMenuW@16             @6
    51     ArrangeIconicWindows       = _DbgArrangeIconicWindows@4     @7
    52     AttachThreadInput          = _DbgAttachThreadInput@12       @8
    53     BeginDeferWindowPos        = _DbgBeginDeferWindowPos@4      @9
    54     BeginPaint                 = _DbgBeginPaint@8               @10
    55     BringWindowToTop           = _DbgBringWindowToTop@4         @11
    56     BroadcastSystemMessage     = _BroadcastSystemMessageA@20    @12
    57     BroadcastSystemMessageA    = _BroadcastSystemMessageA@20    @2512
    58     BroadcastSystemMessageW    = _BroadcastSystemMessageW@20    @2612
    59     CalcChildScroll            = _DbgCalcChildScroll@8          @13
    60     CallMsgFilter              = _DbgCallMsgFilterA@8           @14
    61     CallMsgFilterA             = _DbgCallMsgFilterA@8           @15
    62     CallMsgFilterW             = _DbgCallMsgFilterW@8           @16
    63     CallNextHookEx             = _DbgCallNextHookEx@16          @17
    64     CallWindowProcA            = _DbgCallWindowProcA@20         @18
    65     CallWindowProcW            = _DbgCallWindowProcW@20         @19
    66     CascadeChildWindows        = _DbgCascadeChildWindows@8      @20
    67     CascadeWindows             = _DbgCascadeWindows@20          @21
    68     ChangeClipboardChain       = _DbgChangeClipboardChain@8     @22
    69     ChangeDisplaySettingsA     = _DbgChangeDisplaySettingsA@8  @23
    70     ChangeDisplaySettingsW     = _DbgChangeDisplaySettingsW@8  @24
    71     ChangeMenuA                = _DbgChangeMenuA@20             @25
    72     ChangeMenuW                = _DbgChangeMenuW@20             @26
    73     CharLowerA                 = _CharLowerA@4               @27
    74     CharLowerBuffA             = _CharLowerBuffA@8           @28
    75     CharLowerBuffW             = _CharLowerBuffW@8           @29
    76     CharLowerW                 = _CharLowerW@4               @30
    77     CharNextA                  = _CharNextA@4                @31
    78     CharNextExA                = _CharNextExA@12             @32
    79     CharNextExW                = _CharNextExW@12             @33
    80     CharNextW                  = _CharNextW@4                @34
    81     CharPrevA                  = _CharPrevA@8                @35
    82     CharPrevExA                = _CharPrevExA@16             @36
    83     CharPrevExW                = _CharPrevExW@16             @37
    84     CharPrevW                  = _CharPrevW@8                @38
    85     CharToOemA                 = _CharToOemA@8               @39
    86     CharToOemBuffA             = _CharToOemBuffA@12          @40
    87     CharToOemBuffW             = _CharToOemBuffW@12          @41
    88     CharToOemW                 = _CharToOemW@8               @42
    89     CharUpperA                 = _CharUpperA@4               @43
    90     CharUpperBuffA             = _CharUpperBuffA@8           @44
    91     CharUpperBuffW             = _CharUpperBuffW@8           @45
    92     CharUpperW                 = _CharUpperW@4               @46
    93     CheckDlgButton             = _DbgCheckDlgButton@12          @47
    94     CheckMenuItem              = _DbgCheckMenuItem@12           @48
    95     CheckMenuRadioItem         = _DbgCheckMenuRadioItem@20      @49
    96     CheckRadioButton           = _DbgCheckRadioButton@16        @50
    97     ChildWindowFromPoint       = _DbgChildWindowFromPoint@12    @51
    98     ChildWindowFromPointEx     = _DbgChildWindowFromPointEx@16  @52
     53    ActivateKeyboardLayout     = "_DbgActivateKeyboardLayout@8" @1
     54    AdjustWindowRect           = "_DbgAdjustWindowRect@12"      @2
     55    AdjustWindowRectEx         = "_DbgAdjustWindowRectEx@16"    @3
     56    AnyPopup                   = "_DbgAnyPopup@0"               @4
     57    AppendMenuA                = "_DbgAppendMenuA@16"           @5
     58    AppendMenuW                = "_DbgAppendMenuW@16"           @6
     59    ArrangeIconicWindows       = "_DbgArrangeIconicWindows@4"   @7
     60    AttachThreadInput          = "_DbgAttachThreadInput@12"     @8
     61    BeginDeferWindowPos        = "_DbgBeginDeferWindowPos@4"    @9
     62    BeginPaint                 = "_DbgBeginPaint@8"             @10
     63    BringWindowToTop           = "_DbgBringWindowToTop@4"       @11
     64    BroadcastSystemMessage     = "_BroadcastSystemMessageA@20"  @12
     65    BroadcastSystemMessageA    = "_BroadcastSystemMessageA@20"  @2512
     66    BroadcastSystemMessageW    = "_BroadcastSystemMessageW@20"  @2612
     67    CalcChildScroll            = "_DbgCalcChildScroll@8"        @13
     68    CallMsgFilter              = "_DbgCallMsgFilterA@8"         @14
     69    CallMsgFilterA             = "_DbgCallMsgFilterA@8"         @15
     70    CallMsgFilterW             = "_DbgCallMsgFilterW@8"         @16
     71    CallNextHookEx             = "_DbgCallNextHookEx@16"        @17
     72    CallWindowProcA            = "_DbgCallWindowProcA@20"       @18
     73    CallWindowProcW            = "_DbgCallWindowProcW@20"       @19
     74    CascadeChildWindows        = "_DbgCascadeChildWindows@8"    @20
     75    CascadeWindows             = "_DbgCascadeWindows@20"        @21
     76    ChangeClipboardChain       = "_DbgChangeClipboardChain@8"   @22
     77    ChangeDisplaySettingsA     = "_DbgChangeDisplaySettingsA@8" @23
     78    ChangeDisplaySettingsW     = "_DbgChangeDisplaySettingsW@8" @24
     79    ChangeMenuA                = "_DbgChangeMenuA@20"           @25
     80    ChangeMenuW                = "_DbgChangeMenuW@20"           @26
     81    CharLowerA                 = "_CharLowerA@4"             @27
     82    CharLowerBuffA             = "_CharLowerBuffA@8"         @28
     83    CharLowerBuffW             = "_CharLowerBuffW@8"         @29
     84    CharLowerW                 = "_CharLowerW@4"             @30
     85    CharNextA                  = "_CharNextA@4"              @31
     86    CharNextExA                = "_CharNextExA@12"           @32
     87    CharNextExW                = "_CharNextExW@12"           @33
     88    CharNextW                  = "_CharNextW@4"              @34
     89    CharPrevA                  = "_CharPrevA@8"              @35
     90    CharPrevExA                = "_CharPrevExA@16"           @36
     91    CharPrevExW                = "_CharPrevExW@16"           @37
     92    CharPrevW                  = "_CharPrevW@8"              @38
     93    CharToOemA                 = "_CharToOemA@8"             @39
     94    CharToOemBuffA             = "_CharToOemBuffA@12"        @40
     95    CharToOemBuffW             = "_CharToOemBuffW@12"        @41
     96    CharToOemW                 = "_CharToOemW@8"             @42
     97    CharUpperA                 = "_CharUpperA@4"             @43
     98    CharUpperBuffA             = "_CharUpperBuffA@8"         @44
     99    CharUpperBuffW             = "_CharUpperBuffW@8"         @45
     100    CharUpperW                 = "_CharUpperW@4"             @46
     101    CheckDlgButton             = "_DbgCheckDlgButton@12"        @47
     102    CheckMenuItem              = "_DbgCheckMenuItem@12"         @48
     103    CheckMenuRadioItem         = "_DbgCheckMenuRadioItem@20"    @49
     104    CheckRadioButton           = "_DbgCheckRadioButton@16"      @50
     105    ChildWindowFromPoint       = "_DbgChildWindowFromPoint@12"  @51
     106    ChildWindowFromPointEx     = "_DbgChildWindowFromPointEx@16"  @52
    99107;    ClientThreadConnect        = _DbgClientThreadConnect@??     @53
    100     ClientToScreen             = _DbgClientToScreen@8           @54
    101     ClipCursor                 = _DbgClipCursor@4               @55
    102     CloseClipboard             = _DbgCloseClipboard@0           @56
    103     CloseDesktop               = _DbgCloseDesktop@4             @57
    104     CloseWindow                = _DbgCloseWindow@4              @58
    105     CloseWindowStation         = _DbgCloseWindowStation@4       @59
    106     CopyAcceleratorTableA      = _DbgCopyAcceleratorTableA@12  @60
    107     CopyAcceleratorTableW      = _DbgCopyAcceleratorTableW@12  @61
    108     CopyIcon                   = _DbgCopyIcon@4                 @62
    109     CopyImage                  = _DbgCopyImage@20               @63
    110     CopyRect                   = _DbgCopyRect@8                 @64
    111     CountClipboardFormats      = _DbgCountClipboardFormats@0    @65
    112     CreateAcceleratorTableA    = _DbgCreateAcceleratorTableA@8  @66
    113     CreateAcceleratorTableW    = _DbgCreateAcceleratorTableW@8  @67
    114     CreateCaret                = _DbgCreateCaret@16             @68
    115     CreateCursor               = _DbgCreateCursor@28            @69
    116     CreateDesktopA             = _DbgCreateDesktopA@24          @70
    117     CreateDesktopW             = _DbgCreateDesktopW@24          @71
    118     CreateDialogIndirectParamA  = _DbgCreateDialogIndirectParamA@20 @72
    119     CreateDialogIndirectParamW  = _DbgCreateDialogIndirectParamW@20 @73
    120     CreateDialogParamA         = _DbgCreateDialogParamA@20      @74
    121     CreateDialogParamW         = _DbgCreateDialogParamW@20      @75
    122     CreateIcon                 = _DbgCreateIcon@28              @76
    123     CreateIconFromResource     = _DbgCreateIconFromResource@16  @77
    124     CreateIconFromResourceEx   = _DbgCreateIconFromResourceEx@28 @78
    125     CreateIconIndirect         = _DbgCreateIconIndirect@4       @79
    126     CreateMDIWindowA           = _DbgCreateMDIWindowA@40        @80
    127     CreateMDIWindowW           = _DbgCreateMDIWindowW@40        @81
    128     CreateMenu                 = _DbgCreateMenu@0               @82
    129     CreatePopupMenu            = _DbgCreatePopupMenu@0          @83
    130     CreateWindowExA            = _DbgCreateWindowExA@48         @84
    131     CreateWindowExW            = _DbgCreateWindowExW@48         @85
    132     CreateWindowStationA       = _DbgCreateWindowStationA@16    @86
    133     CreateWindowStationW       = _DbgCreateWindowStationW@16    @87
    134     DdeAbandonTransaction      = _DbgDdeAbandonTransaction@12  @88
    135     DdeAccessData              = _DbgDdeAccessData@8            @89
    136     DdeAddData                 = _DbgDdeAddData@16              @90
    137     DdeClientTransaction       = _DbgDdeClientTransaction@32    @91
    138     DdeCmpStringHandles        = _DbgDdeCmpStringHandles@8      @92
    139     DdeConnect                 = _DbgDdeConnect@16              @93
    140     DdeConnectList             = _DbgDdeConnectList@20          @94
    141     DdeCreateDataHandle        = _DbgDdeCreateDataHandle@28     @95
    142     DdeCreateStringHandleA     = _DbgDdeCreateStringHandleA@12  @96
    143     DdeCreateStringHandleW     = _DbgDdeCreateStringHandleW@12  @97
    144     DdeDisconnect              = _DbgDdeDisconnect@4            @98
    145     DdeDisconnectList          = _DbgDdeDisconnectList@4        @99
    146     DdeEnableCallback          = _DbgDdeEnableCallback@12       @100
    147     DdeFreeDataHandle          = _DbgDdeFreeDataHandle@4        @101
    148     DdeFreeStringHandle        = _DbgDdeFreeStringHandle@8      @102
    149     DdeGetData                 = _DbgDdeGetData@16              @103
    150     DdeGetLastError            = _DbgDdeGetLastError@4          @104
    151     DdeImpersonateClient       = _DbgDdeImpersonateClient@4     @105
    152     DdeInitializeA             = _DbgDdeInitializeA@16          @106
    153     DdeInitializeW             = _DbgDdeInitializeW@16          @107
    154     DdeKeepStringHandle        = _DbgDdeKeepStringHandle@8      @108
    155     DdeNameService             = _DbgDdeNameService@16          @109
    156     DdePostAdvise              = _DbgDdePostAdvise@12           @110
    157     DdeQueryConvInfo           = _DbgDdeQueryConvInfo@12        @111
    158     DdeQueryNextServer         = _DbgDdeQueryNextServer@8       @112
    159     DdeQueryStringA            = _DbgDdeQueryStringA@20         @113
    160     DdeQueryStringW            = _DbgDdeQueryStringW@20         @114
    161     DdeReconnect               = _DbgDdeReconnect@4             @115
    162     DdeSetQualityOfService     = _DbgDdeSetQualityOfService@12  @116
    163     DdeSetUserHandle           = _DbgDdeSetUserHandle@12        @117
    164     DdeUnaccessData            = _DbgDdeUnaccessData@4          @118
    165     DdeUninitialize            = _DbgDdeUninitialize@4          @119
    166     DefDlgProcA                = _DbgDefDlgProcA@16             @120
    167     DefDlgProcW                = _DbgDefDlgProcW@16             @121
    168     DefFrameProcA              = _DbgDefFrameProcA@20           @122
    169     DefFrameProcW              = _DbgDefFrameProcW@20           @123
    170     DefMDIChildProcA           = _DbgDefMDIChildProcA@16        @124
    171     DefMDIChildProcW           = _DbgDefMDIChildProcW@16        @125
    172     DefWindowProcA             = _DbgDefWindowProcA@16          @126
    173     DefWindowProcW             = _DbgDefWindowProcW@16          @127
    174     DeferWindowPos             = _DbgDeferWindowPos@32          @128
    175     DeleteMenu                 = _DbgDeleteMenu@12              @129
    176     DestroyAcceleratorTable    = _DbgDestroyAcceleratorTable@4  @130
    177     DestroyCaret               = _DbgDestroyCaret@0             @131
    178     DestroyCursor              = _DbgDestroyCursor@4            @132
    179     DestroyIcon                = _DbgDestroyIcon@4              @133
    180     DestroyMenu                = _DbgDestroyMenu@4              @134
    181     DestroyWindow              = _DbgDestroyWindow@4            @135
    182     DialogBoxIndirectParamA    = _DbgDialogBoxIndirectParamA@20 @136
    183     DialogBoxIndirectParamW    = _DbgDialogBoxIndirectParamW@20 @137
    184     DialogBoxParamA            = _DbgDialogBoxParamA@20         @138
    185     DialogBoxParamW            = _DbgDialogBoxParamW@20         @139
    186     DispatchMessageA           = _DbgDispatchMessageA@4         @140
    187     DispatchMessageW           = _DbgDispatchMessageW@4         @141
    188     DlgDirListA                = _DbgDlgDirListA@20             @142
    189     DlgDirListComboBoxA        = _DbgDlgDirListComboBoxA@20     @143
    190     DlgDirListComboBoxW        = _DbgDlgDirListComboBoxW@20     @144
    191     DlgDirListW                = _DbgDlgDirListW@20             @145
    192     DlgDirSelectComboBoxExA    = _DbgDlgDirSelectComboBoxExA@16 @146
    193     DlgDirSelectComboBoxExW    = _DbgDlgDirSelectComboBoxExW@16 @147
    194     DlgDirSelectExA            = _DbgDlgDirSelectExA@16         @148
    195     DlgDirSelectExW            = _DbgDlgDirSelectExW@16         @149
    196     DragDetect                 = _DbgDragDetect@12              @150
    197     DragObject                 = _DbgDragObject@20              @151
    198     DrawAnimatedRects          = _DbgDrawAnimatedRects@16       @152
    199     DrawCaption                = _DbgDrawCaption@16             @153
    200     DrawCaptionTempA           = _DbgDrawCaptionTempA@28        @154
    201     DrawCaptionTempW           = _DbgDrawCaptionTempW@28        @155
    202     DrawEdge                   = _DbgDrawEdge@16                @156
    203     DrawFocusRect              = _DbgDrawFocusRect@8            @157
     108    ClientToScreen             = "_DbgClientToScreen@8"         @54
     109    ClipCursor                 = "_DbgClipCursor@4"             @55
     110    CloseClipboard             = "_DbgCloseClipboard@0"         @56
     111    CloseDesktop               = "_DbgCloseDesktop@4"           @57
     112    CloseWindow                = "_DbgCloseWindow@4"            @58
     113    CloseWindowStation         = "_DbgCloseWindowStation@4"     @59
     114    CopyAcceleratorTableA      = "_DbgCopyAcceleratorTableA@12" @60
     115    CopyAcceleratorTableW      = "_DbgCopyAcceleratorTableW@12" @61
     116    CopyIcon                   = "_DbgCopyIcon@4"               @62
     117    CopyImage                  = "_DbgCopyImage@20"             @63
     118    CopyRect                   = "_DbgCopyRect@8"               @64
     119    CountClipboardFormats      = "_DbgCountClipboardFormats@0"  @65
     120    CreateAcceleratorTableA    = "_DbgCreateAcceleratorTableA@8"  @66
     121    CreateAcceleratorTableW    = "_DbgCreateAcceleratorTableW@8"  @67
     122    CreateCaret                = "_DbgCreateCaret@16"           @68
     123    CreateCursor               = "_DbgCreateCursor@28"          @69
     124    CreateDesktopA             = "_DbgCreateDesktopA@24"        @70
     125    CreateDesktopW             = "_DbgCreateDesktopW@24"        @71
     126    CreateDialogIndirectParamA  = "_DbgCreateDialogIndirectParamA@20" @72
     127    CreateDialogIndirectParamW  = "_DbgCreateDialogIndirectParamW@20" @73
     128    CreateDialogParamA         = "_DbgCreateDialogParamA@20"    @74
     129    CreateDialogParamW         = "_DbgCreateDialogParamW@20"    @75
     130    CreateIcon                 = "_DbgCreateIcon@28"            @76
     131    CreateIconFromResource     = "_DbgCreateIconFromResource@16"  @77
     132    CreateIconFromResourceEx   = "_DbgCreateIconFromResourceEx@28" @78
     133    CreateIconIndirect         = "_DbgCreateIconIndirect@4"     @79
     134    CreateMDIWindowA           = "_DbgCreateMDIWindowA@40"      @80
     135    CreateMDIWindowW           = "_DbgCreateMDIWindowW@40"      @81
     136    CreateMenu                 = "_DbgCreateMenu@0"             @82
     137    CreatePopupMenu            = "_DbgCreatePopupMenu@0"        @83
     138    CreateWindowExA            = "_DbgCreateWindowExA@48"       @84
     139    CreateWindowExW            = "_DbgCreateWindowExW@48"       @85
     140    CreateWindowStationA       = "_DbgCreateWindowStationA@16"  @86
     141    CreateWindowStationW       = "_DbgCreateWindowStationW@16"  @87
     142    DdeAbandonTransaction      = "_DbgDdeAbandonTransaction@12" @88
     143    DdeAccessData              = "_DbgDdeAccessData@8"          @89
     144    DdeAddData                 = "_DbgDdeAddData@16"            @90
     145    DdeClientTransaction       = "_DbgDdeClientTransaction@32"  @91
     146    DdeCmpStringHandles        = "_DbgDdeCmpStringHandles@8"    @92
     147    DdeConnect                 = "_DbgDdeConnect@16"            @93
     148    DdeConnectList             = "_DbgDdeConnectList@20"        @94
     149    DdeCreateDataHandle        = "_DbgDdeCreateDataHandle@28"   @95
     150    DdeCreateStringHandleA     = "_DbgDdeCreateStringHandleA@12"  @96
     151    DdeCreateStringHandleW     = "_DbgDdeCreateStringHandleW@12"  @97
     152    DdeDisconnect              = "_DbgDdeDisconnect@4"          @98
     153    DdeDisconnectList          = "_DbgDdeDisconnectList@4"      @99
     154    DdeEnableCallback          = "_DbgDdeEnableCallback@12"     @100
     155    DdeFreeDataHandle          = "_DbgDdeFreeDataHandle@4"      @101
     156    DdeFreeStringHandle        = "_DbgDdeFreeStringHandle@8"    @102
     157    DdeGetData                 = "_DbgDdeGetData@16"            @103
     158    DdeGetLastError            = "_DbgDdeGetLastError@4"        @104
     159    DdeImpersonateClient       = "_DbgDdeImpersonateClient@4"   @105
     160    DdeInitializeA             = "_DbgDdeInitializeA@16"        @106
     161    DdeInitializeW             = "_DbgDdeInitializeW@16"        @107
     162    DdeKeepStringHandle        = "_DbgDdeKeepStringHandle@8"    @108
     163    DdeNameService             = "_DbgDdeNameService@16"        @109
     164    DdePostAdvise              = "_DbgDdePostAdvise@12"         @110
     165    DdeQueryConvInfo           = "_DbgDdeQueryConvInfo@12"      @111
     166    DdeQueryNextServer         = "_DbgDdeQueryNextServer@8"     @112
     167    DdeQueryStringA            = "_DbgDdeQueryStringA@20"       @113
     168    DdeQueryStringW            = "_DbgDdeQueryStringW@20"       @114
     169    DdeReconnect               = "_DbgDdeReconnect@4"           @115
     170    DdeSetQualityOfService     = "_DbgDdeSetQualityOfService@12"  @116
     171    DdeSetUserHandle           = "_DbgDdeSetUserHandle@12"      @117
     172    DdeUnaccessData            = "_DbgDdeUnaccessData@4"        @118
     173    DdeUninitialize            = "_DbgDdeUninitialize@4"        @119
     174    DefDlgProcA                = "_DbgDefDlgProcA@16"           @120
     175    DefDlgProcW                = "_DbgDefDlgProcW@16"           @121
     176    DefFrameProcA              = "_DbgDefFrameProcA@20"         @122
     177    DefFrameProcW              = "_DbgDefFrameProcW@20"         @123
     178    DefMDIChildProcA           = "_DbgDefMDIChildProcA@16"      @124
     179    DefMDIChildProcW           = "_DbgDefMDIChildProcW@16"      @125
     180    DefWindowProcA             = "_DbgDefWindowProcA@16"        @126
     181    DefWindowProcW             = "_DbgDefWindowProcW@16"        @127
     182    DeferWindowPos             = "_DbgDeferWindowPos@32"        @128
     183    DeleteMenu                 = "_DbgDeleteMenu@12"            @129
     184    DestroyAcceleratorTable    = "_DbgDestroyAcceleratorTable@4"  @130
     185    DestroyCaret               = "_DbgDestroyCaret@0"           @131
     186    DestroyCursor              = "_DbgDestroyCursor@4"          @132
     187    DestroyIcon                = "_DbgDestroyIcon@4"            @133
     188    DestroyMenu                = "_DbgDestroyMenu@4"            @134
     189    DestroyWindow              = "_DbgDestroyWindow@4"          @135
     190    DialogBoxIndirectParamA    = "_DbgDialogBoxIndirectParamA@20" @136
     191    DialogBoxIndirectParamW    = "_DbgDialogBoxIndirectParamW@20" @137
     192    DialogBoxParamA            = "_DbgDialogBoxParamA@20"       @138
     193    DialogBoxParamW            = "_DbgDialogBoxParamW@20"       @139
     194    DispatchMessageA           = "_DbgDispatchMessageA@4"       @140
     195    DispatchMessageW           = "_DbgDispatchMessageW@4"       @141
     196    DlgDirListA                = "_DbgDlgDirListA@20"           @142
     197    DlgDirListComboBoxA        = "_DbgDlgDirListComboBoxA@20"   @143
     198    DlgDirListComboBoxW        = "_DbgDlgDirListComboBoxW@20"   @144
     199    DlgDirListW                = "_DbgDlgDirListW@20"           @145
     200    DlgDirSelectComboBoxExA    = "_DbgDlgDirSelectComboBoxExA@16" @146
     201    DlgDirSelectComboBoxExW    = "_DbgDlgDirSelectComboBoxExW@16" @147
     202    DlgDirSelectExA            = "_DbgDlgDirSelectExA@16"       @148
     203    DlgDirSelectExW            = "_DbgDlgDirSelectExW@16"       @149
     204    DragDetect                 = "_DbgDragDetect@12"            @150
     205    DragObject                 = "_DbgDragObject@20"            @151
     206    DrawAnimatedRects          = "_DbgDrawAnimatedRects@16"     @152
     207    DrawCaption                = "_DbgDrawCaption@16"           @153
     208    DrawCaptionTempA           = "_DbgDrawCaptionTempA@28"      @154
     209    DrawCaptionTempW           = "_DbgDrawCaptionTempW@28"      @155
     210    DrawEdge                   = "_DbgDrawEdge@16"              @156
     211    DrawFocusRect              = "_DbgDrawFocusRect@8"          @157
    204212;    DrawFrame                  = _DbgDrawFrame@??               @158
    205     DrawFrameControl           = _DbgDrawFrameControl@16        @159
    206     DrawIcon                   = _DbgDrawIcon@16                @160
    207     DrawIconEx                 = _DbgDrawIconEx@36              @161
    208     DrawMenuBar                = _DbgDrawMenuBar@4              @162
    209     DrawStateA                 = _DbgDrawStateA@40              @163
    210     DrawStateW                 = _DbgDrawStateW@40              @164
    211     DrawTextA                  = _DbgDrawTextA@20               @165
    212     DrawTextExA                = _DbgDrawTextExA@24             @166
    213     DrawTextExW                = _DbgDrawTextExW@24             @167
    214     DrawTextW                  = _DbgDrawTextW@20               @168
    215     EditWndProc                = _DbgEditWndProcA@16            @169
    216     EmptyClipboard             = _DbgEmptyClipboard@0           @170
    217     EnableMenuItem             = _DbgEnableMenuItem@12          @171
    218     EnableScrollBar            = _DbgEnableScrollBar@12         @172
    219     EnableWindow               = _DbgEnableWindow@8             @173
    220     EndDeferWindowPos          = _DbgEndDeferWindowPos@4        @174
    221     EndDialog                  = _DbgEndDialog@8                @175
    222     EndPaint                   = _DbgEndPaint@8                 @176
    223     EndTask                    = _DbgEndTask@12                 @177
    224     EnumChildWindows           = _DbgEnumChildWindows@12        @178
    225     EnumClipboardFormats       = _DbgEnumClipboardFormats@4     @179
    226     EnumDesktopWindows         = _DbgEnumDesktopWindows@12      @180
    227     EnumDesktopsA              = _DbgEnumDesktopsA@12           @181
    228     EnumDesktopsW              = _DbgEnumDesktopsW@12           @182
    229     EnumDisplaySettingsA       = _DbgEnumDisplaySettingsA@12    @183
    230     EnumDisplaySettingsW       = _DbgEnumDisplaySettingsW@12    @184
    231     EnumPropsA                 = _DbgEnumPropsA@8               @185
    232     EnumPropsExA               = _DbgEnumPropsExA@12            @186
    233     EnumPropsExW               = _DbgEnumPropsExW@12            @187
    234     EnumPropsW                 = _DbgEnumPropsW@8               @188
    235     EnumThreadWindows          = _DbgEnumThreadWindows@12       @189
    236     EnumWindowStationsA        = _DbgEnumWindowStationsA@8      @190
    237     EnumWindowStationsW        = _DbgEnumWindowStationsW@8      @191
    238     EnumWindows                = _DbgEnumWindows@8              @192
    239     EqualRect                  = _DbgEqualRect@8                @193
    240     ExcludeUpdateRgn           = _DbgExcludeUpdateRgn@8         @194
    241     ExitWindowsEx              = _DbgExitWindowsEx@8            @195
    242     FillRect                   = _FillRect@12                   @196
    243     FindWindowA                = _DbgFindWindowA@8              @197
    244     FindWindowExA              = _DbgFindWindowExA@16           @198
    245     FindWindowExW              = _DbgFindWindowExW@16           @199
    246     FindWindowW                = _DbgFindWindowW@8              @200
    247     FlashWindow                = _DbgFlashWindow@8              @201
    248     FrameRect                  = _FrameRect@12                  @202
    249     FreeDDElParam              = _DbgFreeDDElParam@8            @203
    250     GetActiveWindow            = _DbgGetActiveWindow@0          @204
    251     GetAsyncKeyState           = _DbgGetAsyncKeyState@4         @205
    252     GetCapture                 = _DbgGetCapture@0               @206
    253     GetCaretBlinkTime          = _DbgGetCaretBlinkTime@0        @207
    254     GetCaretPos                = _DbgGetCaretPos@4              @208
    255     GetClassInfoA              = _DbgGetClassInfoA@12           @209
    256     GetClassInfoExA            = _DbgGetClassInfoExA@12         @210
    257     GetClassInfoExW            = _DbgGetClassInfoExW@12         @211
    258     GetClassInfoW              = _DbgGetClassInfoW@12           @212
    259     GetClassLongA              = _DbgGetClassLongA@8            @213
    260     GetClassLongW              = _DbgGetClassLongW@8            @214
    261     GetClassNameA              = _DbgGetClassNameA@12           @215
    262     GetClassNameW              = _DbgGetClassNameW@12           @216
    263     GetClassWord               = _DbgGetClassWord@8             @217
    264     GetClientRect              = _DbgGetClientRect@8            @218
    265     GetClipCursor              = _DbgGetClipCursor@4            @219
    266     GetClipboardData           = _DbgGetClipboardData@4         @220
    267     GetClipboardFormatNameA    = _DbgGetClipboardFormatNameA@12 @221
    268     GetClipboardFormatNameW    = _DbgGetClipboardFormatNameW@12 @222
    269     GetClipboardOwner          = _DbgGetClipboardOwner@0        @223
    270     GetClipboardViewer         = _DbgGetClipboardViewer@0       @224
    271     GetCursor                  = _DbgGetCursor@0                @225
    272     GetCursorPos               = _DbgGetCursorPos@4             @226
    273     GetDC                      = _DbgGetDC@4                    @227
    274     GetDCEx                    = _DbgGetDCEx@12                 @228
    275     GetDesktopWindow           = _DbgGetDesktopWindow@0         @229
    276     GetDialogBaseUnits         = _DbgGetDialogBaseUnits@0       @230
    277     GetDlgCtrlID               = _DbgGetDlgCtrlID@4             @231
    278     GetDlgItem                 = _DbgGetDlgItem@8               @232
    279     GetDlgItemInt              = _DbgGetDlgItemInt@16           @233
    280     GetDlgItemTextA            = _DbgGetDlgItemTextA@16         @234
    281     GetDlgItemTextW            = _DbgGetDlgItemTextW@16         @235
    282     GetDoubleClickTime         = _DbgGetDoubleClickTime@0       @236
    283     GetFocus                   = _DbgGetFocus@0                 @237
    284     GetForegroundWindow        = _DbgGetForegroundWindow@0      @238
    285     GetIconInfo                = _DbgGetIconInfo@8              @239
     213    DrawFrameControl           = "_DbgDrawFrameControl@16"      @159
     214    DrawIcon                   = "_DbgDrawIcon@16"              @160
     215    DrawIconEx                 = "_DbgDrawIconEx@36"            @161
     216    DrawMenuBar                = "_DbgDrawMenuBar@4"            @162
     217    DrawStateA                 = "_DbgDrawStateA@40"            @163
     218    DrawStateW                 = "_DbgDrawStateW@40"            @164
     219    DrawTextA                  = "_DbgDrawTextA@20"             @165
     220    DrawTextExA                = "_DbgDrawTextExA@24"           @166
     221    DrawTextExW                = "_DbgDrawTextExW@24"           @167
     222    DrawTextW                  = "_DbgDrawTextW@20"             @168
     223    EditWndProc                = "_DbgEditWndProcA@16"          @169
     224    EmptyClipboard             = "_DbgEmptyClipboard@0"         @170
     225    EnableMenuItem             = "_DbgEnableMenuItem@12"        @171
     226    EnableScrollBar            = "_DbgEnableScrollBar@12"       @172
     227    EnableWindow               = "_DbgEnableWindow@8"           @173
     228    EndDeferWindowPos          = "_DbgEndDeferWindowPos@4"      @174
     229    EndDialog                  = "_DbgEndDialog@8"              @175
     230    EndPaint                   = "_DbgEndPaint@8"               @176
     231    EndTask                    = "_DbgEndTask@12"               @177
     232    EnumChildWindows           = "_DbgEnumChildWindows@12"      @178
     233    EnumClipboardFormats       = "_DbgEnumClipboardFormats@4"   @179
     234    EnumDesktopWindows         = "_DbgEnumDesktopWindows@12"    @180
     235    EnumDesktopsA              = "_DbgEnumDesktopsA@12"         @181
     236    EnumDesktopsW              = "_DbgEnumDesktopsW@12"         @182
     237    EnumDisplaySettingsA       = "_DbgEnumDisplaySettingsA@12"  @183
     238    EnumDisplaySettingsW       = "_DbgEnumDisplaySettingsW@12"  @184
     239    EnumPropsA                 = "_DbgEnumPropsA@8"             @185
     240    EnumPropsExA               = "_DbgEnumPropsExA@12"          @186
     241    EnumPropsExW               = "_DbgEnumPropsExW@12"          @187
     242    EnumPropsW                 = "_DbgEnumPropsW@8"             @188
     243    EnumThreadWindows          = "_DbgEnumThreadWindows@12"     @189
     244    EnumWindowStationsA        = "_DbgEnumWindowStationsA@8"    @190
     245    EnumWindowStationsW        = "_DbgEnumWindowStationsW@8"    @191
     246    EnumWindows                = "_DbgEnumWindows@8"            @192
     247    EqualRect                  = "_DbgEqualRect@8"              @193
     248    ExcludeUpdateRgn           = "_DbgExcludeUpdateRgn@8"       @194
     249    ExitWindowsEx              = "_DbgExitWindowsEx@8"          @195
     250    FillRect                   = "_FillRect@12"                 @196
     251    FindWindowA                = "_DbgFindWindowA@8"            @197
     252    FindWindowExA              = "_DbgFindWindowExA@16"         @198
     253    FindWindowExW              = "_DbgFindWindowExW@16"         @199
     254    FindWindowW                = "_DbgFindWindowW@8"            @200
     255    FlashWindow                = "_DbgFlashWindow@8"            @201
     256    FrameRect                  = "_FrameRect@12"                @202
     257    FreeDDElParam              = "_DbgFreeDDElParam@8"          @203
     258    GetActiveWindow            = "_DbgGetActiveWindow@0"        @204
     259    GetAsyncKeyState           = "_DbgGetAsyncKeyState@4"       @205
     260    GetCapture                 = "_DbgGetCapture@0"             @206
     261    GetCaretBlinkTime          = "_DbgGetCaretBlinkTime@0"      @207
     262    GetCaretPos                = "_DbgGetCaretPos@4"            @208
     263    GetClassInfoA              = "_DbgGetClassInfoA@12"         @209
     264    GetClassInfoExA            = "_DbgGetClassInfoExA@12"       @210
     265    GetClassInfoExW            = "_DbgGetClassInfoExW@12"       @211
     266    GetClassInfoW              = "_DbgGetClassInfoW@12"         @212
     267    GetClassLongA              = "_DbgGetClassLongA@8"          @213
     268    GetClassLongW              = "_DbgGetClassLongW@8"          @214
     269    GetClassNameA              = "_DbgGetClassNameA@12"         @215
     270    GetClassNameW              = "_DbgGetClassNameW@12"         @216
     271    GetClassWord               = "_DbgGetClassWord@8"           @217
     272    GetClientRect              = "_DbgGetClientRect@8"          @218
     273    GetClipCursor              = "_DbgGetClipCursor@4"          @219
     274    GetClipboardData           = "_DbgGetClipboardData@4"       @220
     275    GetClipboardFormatNameA    = "_DbgGetClipboardFormatNameA@12" @221
     276    GetClipboardFormatNameW    = "_DbgGetClipboardFormatNameW@12" @222
     277    GetClipboardOwner          = "_DbgGetClipboardOwner@0"      @223
     278    GetClipboardViewer         = "_DbgGetClipboardViewer@0"     @224
     279    GetCursor                  = "_DbgGetCursor@0"              @225
     280    GetCursorPos               = "_DbgGetCursorPos@4"           @226
     281    GetDC                      = "_DbgGetDC@4"                  @227
     282    GetDCEx                    = "_DbgGetDCEx@12"               @228
     283    GetDesktopWindow           = "_DbgGetDesktopWindow@0"       @229
     284    GetDialogBaseUnits         = "_DbgGetDialogBaseUnits@0"     @230
     285    GetDlgCtrlID               = "_DbgGetDlgCtrlID@4"           @231
     286    GetDlgItem                 = "_DbgGetDlgItem@8"             @232
     287    GetDlgItemInt              = "_DbgGetDlgItemInt@16"         @233
     288    GetDlgItemTextA            = "_DbgGetDlgItemTextA@16"       @234
     289    GetDlgItemTextW            = "_DbgGetDlgItemTextW@16"       @235
     290    GetDoubleClickTime         = "_DbgGetDoubleClickTime@0"     @236
     291    GetFocus                   = "_DbgGetFocus@0"               @237
     292    GetForegroundWindow        = "_DbgGetForegroundWindow@0"    @238
     293    GetIconInfo                = "_DbgGetIconInfo@8"            @239
    286294;    GetInputDesktop            = _DbgGetInputDesktop@??         @240
    287     GetInputState              = _DbgGetInputState@0            @241
    288     GetInternalWindowPos       = _DbgGetInternalWindowPos@12    @242
    289     GetKBCodePage              = _DbgGetKBCodePage@0            @243
    290     GetKeyNameTextA            = _DbgGetKeyNameTextA@12         @244
    291     GetKeyNameTextW            = _DbgGetKeyNameTextW@12         @245
    292     GetKeyState                = _DbgGetKeyState@4              @246
    293     GetKeyboardLayout          = _DbgGetKeyboardLayout@4        @247
    294     GetKeyboardLayoutList      = _DbgGetKeyboardLayoutList@8    @248
    295     GetKeyboardLayoutNameA     = _DbgGetKeyboardLayoutNameA@4  @249
    296     GetKeyboardLayoutNameW     = _DbgGetKeyboardLayoutNameW@4  @250
    297     GetKeyboardState           = _DbgGetKeyboardState@4         @251
    298     GetKeyboardType            = _DbgGetKeyboardType@4          @252
    299     GetLastActivePopup         = _DbgGetLastActivePopup@4       @253
    300     GetMenu                    = _DbgGetMenu@4                  @254
    301     GetMenuCheckMarkDimensions  = _DbgGetMenuCheckMarkDimensions@0 @255
    302     GetMenuContextHelpId       = _DbgGetMenuContextHelpId@4     @256
    303     GetMenuDefaultItem         = _DbgGetMenuDefaultItem@12      @257
    304     GetMenuItemCount           = _DbgGetMenuItemCount@4         @258
    305     GetMenuItemID              = _DbgGetMenuItemID@8            @259
    306     GetMenuItemInfoA           = _DbgGetMenuItemInfoA@16        @260
    307     GetMenuItemInfoW           = _DbgGetMenuItemInfoW@16        @261
    308     GetMenuItemRect            = _DbgGetMenuItemRect@16         @262
    309     GetMenuState               = _DbgGetMenuState@12            @263
    310     GetMenuStringA             = _DbgGetMenuStringA@20          @264
    311     GetMenuStringW             = _DbgGetMenuStringW@20          @265
    312     GetMessageA                = _DbgGetMessageA@16             @266
    313     GetMessageExtraInfo        = _DbgGetMessageExtraInfo@0      @267
    314     GetMessagePos              = _DbgGetMessagePos@0            @268
    315     GetMessageTime             = _DbgGetMessageTime@0           @269
    316     GetMessageW                = _DbgGetMessageW@16             @270
    317     GetNextDlgGroupItem        = _DbgGetNextDlgGroupItem@12     @271
    318     GetNextDlgTabItem          = _DbgGetNextDlgTabItem@12       @272
    319     GetNextQueueWindow         = _DbgGetNextQueueWindow@8       @273
    320     GetOpenClipboardWindow     = _DbgGetOpenClipboardWindow@0  @274
    321     GetParent                  = _DbgGetParent@4                @275
    322     GetPriorityClipboardFormat  = _DbgGetPriorityClipboardFormat@8 @276
    323     GetProcessWindowStation    = _DbgGetProcessWindowStation@0  @277
    324     GetProgmanWindow           = _DbgGetProgmanWindow@0         @1289
    325     GetPropA                   = _DbgGetPropA@8                 @278
    326     GetPropW                   = _DbgGetPropW@8                 @279
    327     GetQueueStatus             = _DbgGetQueueStatus@4           @280
    328     GetScrollBarInfo           = _DbgGetScrollBarInfo@12        @1281
    329     GetScrollInfo              = _DbgGetScrollInfo@12           @281
    330     GetScrollPos               = _DbgGetScrollPos@8             @282
    331     GetScrollRange             = _DbgGetScrollRange@16          @283
    332     GetShellWindow             = _DbgGetShellWindow@0           @284
    333     GetSubMenu                 = _DbgGetSubMenu@8               @285
    334     GetSysColor                = _DbgGetSysColor@4              @286
    335     GetSysColorBrush           = _DbgGetSysColorBrush@4         @287
    336     GetSystemMenu              = _DbgGetSystemMenu@8            @288
    337     GetSystemMetrics           = _DbgGetSystemMetrics@4         @289
    338     GetTabbedTextExtentA       = _DbgGetTabbedTextExtentA@20    @290
    339     GetTabbedTextExtentW       = _DbgGetTabbedTextExtentW@20    @291
    340     GetTaskmanWindow           = _DbgGetTaskmanWindow@0         @1304
    341     GetThreadDesktop           = _DbgGetThreadDesktop@4         @292
    342     GetTopWindow               = _DbgGetTopWindow@4             @293
    343     GetUpdateRect              = _DbgGetUpdateRect@12           @294
    344     GetUpdateRgn               = _DbgGetUpdateRgn@12            @295
    345     GetUserObjectInformationA  = _DbgGetUserObjectInformationA@20 @296
    346     GetUserObjectInformationW  = _DbgGetUserObjectInformationW@20 @297
    347     GetUserObjectSecurity      = _DbgGetUserObjectSecurity@20  @298
    348     GetWindow                  = _DbgGetWindow@8                @299
    349     GetWindowContextHelpId     = _DbgGetWindowContextHelpId@4  @300
    350     GetWindowDC                = _DbgGetWindowDC@4              @301
    351     GetWindowLongA             = _DbgGetWindowLongA@8           @302
    352     GetWindowLongW             = _DbgGetWindowLongW@8           @303
    353     GetWindowPlacement         = _DbgGetWindowPlacement@8       @304
    354     GetWindowRect              = _DbgGetWindowRect@8            @305
    355     GetWindowRgn               = _DbgGetWindowRgn@8             @306
    356     GetWindowTextA             = _DbgGetWindowTextA@12          @307
    357     GetWindowTextLengthA       = _DbgGetWindowTextLengthA@4     @308
    358     GetWindowTextLengthW       = _DbgGetWindowTextLengthW@4     @309
    359     GetWindowTextW             = _DbgGetWindowTextW@12          @310
    360     GetWindowThreadProcessId   = _DbgGetWindowThreadProcessId@8 @311
    361     GetWindowWord              = _DbgGetWindowWord@8            @312
    362     GrayStringA                = _DbgGrayStringA@36             @313
    363     GrayStringW                = _DbgGrayStringW@36             @314
    364     HideCaret                  = _DbgHideCaret@4                @315
    365     HiliteMenuItem             = _DbgHiliteMenuItem@16          @316
    366     ImpersonateDdeClientWindow  = _DbgImpersonateDdeClientWindow@8 @317
    367     InSendMessage              = _DbgInSendMessage@0            @318
    368     InflateRect                = _DbgInflateRect@12             @319
     295    GetInputState              = "_DbgGetInputState@0"          @241
     296    GetInternalWindowPos       = "_DbgGetInternalWindowPos@12"  @242
     297    GetKBCodePage              = "_DbgGetKBCodePage@0"          @243
     298    GetKeyNameTextA            = "_DbgGetKeyNameTextA@12"       @244
     299    GetKeyNameTextW            = "_DbgGetKeyNameTextW@12"       @245
     300    GetKeyState                = "_DbgGetKeyState@4"            @246
     301    GetKeyboardLayout          = "_DbgGetKeyboardLayout@4"      @247
     302    GetKeyboardLayoutList      = "_DbgGetKeyboardLayoutList@8"  @248
     303    GetKeyboardLayoutNameA     = "_DbgGetKeyboardLayoutNameA@4" @249
     304    GetKeyboardLayoutNameW     = "_DbgGetKeyboardLayoutNameW@4" @250
     305    GetKeyboardState           = "_DbgGetKeyboardState@4"       @251
     306    GetKeyboardType            = "_DbgGetKeyboardType@4"        @252
     307    GetLastActivePopup         = "_DbgGetLastActivePopup@4"     @253
     308    GetMenu                    = "_DbgGetMenu@4"                @254
     309    GetMenuCheckMarkDimensions  = "_DbgGetMenuCheckMarkDimensions@0" @255
     310    GetMenuContextHelpId       = "_DbgGetMenuContextHelpId@4"   @256
     311    GetMenuDefaultItem         = "_DbgGetMenuDefaultItem@12"    @257
     312    GetMenuItemCount           = "_DbgGetMenuItemCount@4"       @258
     313    GetMenuItemID              = "_DbgGetMenuItemID@8"          @259
     314    GetMenuItemInfoA           = "_DbgGetMenuItemInfoA@16"      @260
     315    GetMenuItemInfoW           = "_DbgGetMenuItemInfoW@16"      @261
     316    GetMenuItemRect            = "_DbgGetMenuItemRect@16"       @262
     317    GetMenuState               = "_DbgGetMenuState@12"          @263
     318    GetMenuStringA             = "_DbgGetMenuStringA@20"        @264
     319    GetMenuStringW             = "_DbgGetMenuStringW@20"        @265
     320    GetMessageA                = "_DbgGetMessageA@16"           @266
     321    GetMessageExtraInfo        = "_DbgGetMessageExtraInfo@0"    @267
     322    GetMessagePos              = "_DbgGetMessagePos@0"          @268
     323    GetMessageTime             = "_DbgGetMessageTime@0"         @269
     324    GetMessageW                = "_DbgGetMessageW@16"           @270
     325    GetNextDlgGroupItem        = "_DbgGetNextDlgGroupItem@12"   @271
     326    GetNextDlgTabItem          = "_DbgGetNextDlgTabItem@12"     @272
     327    GetNextQueueWindow         = "_DbgGetNextQueueWindow@8"     @273
     328    GetOpenClipboardWindow     = "_DbgGetOpenClipboardWindow@0" @274
     329    GetParent                  = "_DbgGetParent@4"              @275
     330    GetPriorityClipboardFormat  = "_DbgGetPriorityClipboardFormat@8" @276
     331    GetProcessWindowStation    = "_DbgGetProcessWindowStation@0"  @277
     332    GetProgmanWindow           = "_DbgGetProgmanWindow@0"       @1289
     333    GetPropA                   = "_DbgGetPropA@8"               @278
     334    GetPropW                   = "_DbgGetPropW@8"               @279
     335    GetQueueStatus             = "_DbgGetQueueStatus@4"         @280
     336    GetScrollBarInfo           = "_DbgGetScrollBarInfo@12"      @1281
     337    GetScrollInfo              = "_DbgGetScrollInfo@12"         @281
     338    GetScrollPos               = "_DbgGetScrollPos@8"           @282
     339    GetScrollRange             = "_DbgGetScrollRange@16"        @283
     340    GetShellWindow             = "_DbgGetShellWindow@0"         @284
     341    GetSubMenu                 = "_DbgGetSubMenu@8"             @285
     342    GetSysColor                = "_DbgGetSysColor@4"            @286
     343    GetSysColorBrush           = "_DbgGetSysColorBrush@4"       @287
     344    GetSystemMenu              = "_DbgGetSystemMenu@8"          @288
     345    GetSystemMetrics           = "_DbgGetSystemMetrics@4"       @289
     346    GetTabbedTextExtentA       = "_DbgGetTabbedTextExtentA@20"  @290
     347    GetTabbedTextExtentW       = "_DbgGetTabbedTextExtentW@20"  @291
     348    GetTaskmanWindow           = "_DbgGetTaskmanWindow@0"       @1304
     349    GetThreadDesktop           = "_DbgGetThreadDesktop@4"       @292
     350    GetTopWindow               = "_DbgGetTopWindow@4"           @293
     351    GetUpdateRect              = "_DbgGetUpdateRect@12"         @294
     352    GetUpdateRgn               = "_DbgGetUpdateRgn@12"          @295
     353    GetUserObjectInformationA  = "_DbgGetUserObjectInformationA@20" @296
     354    GetUserObjectInformationW  = "_DbgGetUserObjectInformationW@20" @297
     355    GetUserObjectSecurity      = "_DbgGetUserObjectSecurity@20" @298
     356    GetWindow                  = "_DbgGetWindow@8"              @299
     357    GetWindowContextHelpId     = "_DbgGetWindowContextHelpId@4" @300
     358    GetWindowDC                = "_DbgGetWindowDC@4"            @301
     359    GetWindowLongA             = "_DbgGetWindowLongA@8"         @302
     360    GetWindowLongW             = "_DbgGetWindowLongW@8"         @303
     361    GetWindowPlacement         = "_DbgGetWindowPlacement@8"     @304
     362    GetWindowRect              = "_DbgGetWindowRect@8"          @305
     363    GetWindowRgn               = "_DbgGetWindowRgn@8"           @306
     364    GetWindowTextA             = "_DbgGetWindowTextA@12"        @307
     365    GetWindowTextLengthA       = "_DbgGetWindowTextLengthA@4"   @308
     366    GetWindowTextLengthW       = "_DbgGetWindowTextLengthW@4"   @309
     367    GetWindowTextW             = "_DbgGetWindowTextW@12"        @310
     368    GetWindowThreadProcessId   = "_DbgGetWindowThreadProcessId@8" @311
     369    GetWindowWord              = "_DbgGetWindowWord@8"          @312
     370    GrayStringA                = "_DbgGrayStringA@36"           @313
     371    GrayStringW                = "_DbgGrayStringW@36"           @314
     372    HideCaret                  = "_DbgHideCaret@4"              @315
     373    HiliteMenuItem             = "_DbgHiliteMenuItem@16"        @316
     374    ImpersonateDdeClientWindow  = "_DbgImpersonateDdeClientWindow@8" @317
     375    InSendMessage              = "_DbgInSendMessage@0"          @318
     376    InflateRect                = "_DbgInflateRect@12"           @319
    369377;    InitSharedTable            = _DbgInitSharedTable@??         @320
    370378;    InitTask                   = _DbgInitTask@??                @321
    371     InsertMenuA                = _DbgInsertMenuA@20             @322
    372     InsertMenuItemA            = _DbgInsertMenuItemA@16         @323
    373     InsertMenuItemW            = _DbgInsertMenuItemW@16         @324
    374     InsertMenuW                = _DbgInsertMenuW@20             @325
    375     InternalGetWindowText      = _DbgInternalGetWindowText@12  @326
    376     IntersectRect              = _DbgIntersectRect@12           @327
    377     InvalidateRect             = _DbgInvalidateRect@12          @328
    378     InvalidateRgn              = _DbgInvalidateRgn@12           @329
    379     InvertRect                 = _InvertRect@8                  @330
    380     IsCharAlphaA               = _IsCharAlphaA@4             @331
    381     IsCharAlphaNumericA        = _IsCharAlphaNumericA@4      @332
    382     IsCharAlphaNumericW        = _IsCharAlphaNumericW@4      @333
    383     IsCharAlphaW               = _IsCharAlphaW@4             @334
    384     IsCharLowerA               = _IsCharLowerA@4             @335
    385     IsCharLowerW               = _IsCharLowerW@4             @336
    386     IsCharUpperA               = _IsCharUpperA@4             @337
    387     IsCharUpperW               = _IsCharUpperW@4             @338
    388     IsChild                    = _DbgIsChild@8                  @339
    389     IsClipboardFormatAvailable  = _DbgIsClipboardFormatAvailable@4 @340
    390     IsDialogMessage            = _DbgIsDialogMessageA@8         @341
    391     IsDialogMessageA           = _DbgIsDialogMessageA@8         @342
    392     IsDialogMessageW           = _DbgIsDialogMessageW@8         @343
    393     IsDlgButtonChecked         = _DbgIsDlgButtonChecked@8       @344
    394     IsHungThread               = _DbgIsHungThread@4             @345
    395     IsHungAppWindow            = _DbgIsHungAppWindow@8          @1345
    396     IsIconic                   = _DbgIsIconic@4                 @346
    397     IsMenu                     = _DbgIsMenu@4                   @347
    398     IsRectEmpty                = _DbgIsRectEmpty@4              @348
    399     IsWindow                   = _DbgIsWindow@4                 @349
    400     IsWindowEnabled            = _DbgIsWindowEnabled@4          @350
    401     IsWindowUnicode            = _DbgIsWindowUnicode@4          @351
    402     IsWindowVisible            = _DbgIsWindowVisible@4          @352
    403     IsZoomed                   = _DbgIsZoomed@4                 @353
    404     KillTimer                  = _DbgKillTimer@8                @354
    405     LoadAcceleratorsA          = _DbgLoadAcceleratorsA@8        @355
    406     LoadAcceleratorsW          = _DbgLoadAcceleratorsW@8        @356
    407     LoadBitmapA                = _DbgLoadBitmapA@8              @357
    408     LoadBitmapW                = _DbgLoadBitmapW@8              @358
    409     LoadCursorA                = _DbgLoadCursorA@8              @359
    410     LoadCursorFromFileA        = _DbgLoadCursorFromFileA@4      @360
    411     LoadCursorFromFileW        = _DbgLoadCursorFromFileW@4      @361
    412     LoadCursorW                = _DbgLoadCursorW@8              @362
    413     LoadIconA                  = _DbgLoadIconA@8                @363
    414     LoadIconW                  = _DbgLoadIconW@8                @364
    415     LoadImageA                 = _DbgLoadImageA@24              @365
    416     LoadImageW                 = _DbgLoadImageW@24              @366
    417     LoadKeyboardLayoutA        = _DbgLoadKeyboardLayoutA@8      @367
    418     LoadKeyboardLayoutW        = _DbgLoadKeyboardLayoutW@8      @368
    419     LoadMenuA                  = _DbgLoadMenuA@8                @369
     379    InsertMenuA                = "_DbgInsertMenuA@20"           @322
     380    InsertMenuItemA            = "_DbgInsertMenuItemA@16"       @323
     381    InsertMenuItemW            = "_DbgInsertMenuItemW@16"       @324
     382    InsertMenuW                = "_DbgInsertMenuW@20"           @325
     383    InternalGetWindowText      = "_DbgInternalGetWindowText@12" @326
     384    IntersectRect              = "_DbgIntersectRect@12"         @327
     385    InvalidateRect             = "_DbgInvalidateRect@12"        @328
     386    InvalidateRgn              = "_DbgInvalidateRgn@12"         @329
     387    InvertRect                 = "_InvertRect@8"                @330
     388    IsCharAlphaA               = "_IsCharAlphaA@4"           @331
     389    IsCharAlphaNumericA        = "_IsCharAlphaNumericA@4"    @332
     390    IsCharAlphaNumericW        = "_IsCharAlphaNumericW@4"    @333
     391    IsCharAlphaW               = "_IsCharAlphaW@4"           @334
     392    IsCharLowerA               = "_IsCharLowerA@4"           @335
     393    IsCharLowerW               = "_IsCharLowerW@4"           @336
     394    IsCharUpperA               = "_IsCharUpperA@4"           @337
     395    IsCharUpperW               = "_IsCharUpperW@4"           @338
     396    IsChild                    = "_DbgIsChild@8"                @339
     397    IsClipboardFormatAvailable  = "_DbgIsClipboardFormatAvailable@4" @340
     398    IsDialogMessage            = "_DbgIsDialogMessageA@8"       @341
     399    IsDialogMessageA           = "_DbgIsDialogMessageA@8"       @342
     400    IsDialogMessageW           = "_DbgIsDialogMessageW@8"       @343
     401    IsDlgButtonChecked         = "_DbgIsDlgButtonChecked@8"     @344
     402    IsHungThread               = "_DbgIsHungThread@4"           @345
     403    IsHungAppWindow            = "_DbgIsHungAppWindow@8"        @1345
     404    IsIconic                   = "_DbgIsIconic@4"               @346
     405    IsMenu                     = "_DbgIsMenu@4"                 @347
     406    IsRectEmpty                = "_DbgIsRectEmpty@4"            @348
     407    IsWindow                   = "_DbgIsWindow@4"               @349
     408    IsWindowEnabled            = "_DbgIsWindowEnabled@4"        @350
     409    IsWindowUnicode            = "_DbgIsWindowUnicode@4"        @351
     410    IsWindowVisible            = "_DbgIsWindowVisible@4"        @352
     411    IsZoomed                   = "_DbgIsZoomed@4"               @353
     412    KillTimer                  = "_DbgKillTimer@8"              @354
     413    LoadAcceleratorsA          = "_DbgLoadAcceleratorsA@8"      @355
     414    LoadAcceleratorsW          = "_DbgLoadAcceleratorsW@8"      @356
     415    LoadBitmapA                = "_DbgLoadBitmapA@8"            @357
     416    LoadBitmapW                = "_DbgLoadBitmapW@8"            @358
     417    LoadCursorA                = "_DbgLoadCursorA@8"            @359
     418    LoadCursorFromFileA        = "_DbgLoadCursorFromFileA@4"    @360
     419    LoadCursorFromFileW        = "_DbgLoadCursorFromFileW@4"    @361
     420    LoadCursorW                = "_DbgLoadCursorW@8"            @362
     421    LoadIconA                  = "_DbgLoadIconA@8"              @363
     422    LoadIconW                  = "_DbgLoadIconW@8"              @364
     423    LoadImageA                 = "_DbgLoadImageA@24"            @365
     424    LoadImageW                 = "_DbgLoadImageW@24"            @366
     425    LoadKeyboardLayoutA        = "_DbgLoadKeyboardLayoutA@8"    @367
     426    LoadKeyboardLayoutW        = "_DbgLoadKeyboardLayoutW@8"    @368
     427    LoadMenuA                  = "_DbgLoadMenuA@8"              @369
    420428;Menu resources are always in Unicode format
    421     LoadMenuIndirectA          = _DbgLoadMenuIndirectW@4        @370
    422     LoadMenuIndirectW          = _DbgLoadMenuIndirectW@4        @371
    423     LoadMenuW                  = _DbgLoadMenuW@8                @372
    424     LoadStringA                = _DbgLoadStringA@16             @373
    425     LoadStringW                = _DbgLoadStringW@16             @374
     429    LoadMenuIndirectA          = "_DbgLoadMenuIndirectW@4"      @370
     430    LoadMenuIndirectW          = "_DbgLoadMenuIndirectW@4"      @371
     431    LoadMenuW                  = "_DbgLoadMenuW@8"              @372
     432    LoadStringA                = "_DbgLoadStringA@16"           @373
     433    LoadStringW                = "_DbgLoadStringW@16"           @374
    426434;    LockWindowStation          = _DbgLockWindowStation@??       @375
    427     LockWindowUpdate           = _DbgLockWindowUpdate@4         @376
    428     LookupIconIdFromDirectory  = _DbgLookupIconIdFromDirectory@8 @377
    429     LookupIconIdFromDirectoryEx  = _DbgLookupIconIdFromDirectoryEx@20 @378
    430     MapDialogRect              = _DbgMapDialogRect@8            @379
    431     MapVirtualKeyA             = _DbgMapVirtualKeyA@8           @380
    432     MapVirtualKeyExA           = _DbgMapVirtualKeyExA@12        @381
    433     MapVirtualKeyExW           = _DbgMapVirtualKeyExW@12        @382
    434     MapVirtualKeyW             = _DbgMapVirtualKeyW@8           @383
    435     MapWindowPoints            = _DbgMapWindowPoints@16         @384
    436     MenuItemFromPoint          = _DbgMenuItemFromPoint@16       @385
    437     MessageBeep                = _DbgMessageBeep@4              @386
    438     MessageBoxA                = _DbgMessageBoxA@16             @387
    439     MessageBoxExA              = _DbgMessageBoxExA@20           @388
    440     MessageBoxExW              = _DbgMessageBoxExW@20           @389
    441     MessageBoxIndirectA        = _DbgMessageBoxIndirectA@4     @390
    442     MessageBoxIndirectW        = _DbgMessageBoxIndirectW@4     @391
    443     MessageBoxW                = _DbgMessageBoxW@16             @392
     435    LockWindowUpdate           = "_DbgLockWindowUpdate@4"       @376
     436    LookupIconIdFromDirectory  = "_DbgLookupIconIdFromDirectory@8" @377
     437    LookupIconIdFromDirectoryEx  = "_DbgLookupIconIdFromDirectoryEx@20" @378
     438    MapDialogRect              = "_DbgMapDialogRect@8"          @379
     439    MapVirtualKeyA             = "_DbgMapVirtualKeyA@8"         @380
     440    MapVirtualKeyExA           = "_DbgMapVirtualKeyExA@12"      @381
     441    MapVirtualKeyExW           = "_DbgMapVirtualKeyExW@12"      @382
     442    MapVirtualKeyW             = "_DbgMapVirtualKeyW@8"         @383
     443    MapWindowPoints            = "_DbgMapWindowPoints@16"       @384
     444    MenuItemFromPoint          = "_DbgMenuItemFromPoint@16"     @385
     445    MessageBeep                = "_DbgMessageBeep@4"            @386
     446    MessageBoxA                = "_DbgMessageBoxA@16"           @387
     447    MessageBoxExA              = "_DbgMessageBoxExA@20"         @388
     448    MessageBoxExW              = "_DbgMessageBoxExW@20"         @389
     449    MessageBoxIndirectA        = "_DbgMessageBoxIndirectA@4"   @390
     450    MessageBoxIndirectW        = "_DbgMessageBoxIndirectW@4"   @391
     451    MessageBoxW                = "_DbgMessageBoxW@16"           @392
    444452;    ModifyAccess               = _DbgModifyAccess@??            @393
    445     ModifyMenuA                = _DbgModifyMenuA@20             @394
    446     ModifyMenuW                = _DbgModifyMenuW@20             @395
    447     MoveWindow                 = _DbgMoveWindow@24              @396
    448     MsgWaitForMultipleObjects  = _DbgMsgWaitForMultipleObjects@20 @397
    449     OemKeyScan                 = _DbgOemKeyScan@4               @398
    450     OemToCharA                 = _OemToCharA@8               @399
    451     OemToCharBuffA             = _OemToCharBuffA@12          @400
    452     OemToCharBuffW             = _OemToCharBuffW@12          @401
    453     OemToCharW                 = _OemToCharW@8               @402
    454     OffsetRect                 = _DbgOffsetRect@12              @403
    455     OpenClipboard              = _DbgOpenClipboard@4            @404
    456     OpenDesktopA               = _DbgOpenDesktopA@16            @405
    457     OpenDesktopW               = _DbgOpenDesktopW@16            @406
    458     OpenIcon                   = _DbgOpenIcon@4                 @407
    459     OpenInputDesktop           = _DbgOpenInputDesktop@12        @408
    460     OpenWindowStationA         = _DbgOpenWindowStationA@12      @409
    461     OpenWindowStationW         = _DbgOpenWindowStationW@12      @410
    462     PackDDElParam              = _DbgPackDDElParam@12           @411
    463     PaintDesktop               = _DbgPaintDesktop@4             @412
    464     PeekMessageA               = _DbgPeekMessageA@20            @413
    465     PeekMessageW               = _DbgPeekMessageW@20            @414
    466     PlaySoundEvent             = _DbgPlaySoundEvent@4           @415
    467     PostMessageA               = _DbgPostMessageA@16            @416
    468     PostMessageW               = _DbgPostMessageW@16            @417
    469     PostQuitMessage            = _DbgPostQuitMessage@4          @418
    470     PostThreadMessageA         = _DbgPostThreadMessageA@16      @419
    471     PostThreadMessageW         = _DbgPostThreadMessageW@16      @420
    472     PtInRect                   = _DbgPtInRect@12                @421
    473     RedrawWindow               = _DbgRedrawWindow@16            @422
    474     RegisterClassA             = _DbgRegisterClassA@4           @423
    475     RegisterClassExA           = _DbgRegisterClassExA@4         @424
    476     RegisterClassExW           = _DbgRegisterClassExW@4         @425
    477     RegisterClassW             = _DbgRegisterClassW@4           @426
    478     RegisterClipboardFormatA   = _DbgRegisterClipboardFormatA@4 @427
    479     RegisterClipboardFormatW   = _DbgRegisterClipboardFormatW@4 @428
    480     RegisterHotKey             = _DbgRegisterHotKey@16          @429
     453    ModifyMenuA                = "_DbgModifyMenuA@20"           @394
     454    ModifyMenuW                = "_DbgModifyMenuW@20"           @395
     455    MoveWindow                 = "_DbgMoveWindow@24"            @396
     456    MsgWaitForMultipleObjects  = "_DbgMsgWaitForMultipleObjects@20" @397
     457    OemKeyScan                 = "_DbgOemKeyScan@4"             @398
     458    OemToCharA                 = "_OemToCharA@8"             @399
     459    OemToCharBuffA             = "_OemToCharBuffA@12"        @400
     460    OemToCharBuffW             = "_OemToCharBuffW@12"        @401
     461    OemToCharW                 = "_OemToCharW@8"             @402
     462    OffsetRect                 = "_DbgOffsetRect@12"            @403
     463    OpenClipboard              = "_DbgOpenClipboard@4"          @404
     464    OpenDesktopA               = "_DbgOpenDesktopA@16"          @405
     465    OpenDesktopW               = "_DbgOpenDesktopW@16"          @406
     466    OpenIcon                   = "_DbgOpenIcon@4"               @407
     467    OpenInputDesktop           = "_DbgOpenInputDesktop@12"      @408
     468    OpenWindowStationA         = "_DbgOpenWindowStationA@12"    @409
     469    OpenWindowStationW         = "_DbgOpenWindowStationW@12"    @410
     470    PackDDElParam              = "_DbgPackDDElParam@12"         @411
     471    PaintDesktop               = "_DbgPaintDesktop@4"           @412
     472    PeekMessageA               = "_DbgPeekMessageA@20"          @413
     473    PeekMessageW               = "_DbgPeekMessageW@20"          @414
     474    PlaySoundEvent             = "_DbgPlaySoundEvent@4"         @415
     475    PostMessageA               = "_DbgPostMessageA@16"          @416
     476    PostMessageW               = "_DbgPostMessageW@16"          @417
     477    PostQuitMessage            = "_DbgPostQuitMessage@4"        @418
     478    PostThreadMessageA         = "_DbgPostThreadMessageA@16"    @419
     479    PostThreadMessageW         = "_DbgPostThreadMessageW@16"    @420
     480    PtInRect                   = "_DbgPtInRect@12"              @421
     481    RedrawWindow               = "_DbgRedrawWindow@16"          @422
     482    RegisterClassA             = "_DbgRegisterClassA@4"         @423
     483    RegisterClassExA           = "_DbgRegisterClassExA@4"       @424
     484    RegisterClassExW           = "_DbgRegisterClassExW@4"       @425
     485    RegisterClassW             = "_DbgRegisterClassW@4"         @426
     486    RegisterClipboardFormatA   = "_DbgRegisterClipboardFormatA@4" @427
     487    RegisterClipboardFormatW   = "_DbgRegisterClipboardFormatW@4" @428
     488    RegisterHotKey             = "_DbgRegisterHotKey@16"        @429
    481489;    RegisterLogonProcess       = _DbgRegisterLogonProcess@??    @430
    482     RegisterNetworkCapabilities  = _DbgRegisterNetworkCapabilities@8 @431
    483     RegisterSystemThread       = _DbgRegisterSystemThread@8     @432
    484     RegisterTasklist           = _DbgRegisterTasklist@4         @433
    485     RegisterWindowMessageA     = _DbgRegisterWindowMessageA@4  @434
    486     RegisterWindowMessageW     = _DbgRegisterWindowMessageW@4  @435
    487     ReleaseCapture             = _DbgReleaseCapture@0           @436
    488     ReleaseDC                  = _DbgReleaseDC@8                @437
    489     RemoveMenu                 = _DbgRemoveMenu@12              @438
    490     RemovePropA                = _DbgRemovePropA@8              @439
    491     RemovePropW                = _DbgRemovePropW@8              @440
    492     ReplyMessage               = _DbgReplyMessage@4             @441
    493     ReuseDDElParam             = _DbgReuseDDElParam@20          @442
    494     ScreenToClient             = _DbgScreenToClient@8           @443
    495     ScrollDC                   = _DbgScrollDC@28                @444
    496     ScrollWindow               = _DbgScrollWindow@20            @445
    497     ScrollWindowEx             = _DbgScrollWindowEx@32          @446
    498     SendDlgItemMessageA        = _DbgSendDlgItemMessageA@20     @447
    499     SendDlgItemMessageW        = _DbgSendDlgItemMessageW@20     @448
    500     SendMessageA               = _DbgSendMessageA@16            @449
    501     SendMessageCallbackA       = _DbgSendMessageCallbackA@24    @450
    502     SendMessageCallbackW       = _DbgSendMessageCallbackW@24    @451
    503     SendMessageTimeoutA        = _DbgSendMessageTimeoutA@28     @452
    504     SendMessageTimeoutW        = _DbgSendMessageTimeoutW@28     @453
    505     SendMessageW               = _DbgSendMessageW@16            @454
    506     SendNotifyMessageA         = _DbgSendNotifyMessageA@16      @455
    507     SendNotifyMessageW         = _DbgSendNotifyMessageW@16      @456
    508     SetActiveWindow            = _DbgSetActiveWindow@4          @457
    509     SetCapture                 = _DbgSetCapture@4               @458
    510     SetCaretBlinkTime          = _DbgSetCaretBlinkTime@4        @459
    511     SetCaretPos                = _DbgSetCaretPos@8              @460
    512     SetClassLongA              = _DbgSetClassLongA@12           @461
    513     SetClassLongW              = _DbgSetClassLongW@12           @462
    514     SetClassWord               = _DbgSetClassWord@12            @463
    515     SetClipboardData           = _DbgSetClipboardData@8         @464
    516     SetClipboardViewer         = _DbgSetClipboardViewer@4       @465
    517     SetCursor                  = _DbgSetCursor@4                @466
    518     SetCursorPos               = _DbgSetCursorPos@8             @467
    519     SetDebugErrorLevel         = _DbgSetDebugErrorLevel@4       @468
    520     SetDeskWallPaper           = _DbgSetDeskWallPaper@4         @469
     490    RegisterNetworkCapabilities  = "_DbgRegisterNetworkCapabilities@8" @431
     491    RegisterSystemThread       = "_DbgRegisterSystemThread@8"   @432
     492    RegisterTasklist           = "_DbgRegisterTasklist@4"       @433
     493    RegisterWindowMessageA     = "_DbgRegisterWindowMessageA@4" @434
     494    RegisterWindowMessageW     = "_DbgRegisterWindowMessageW@4" @435
     495    ReleaseCapture             = "_DbgReleaseCapture@0"         @436
     496    ReleaseDC                  = "_DbgReleaseDC@8"              @437
     497    RemoveMenu                 = "_DbgRemoveMenu@12"            @438
     498    RemovePropA                = "_DbgRemovePropA@8"            @439
     499    RemovePropW                = "_DbgRemovePropW@8"            @440
     500    ReplyMessage               = "_DbgReplyMessage@4"           @441
     501    ReuseDDElParam             = "_DbgReuseDDElParam@20"        @442
     502    ScreenToClient             = "_DbgScreenToClient@8"         @443
     503    ScrollDC                   = "_DbgScrollDC@28"              @444
     504    ScrollWindow               = "_DbgScrollWindow@20"          @445
     505    ScrollWindowEx             = "_DbgScrollWindowEx@32"        @446
     506    SendDlgItemMessageA        = "_DbgSendDlgItemMessageA@20"   @447
     507    SendDlgItemMessageW        = "_DbgSendDlgItemMessageW@20"   @448
     508    SendMessageA               = "_DbgSendMessageA@16"          @449
     509    SendMessageCallbackA       = "_DbgSendMessageCallbackA@24"  @450
     510    SendMessageCallbackW       = "_DbgSendMessageCallbackW@24"  @451
     511    SendMessageTimeoutA        = "_DbgSendMessageTimeoutA@28"   @452
     512    SendMessageTimeoutW        = "_DbgSendMessageTimeoutW@28"   @453
     513    SendMessageW               = "_DbgSendMessageW@16"          @454
     514    SendNotifyMessageA         = "_DbgSendNotifyMessageA@16"    @455
     515    SendNotifyMessageW         = "_DbgSendNotifyMessageW@16"    @456
     516    SetActiveWindow            = "_DbgSetActiveWindow@4"        @457
     517    SetCapture                 = "_DbgSetCapture@4"             @458
     518    SetCaretBlinkTime          = "_DbgSetCaretBlinkTime@4"      @459
     519    SetCaretPos                = "_DbgSetCaretPos@8"            @460
     520    SetClassLongA              = "_DbgSetClassLongA@12"         @461
     521    SetClassLongW              = "_DbgSetClassLongW@12"         @462
     522    SetClassWord               = "_DbgSetClassWord@12"          @463
     523    SetClipboardData           = "_DbgSetClipboardData@8"       @464
     524    SetClipboardViewer         = "_DbgSetClipboardViewer@4"     @465
     525    SetCursor                  = "_DbgSetCursor@4"              @466
     526    SetCursorPos               = "_DbgSetCursorPos@8"           @467
     527    SetDebugErrorLevel         = "_DbgSetDebugErrorLevel@4"     @468
     528    SetDeskWallPaper           = "_DbgSetDeskWallPaper@4"       @469
    521529;    SetDesktopBitmap           = _DbgSetDesktopBitmap@??        @470
    522     SetDlgItemInt              = _DbgSetDlgItemInt@16           @471
    523     SetDlgItemTextA            = _DbgSetDlgItemTextA@12         @472
    524     SetDlgItemTextW            = _DbgSetDlgItemTextW@12         @473
    525     SetDoubleClickTime         = _DbgSetDoubleClickTime@4       @474
    526     SetFocus                   = _DbgSetFocus@4                 @475
    527     SetForegroundWindow        = _DbgSetForegroundWindow@4      @476
    528     SetInternalWindowPos       = _DbgSetInternalWindowPos@16    @477
    529     SetKeyboardState           = _DbgSetKeyboardState@4         @478
    530     SetLastErrorEx             = _DbgSetLastErrorEx@8           @479
    531     SetLogonNotifyWindow       = _DbgSetLogonNotifyWindow@8     @480
    532     SetMenu                    = _DbgSetMenu@8                  @481
    533     SetMenuContextHelpId       = _DbgSetMenuContextHelpId@8     @482
    534     SetMenuDefaultItem         = _DbgSetMenuDefaultItem@12      @483
    535     SetMenuItemBitmaps         = _DbgSetMenuItemBitmaps@20      @484
    536     SetMenuItemInfoA           = _DbgSetMenuItemInfoA@16        @485
    537     SetMenuItemInfoW           = _DbgSetMenuItemInfoW@16        @486
    538     SetMessageExtraInfo        = _DbgSetMessageExtraInfo@4      @487
    539     SetMessageQueue            = _DbgSetMessageQueue@4          @488
    540     SetParent                  = _DbgSetParent@8                @489
    541     SetProcessWindowStation    = _DbgSetProcessWindowStation@4  @490
    542     SetProgmanWindow           = _DbgSetProgmanWindow@4         @1522
    543     SetPropA                   = _DbgSetPropA@12                @491
    544     SetPropW                   = _DbgSetPropW@12                @492
    545     SetRect                    = _DbgSetRect@20                 @493
    546     SetRectEmpty               = _DbgSetRectEmpty@4             @494
    547     SetScrollInfo              = _DbgSetScrollInfo@16           @495
    548     SetScrollPos               = _DbgSetScrollPos@16            @496
    549     SetScrollRange             = _DbgSetScrollRange@20          @497
    550     SetShellWindow             = _DbgSetShellWindow@4           @498
    551     SetShellWindowEx           = _DbgSetShellWindowEx@8         @1531
    552     SetSysColors               = _DbgSetSysColors@12            @499
    553     SetSysColorsTemp           = _DbgSetSysColorsTemp@0         @500
    554     SetSystemCursor            = _DbgSetSystemCursor@8          @501
    555     SetTaskmanWindow           = _DbgSetTaskmanWindow@4         @1537
    556     SetThreadDesktop           = _DbgSetThreadDesktop@4         @502
    557     SetTimer                   = _DbgSetTimer@16                @503
    558     SetUserObjectInformationA  = _DbgSetUserObjectInformationA@16 @504
    559     SetUserObjectInformationW  = _DbgSetUserObjectInformationW@16 @505
    560     SetUserObjectSecurity      = _DbgSetUserObjectSecurity@12  @506
    561     SetWindowContextHelpId     = _DbgSetWindowContextHelpId@8  @507
     530    SetDlgItemInt              = "_DbgSetDlgItemInt@16"         @471
     531    SetDlgItemTextA            = "_DbgSetDlgItemTextA@12"       @472
     532    SetDlgItemTextW            = "_DbgSetDlgItemTextW@12"       @473
     533    SetDoubleClickTime         = "_DbgSetDoubleClickTime@4"     @474
     534    SetFocus                   = "_DbgSetFocus@4"               @475
     535    SetForegroundWindow        = "_DbgSetForegroundWindow@4"    @476
     536    SetInternalWindowPos       = "_DbgSetInternalWindowPos@16"  @477
     537    SetKeyboardState           = "_DbgSetKeyboardState@4"       @478
     538    SetLastErrorEx             = "_DbgSetLastErrorEx@8"         @479
     539    SetLogonNotifyWindow       = "_DbgSetLogonNotifyWindow@8"   @480
     540    SetMenu                    = "_DbgSetMenu@8"                @481
     541    SetMenuContextHelpId       = "_DbgSetMenuContextHelpId@8"   @482
     542    SetMenuDefaultItem         = "_DbgSetMenuDefaultItem@12"    @483
     543    SetMenuItemBitmaps         = "_DbgSetMenuItemBitmaps@20"    @484
     544    SetMenuItemInfoA           = "_DbgSetMenuItemInfoA@16"      @485
     545    SetMenuItemInfoW           = "_DbgSetMenuItemInfoW@16"      @486
     546    SetMessageExtraInfo        = "_DbgSetMessageExtraInfo@4"    @487
     547    SetMessageQueue            = "_DbgSetMessageQueue@4"        @488
     548    SetParent                  = "_DbgSetParent@8"              @489
     549    SetProcessWindowStation    = "_DbgSetProcessWindowStation@4"  @490
     550    SetProgmanWindow           = "_DbgSetProgmanWindow@4"       @1522
     551    SetPropA                   = "_DbgSetPropA@12"              @491
     552    SetPropW                   = "_DbgSetPropW@12"              @492
     553    SetRect                    = "_DbgSetRect@20"               @493
     554    SetRectEmpty               = "_DbgSetRectEmpty@4"           @494
     555    SetScrollInfo              = "_DbgSetScrollInfo@16"         @495
     556    SetScrollPos               = "_DbgSetScrollPos@16"          @496
     557    SetScrollRange             = "_DbgSetScrollRange@20"        @497
     558    SetShellWindow             = "_DbgSetShellWindow@4"         @498
     559    SetShellWindowEx           = "_DbgSetShellWindowEx@8"       @1531
     560    SetSysColors               = "_DbgSetSysColors@12"          @499
     561    SetSysColorsTemp           = "_DbgSetSysColorsTemp@0"       @500
     562    SetSystemCursor            = "_DbgSetSystemCursor@8"        @501
     563    SetTaskmanWindow           = "_DbgSetTaskmanWindow@4"       @1537
     564    SetThreadDesktop           = "_DbgSetThreadDesktop@4"       @502
     565    SetTimer                   = "_DbgSetTimer@16"              @503
     566    SetUserObjectInformationA  = "_DbgSetUserObjectInformationA@16" @504
     567    SetUserObjectInformationW  = "_DbgSetUserObjectInformationW@16" @505
     568    SetUserObjectSecurity      = "_DbgSetUserObjectSecurity@12" @506
     569    SetWindowContextHelpId     = "_DbgSetWindowContextHelpId@8" @507
    562570;    SetWindowFullScreenState   = _DbgSetWindowFullScreenState@?? @508
    563     SetWindowLongA             = _DbgSetWindowLongA@12          @509
    564     SetWindowLongW             = _DbgSetWindowLongW@12          @510
    565     SetWindowPlacement         = _DbgSetWindowPlacement@8       @511
    566     SetWindowPos               = _DbgSetWindowPos@28            @512
    567     SetWindowRgn               = _DbgSetWindowRgn@12            @513
    568     SetWindowTextA             = _DbgSetWindowTextA@8           @514
    569     SetWindowTextW             = _DbgSetWindowTextW@8           @515
    570     SetWindowWord              = _DbgSetWindowWord@12           @516
    571     SetWindowsHookA            = _DbgSetWindowsHookA@8          @517
    572     SetWindowsHookExA          = _DbgSetWindowsHookExA@16       @518
    573     SetWindowsHookExW          = _DbgSetWindowsHookExW@16       @519
    574     SetWindowsHookW            = _DbgSetWindowsHookW@8          @520
    575     ShowCaret                  = _DbgShowCaret@4                @521
    576     ShowCursor                 = _DbgShowCursor@4               @522
    577     ShowOwnedPopups            = _DbgShowOwnedPopups@8          @523
    578     ShowScrollBar              = _DbgShowScrollBar@12           @524
    579     ShowWindow                 = _DbgShowWindow@8               @525
    580     ShowWindowAsync            = _DbgShowWindowAsync@8          @526
    581     SubtractRect               = _DbgSubtractRect@12            @527
    582     SwapMouseButton            = _DbgSwapMouseButton@4          @528
    583     SwitchDesktop              = _DbgSwitchDesktop@4            @529
    584     SwitchToThisWindow         = _DbgSwitchToThisWindow@8       @530
    585     SysErrorBox                = _DbgSysErrorBox@12             @531
    586     SystemParametersInfoA      = _DbgSystemParametersInfoA@16  @532
    587     SystemParametersInfoW      = _DbgSystemParametersInfoW@16  @533
    588     TabbedTextOutA             = _DbgTabbedTextOutA@32          @534
    589     TabbedTextOutW             = _DbgTabbedTextOutW@32          @535
    590     TileChildWindows           = _DbgTileChildWindows@8         @536
    591     TileWindows                = _DbgTileWindows@20             @537
    592     ToAscii                    = _DbgToAscii@20                 @538
    593     ToAsciiEx                  = _DbgToAsciiEx@24               @539
    594     ToUnicode                  = _DbgToUnicode@24               @540
    595     TrackPopupMenu             = _DbgTrackPopupMenu@28          @541
    596     TrackPopupMenuEx           = _DbgTrackPopupMenuEx@24        @542
    597     TranslateAccelerator       = _DbgTranslateAcceleratorA@12  @543
    598     TranslateAcceleratorA      = _DbgTranslateAcceleratorA@12  @544
    599     TranslateAcceleratorW      = _DbgTranslateAcceleratorA@12  @545 ; the same
    600     TranslateMDISysAccel       = _DbgTranslateMDISysAccel@8     @546
    601     TranslateMessage           = _DbgTranslateMessage@4         @547
    602     UnhookWindowsHook          = _DbgUnhookWindowsHook@8        @548
    603     UnhookWindowsHookEx        = _DbgUnhookWindowsHookEx@4      @549
    604     UnionRect                  = _DbgUnionRect@12               @550
    605     UnloadKeyboardLayout       = _DbgUnloadKeyboardLayout@4     @551
     571    SetWindowLongA             = "_DbgSetWindowLongA@12"        @509
     572    SetWindowLongW             = "_DbgSetWindowLongW@12"        @510
     573    SetWindowPlacement         = "_DbgSetWindowPlacement@8"     @511
     574    SetWindowPos               = "_DbgSetWindowPos@28"          @512
     575    SetWindowRgn               = "_DbgSetWindowRgn@12"          @513
     576    SetWindowTextA             = "_DbgSetWindowTextA@8"         @514
     577    SetWindowTextW             = "_DbgSetWindowTextW@8"         @515
     578    SetWindowWord              = "_DbgSetWindowWord@12"         @516
     579    SetWindowsHookA            = "_DbgSetWindowsHookA@8"        @517
     580    SetWindowsHookExA          = "_DbgSetWindowsHookExA@16"     @518
     581    SetWindowsHookExW          = "_DbgSetWindowsHookExW@16"     @519
     582    SetWindowsHookW            = "_DbgSetWindowsHookW@8"        @520
     583    ShowCaret                  = "_DbgShowCaret@4"              @521
     584    ShowCursor                 = "_DbgShowCursor@4"             @522
     585    ShowOwnedPopups            = "_DbgShowOwnedPopups@8"        @523
     586    ShowScrollBar              = "_DbgShowScrollBar@12"         @524
     587    ShowWindow                 = "_DbgShowWindow@8"             @525
     588    ShowWindowAsync            = "_DbgShowWindowAsync@8"        @526
     589    SubtractRect               = "_DbgSubtractRect@12"          @527
     590    SwapMouseButton            = "_DbgSwapMouseButton@4"        @528
     591    SwitchDesktop              = "_DbgSwitchDesktop@4"          @529
     592    SwitchToThisWindow         = "_DbgSwitchToThisWindow@8"     @530
     593    SysErrorBox                = "_DbgSysErrorBox@12"           @531
     594    SystemParametersInfoA      = "_DbgSystemParametersInfoA@16" @532
     595    SystemParametersInfoW      = "_DbgSystemParametersInfoW@16" @533
     596    TabbedTextOutA             = "_DbgTabbedTextOutA@32"        @534
     597    TabbedTextOutW             = "_DbgTabbedTextOutW@32"        @535
     598    TileChildWindows           = "_DbgTileChildWindows@8"       @536
     599    TileWindows                = "_DbgTileWindows@20"           @537
     600    ToAscii                    = "_DbgToAscii@20"               @538
     601    ToAsciiEx                  = "_DbgToAsciiEx@24"             @539
     602    ToUnicode                  = "_DbgToUnicode@24"             @540
     603    TrackPopupMenu             = "_DbgTrackPopupMenu@28"        @541
     604    TrackPopupMenuEx           = "_DbgTrackPopupMenuEx@24"      @542
     605    TranslateAccelerator       = "_DbgTranslateAcceleratorA@12" @543
     606    TranslateAcceleratorA      = "_DbgTranslateAcceleratorA@12" @544
     607    TranslateAcceleratorW      = "_DbgTranslateAcceleratorA@12" @545 ; the same
     608    TranslateMDISysAccel       = "_DbgTranslateMDISysAccel@8"   @546
     609    TranslateMessage           = "_DbgTranslateMessage@4"       @547
     610    UnhookWindowsHook          = "_DbgUnhookWindowsHook@8"      @548
     611    UnhookWindowsHookEx        = "_DbgUnhookWindowsHookEx@4"    @549
     612    UnionRect                  = "_DbgUnionRect@12"             @550
     613    UnloadKeyboardLayout       = "_DbgUnloadKeyboardLayout@4"   @551
    606614;    UnlockWindowStation        = _DbgUnlockWindowStation@??     @552
    607     UnpackDDElParam            = _DbgUnpackDDElParam@16         @553
    608     UnregisterClassA           = _DbgUnregisterClassA@8         @554
    609     UnregisterClassW           = _DbgUnregisterClassW@8         @555
    610     UnregisterHotKey           = _DbgUnregisterHotKey@8         @556
    611     UpdateWindow               = _DbgUpdateWindow@4             @557
     615    UnpackDDElParam            = "_DbgUnpackDDElParam@16"       @553
     616    UnregisterClassA           = "_DbgUnregisterClassA@8"       @554
     617    UnregisterClassW           = "_DbgUnregisterClassW@8"       @555
     618    UnregisterHotKey           = "_DbgUnregisterHotKey@8"       @556
     619    UpdateWindow               = "_DbgUpdateWindow@4"           @557
    612620;    UserClientDllInitialize    = _DbgUserClientDllInitialize@?? @558
    613     UserSignalProc             = _DbgUserSignalProc@16          @559
    614     ValidateRect               = _DbgValidateRect@8             @560
    615     ValidateRgn                = _DbgValidateRgn@8              @561
    616     VkKeyScanA                 = _DbgVkKeyScanA@4              @562
    617     VkKeyScanExA               = _DbgVkKeyScanExA@8             @563
    618     VkKeyScanExW               = _DbgVkKeyScanExW@8             @564
    619     VkKeyScanW                 = _DbgVkKeyScanW@4               @565
     621    UserSignalProc             = "_DbgUserSignalProc@16"        @559
     622    ValidateRect               = "_DbgValidateRect@8"           @560
     623    ValidateRgn                = "_DbgValidateRgn@8"            @561
     624    VkKeyScanA                 = "_DbgVkKeyScanA@4"            @562
     625    VkKeyScanExA               = "_DbgVkKeyScanExA@8"           @563
     626    VkKeyScanExW               = "_DbgVkKeyScanExW@8"           @564
     627    VkKeyScanW                 = "_DbgVkKeyScanW@4"             @565
    620628;    WNDPROC_CALLBACK           = _DbgWNDPROC_CALLBACK@??        @566
    621     WaitForInputIdle           = _DbgWaitForInputIdle@8         @567
    622     WaitMessage                = _DbgWaitMessage@0              @568
    623     WinHelpA                   = _DbgWinHelpA@16                @569
    624     WinHelpW                   = _DbgWinHelpW@16                @570
    625     WinOldAppHackoMatic        = _DbgWinOldAppHackoMatic@4      @571
    626     WindowFromDC               = _DbgWindowFromDC@4             @572
    627     WindowFromPoint            = _DbgWindowFromPoint@8          @573
    628     YieldTask                  = _DbgYieldTask@0                @574
    629     keybd_event                = _Dbgkeybd_event@16             @575
    630     mouse_event                = _Dbgmouse_event@20             @576
     629    WaitForInputIdle           = "_DbgWaitForInputIdle@8"       @567
     630    WaitMessage                = "_DbgWaitMessage@0"            @568
     631    WinHelpA                   = "_DbgWinHelpA@16"              @569
     632    WinHelpW                   = "_DbgWinHelpW@16"              @570
     633    WinOldAppHackoMatic        = "_DbgWinOldAppHackoMatic@4"    @571
     634    WindowFromDC               = "_DbgWindowFromDC@4"           @572
     635    WindowFromPoint            = "_DbgWindowFromPoint@8"        @573
     636    YieldTask                  = "_DbgYieldTask@0"              @574
     637    keybd_event                = "_Dbgkeybd_event@16"           @575
     638    mouse_event                = "_Dbgmouse_event@20"           @576
    631639    wsprintfA                  = _wsprintfA                   @577
    632640    wsprintfW                  = _wsprintfW                   @578
    633     wvsprintfA                 = _DbgwvsprintfA@12              @579
    634     wvsprintfW                 = _DbgwvsprintfW@12              @580
    635     wsprintfW                  = sprintfW                       @581
    636 
    637     TrackMouseEvent            = _DbgTrackMouseEvent@4          @600 ;ordinal??
    638     SendInput                  = _DbgSendInput@12               @601 ;ordinal??
    639     GetGUIThreadInfo           = _DbgGetGUIThreadInfo@8         @602
    640 
    641     ChangeDisplaySettingsExA   = _DbgChangeDisplaySettingsExA@20 @604
    642     ChangeDisplaySettingsExW   = _DbgChangeDisplaySettingsExW@20 @605
    643 
    644     NotifyWinEvent             = _DbgNotifyWinEvent@16          @606
    645     UnhookWinEvent             = _DbgUnhookWinEvent@4           @607
    646     SetWinEventHook            = _DbgSetWinEventHook@28         @608
    647 
    648     GetAncestor                = _DbgGetAncestor@8              @609
    649     GetWindowModuleFileNameA   = _DbgGetWindowModuleFileNameA@12 @610
    650 
    651     RealGetWindowClassA              = _DbgRealGetWindowClassA@12           @611
    652     RealGetWindowClassW              = _DbgRealGetWindowClassW@12           @612
    653     FlashWindowEx                    = _FlashWindowEx@4                  @613
    654     ToUnicodeEx                      = _ToUnicodeEx@28                   @614
     641    wvsprintfA                 = "_DbgwvsprintfA@12"            @579
     642    wvsprintfW                 = "_DbgwvsprintfW@12"            @580
     643
     644    TrackMouseEvent            = "_DbgTrackMouseEvent@4"        @600 ;ordinal??
     645    SendInput                  = "_DbgSendInput@12"             @601 ;ordinal??
     646    GetGUIThreadInfo           = "_DbgGetGUIThreadInfo@8"       @602
     647
     648    ChangeDisplaySettingsExA   = "_DbgChangeDisplaySettingsExA@20" @604
     649    ChangeDisplaySettingsExW   = "_DbgChangeDisplaySettingsExW@20" @605
     650
     651    NotifyWinEvent             = "_DbgNotifyWinEvent@16"        @606
     652    UnhookWinEvent             = "_DbgUnhookWinEvent@4"         @607
     653    SetWinEventHook            = "_DbgSetWinEventHook@28"       @608
     654
     655    GetAncestor                = "_DbgGetAncestor@8"            @609
     656    GetWindowModuleFileNameA   = "_DbgGetWindowModuleFileNameA@12" @610
     657
     658    RealGetWindowClassA              = "_DbgRealGetWindowClassA@12"         @611
     659    RealGetWindowClassW              = "_DbgRealGetWindowClassW@12"         @612
     660    FlashWindowEx                    = "_FlashWindowEx@4"                @613
     661    ToUnicodeEx                      = "_ToUnicodeEx@28"                 @614
    655662
    656663;------------
    657664; Windows 98
    658665;------------
    659     GetMenuInfo                = _DbgGetMenuInfo@8              @800
    660     SetMenuInfo                = _DbgSetMenuInfo@8              @801
    661 
    662 
    663     GetMonitorInfoW               = _DbgGetMonitorInfoW@8          @1000
    664     GetMonitorInfoA               = _DbgGetMonitorInfoA@8          @1001
    665     MonitorFromWindow          = _DbgMonitorFromWindow@8           @1002
    666     MonitorFromRect            = _DbgMonitorFromRect@8             @1003
    667     MonitorFromPoint              = _DbgMonitorFromPoint@12        @1004
    668     EnumDisplayMonitors        = _DbgEnumDisplayMonitors@16        @1005
    669     EnumDisplayDevicesA        = _DbgEnumDisplayDevicesA@16        @1006
    670     EnumDisplayDevicesW        = _DbgEnumDisplayDevicesW@16        @1007
     666    GetMenuInfo                = "_DbgGetMenuInfo@8"            @800
     667    SetMenuInfo                = "_DbgSetMenuInfo@8"            @801
     668
     669
     670    GetMonitorInfoW               = "_DbgGetMonitorInfoW@8"        @1000
     671    GetMonitorInfoA               = "_DbgGetMonitorInfoA@8"        @1001
     672    MonitorFromWindow          = "_DbgMonitorFromWindow@8"         @1002
     673    MonitorFromRect            = "_DbgMonitorFromRect@8"           @1003
     674    MonitorFromPoint              = "_DbgMonitorFromPoint@12"      @1004
     675    EnumDisplayMonitors        = "_DbgEnumDisplayMonitors@16"      @1005
     676    EnumDisplayDevicesA        = "_DbgEnumDisplayDevicesA@16"      @1006
     677    EnumDisplayDevicesW        = "_DbgEnumDisplayDevicesW@16"      @1007
    671678
    672679
     
    674681; obsolete WINNLS APIs (Far East)
    675682;----------------------------------
    676     SendIMEMessageExA          = _DbgSendIMEMessageExA@8           @1010
    677     SendIMEMessageExW          = _DbgSendIMEMessageExW@8           @1011
    678 
    679     WINNLSEnableIME            = _DbgWINNLSEnableIME@8             @1012
    680     WINNLSGetEnableStatus      = _DbgWINNLSGetEnableStatus@4       @1013
    681     WINNLSGetIMEHotkey         = _DbgWINNLSGetIMEHotkey@4          @1014
     683    SendIMEMessageExA          = "_DbgSendIMEMessageExA@8"         @1010
     684    SendIMEMessageExW          = "_DbgSendIMEMessageExW@8"         @1011
     685
     686    WINNLSEnableIME            = "_DbgWINNLSEnableIME@8"           @1012
     687    WINNLSGetEnableStatus      = "_DbgWINNLSGetEnableStatus@4"     @1013
     688    WINNLSGetIMEHotkey         = "_DbgWINNLSGetIMEHotkey@4"        @1014
    682689
    683690;-------------------------------
    684691; Additional (undocumented) APIs
    685692;-------------------------------
    686     PrivateExtractIconsW       = _PrivateExtractIconsW@32      @1015
    687     PrivateExtractIconsA       = _PrivateExtractIconsA@32      @1016
    688     PrivateExtractIconExW      = _PrivateExtractIconExW@20     @1017
    689     PrivateExtractIconExA      = _PrivateExtractIconExA@20     @1018
     693    PrivateExtractIconsW       = "_PrivateExtractIconsW@32"    @1015
     694    PrivateExtractIconsA       = "_PrivateExtractIconsA@32"    @1016
     695    PrivateExtractIconExW      = "_PrivateExtractIconExW@20"   @1017
     696    PrivateExtractIconExA      = "_PrivateExtractIconExA@20"   @1018
    690697
    691698;
     
    697704; Wine/Odin helper function
    698705;------------------------------------------------------------------------------
    699     GetSysColorPen              = _GetSysColorPen@4              @2002 NONAME
    700     GetPattern55AABrush         = _GetPattern55AABrush@0         @2003 NONAME
    701     GetPattern55AABitmap        = _GetPattern55AABitmap@0        @2004 NONAME
    702 
    703     _Win32ToOS2Handle@4                                          @2006 NONAME
    704     _OS2ToWin32Handle@4                                          @2012 NONAME
     706    GetSysColorPen              = "_GetSysColorPen@4"            @2002 NONAME
     707    GetPattern55AABrush         = "_GetPattern55AABrush@0"       @2003 NONAME
     708    GetPattern55AABitmap        = "_GetPattern55AABitmap@0"      @2004 NONAME
     709
     710    "_Win32ToOS2Handle@4"                                        @2006 NONAME
     711    "_OS2ToWin32Handle@4"                                        @2012 NONAME
    705712
    706713;;    _KeyTranslatePMToWin@4                                       @2008 NONAME
    707     _KeyTranslatePMToWinBuf@12                                   @2009 NONAME
    708 
    709     _wvsnprintfA@16                                              @2010 NONAME
     714    "_KeyTranslatePMToWinBuf@12"                                 @2009 NONAME
     715
     716    "_wvsnprintfA@16"                                            @2010 NONAME
    710717;Export for MSACM32
    711718    _wsnprintfA                                                  @2100 NONAME
    712719
    713720    ;SvL: Used by GDI32
    714     OSLibGetScreenHeight__Fv                                     @2013 NONAME
    715     OSLibGetScreenWidth__Fv                                      @2014 NONAME
    716 
    717     _wvsnprintfW@16                                              @2015 NONAME
    718 
    719     _setPageXForm@4                                              @2016 NONAME
    720     _clientHeight@8                                              @2017 NONAME
    721     _changePageXForm@20                                          @2018 NONAME
    722     _removeClientArea@4                                          @2019 NONAME
    723     _setMapModeDC@8                                              @2020 NONAME
    724     _TestWideLine@4                                              @2021 NONAME
    725     _Calculate1PixelDelta@4                                      @2022 NONAME
    726     _DIB_GetDIBWidthBytes@8                                      @2023 NONAME
    727     _BITMAP_GetWidthBytes@8                                      @2024 NONAME
    728     _selectClientArea@4                                          @2025 NONAME
    729 
    730     _CreateFakeWindowEx@8 = _CreateFakeWindowEx@8                @2028
    731     _DestroyFakeWindow@4  = _DestroyFakeWindow@4                 @2035
    732     _checkOrigin@4                                               @2029 NONAME
     721    _OSLibGetScreenHeight                                        @2013 NONAME
     722    _OSLibGetScreenWidth                                         @2014 NONAME
     723
     724    "_wvsnprintfW@16"                                            @2015 NONAME
     725
     726    "_setPageXForm@4"                                            @2016 NONAME
     727    "_clientHeight@8"                                            @2017 NONAME
     728    "_changePageXForm@20"                                        @2018 NONAME
     729    "_removeClientArea@4"                                        @2019 NONAME
     730    "_setMapModeDC@8"                                            @2020 NONAME
     731    "_TestWideLine@4"                                            @2021 NONAME
     732    "_Calculate1PixelDelta@4"                                    @2022 NONAME
     733    "_DIB_GetDIBWidthBytes@8"                                    @2023 NONAME
     734    "_BITMAP_GetWidthBytes@8"                                    @2024 NONAME
     735    "_selectClientArea@4"                                        @2025 NONAME
     736
     737    "_CreateFakeWindowEx@8" = "_CreateFakeWindowEx@8"              @2028
     738    "_DestroyFakeWindow@4"= "_DestroyFakeWindow@4"               @2035
     739    "_checkOrigin@4"                                             @2029 NONAME
    733740
    734741    ; Do NOT change this ordinal
    735     _SetWindowAppearance@4                                       @2030
    736 
    737     _ConvertIconGroup@12                                         @2032 NONAME
    738     _ConvertIconGroupIndirect@12                                 @2037 NONAME
    739 
    740     _WinSetVisibleRgnNotifyProc@12                               @2033 NONAME
    741     _Win32ToOS2FrameHandle@4                                     @2034 NONAME
    742 
    743     _CustForceMonoCursor@0                                       @2036 NONAME
    744 
    745     _OSLibDragOver@12                                            @2038 NONAME
    746     _OSLibDragLeave@4                                            @2039 NONAME
    747     _OSLibDragDrop@16                                            @2040 NONAME
    748     _OSLibCreateDragStruct@16                                    @2041 NONAME
    749     _OSLibFreeDragStruct@4                                       @2042 NONAME
    750     _clipboardPMToOdinFormat@4                                   @2043 NONAME
    751     _clipboardOdinToPMFormat@4                                   @2044 NONAME
    752 
    753     _GetOS2Icon@4                                                @2045 NONAME
     742    "_SetWindowAppearance@4"                                     @2030
     743
     744    "_ConvertIconGroup@12"                                       @2032 NONAME
     745    "_ConvertIconGroupIndirect@12"                               @2037 NONAME
     746
     747    "_WinSetVisibleRgnNotifyProc@12"                             @2033 NONAME
     748    "_Win32ToOS2FrameHandle@4"                                   @2034 NONAME
     749
     750    "_CustForceMonoCursor@0"                                     @2036 NONAME
     751
     752    "_OSLibDragOver@12"                                          @2038 NONAME
     753    "_OSLibDragLeave@4"                                          @2039 NONAME
     754    "_OSLibDragDrop@16"                                          @2040 NONAME
     755    "_OSLibCreateDragStruct@16"                                  @2041 NONAME
     756    "_OSLibFreeDragStruct@4"                                     @2042 NONAME
     757    "_clipboardPMToOdinFormat@4"                                 @2043 NONAME
     758    "_clipboardOdinToPMFormat@4"                                 @2044 NONAME
     759
     760    "_GetOS2Icon@4"                                              @2045 NONAME
    754761
    755762; used for Flash plugin
    756     GetWindowInfo = _GetWindowInfo@8                             @2046
     763    GetWindowInfo = "_GetWindowInfo@8"                           @2046
    757764    _HPSToHDC                                                    @2047
    758765
    759     _RunOnAuxThread@20                                           @2048 NONAME
    760     _RunOnAuxThreadAndWait@24                                    @2049 NONAME
     766    "_RunOnAuxThread@20"                                         @2048 NONAME
     767    "_RunOnAuxThreadAndWait@24"                                  @2049 NONAME
  • trunk/src/user32/win32class.cpp

    r10587 r21916  
    3232#include <assert.h>
    3333#include <misc.h>
    34 #include <win32class.h>
    35 #include <win32wnd.h>
    36 #include <win\winproc.h>
     34#include "win32class.h"
     35#include "win32wnd.h"
     36#include <win/winproc.h>
    3737#include <unicode.h>
    3838
     
    4040#include "dbglocal.h"
    4141
    42 static fDestroyAll = FALSE;
     42static BOOL fDestroyAll = FALSE;
    4343
    4444//******************************************************************************
     
    169169
    170170  if(pfnWindowProcA)
    171       WINPROC_FreeProc(pfnWindowProcA, WIN_PROC_CLASS);
     171      WINPROC_FreeProc((HWINDOWPROC)pfnWindowProcA, WIN_PROC_CLASS);
    172172  if(pfnWindowProcW)
    173       WINPROC_FreeProc(pfnWindowProcW, WIN_PROC_CLASS);
     173      WINPROC_FreeProc((HWINDOWPROC)pfnWindowProcW, WIN_PROC_CLASS);
    174174
    175175  if(userClassBytes)    free(userClassBytes);
     
    457457                        pfnWindowProc = pfnWindowProcW;
    458458                }
    459                 return (ULONG) WINPROC_GetProc(pfnWindowProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);
     459                return (ULONG) WINPROC_GetProc((HWINDOWPROC)pfnWindowProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);
    460460        }
    461461        case GCW_ATOM: //TODO: does this really happen in windows?
     
    556556                        proc = &pfnWindowProcW;
    557557                }
    558                 rc = (LONG)WINPROC_GetProc(*proc, type );
     558                rc = (LONG)WINPROC_GetProc((HWINDOWPROC)*proc, type );
    559559                WINPROC_SetProc((HWINDOWPROC *)proc, (WNDPROC)lNewVal, type, WIN_PROC_CLASS);
    560560
     
    564564                    if (proc == &pfnWindowProcA)
    565565                    {
    566                         WINPROC_FreeProc( pfnWindowProcW, WIN_PROC_CLASS );
     566                        WINPROC_FreeProc( (HWINDOWPROC)pfnWindowProcW, WIN_PROC_CLASS );
    567567                        pfnWindowProcW = 0;
    568568                    }
    569569                    else
    570570                    {
    571                         WINPROC_FreeProc( pfnWindowProcA, WIN_PROC_CLASS );
     571                        WINPROC_FreeProc( (HWINDOWPROC)pfnWindowProcA, WIN_PROC_CLASS );
    572572                        pfnWindowProcA = 0;
    573573                    }
  • trunk/src/user32/win32class.h

    r10587 r21916  
    1111#define __WIN32CLASS_H__
    1212
    13 #include <gen_object.h>
     13#include "gen_object.h"
    1414
    1515#define RELEASE_CLASSOBJ(a)       { a->release(); a = NULL; }
  • trunk/src/user32/win32dlg.cpp

    r10545 r21916  
    1717#include <string.h>
    1818#include <misc.h>
    19 #include <win32dlg.h>
    20 #include <win\winproc.h>
     19#include "win32dlg.h"
     20#include <win/winproc.h>
    2121#include "oslibmsg.h"
    2222#include "oslibwin.h"
     
    202202
    203203    //Mask away WS_CAPTION style for dialogs with DS_CONTROL style
    204     //(necessary for OFN_ENABLETEMPLATE file open dialogs) 
     204    //(necessary for OFN_ENABLETEMPLATE file open dialogs)
    205205    //(verified this behaviour in NT4, SP6)
    206206    if (dlgInfo.style & DS_CONTROL)     cs.style &= ~(WS_CAPTION);
     
    229229    if (hMenu) DestroyMenu( hMenu );
    230230
    231     WINPROC_FreeProc(Win32DlgProc, WIN_PROC_WINDOW);
     231    WINPROC_FreeProc((HWINDOWPROC)Win32DlgProc, WIN_PROC_WINDOW);
    232232}
    233233//******************************************************************************
     
    265265
    266266        HWND hwndPreInitFocus = GetFocus();
    267         if(SendMessageA(getWindowHandle(), WM_INITDIALOG, (WPARAM)hwndFocus, param)) 
     267        if(SendMessageA(getWindowHandle(), WM_INITDIALOG, (WPARAM)hwndFocus, param))
    268268        {
    269269            //SvL: Experiments in NT4 show that dialogs that are children don't
    270270            //     receive focus. Not sure if this is always true. (couldn't
    271271            //     find any remarks about this in the SDK docs)
    272             if(!(getStyle() & WS_CHILD)) 
     272            if(!(getStyle() & WS_CHILD))
    273273            {
    274274                /* check where the focus is again,
     
    285285            //     receive focus. Not sure if this is always true. (couldn't
    286286            //     find any remarks about this in the SDK docs)
    287             if(!(getStyle() & WS_CHILD)) 
     287            if(!(getStyle() & WS_CHILD))
    288288            {
    289289                /* If the dlgproc has returned FALSE (indicating handling of keyboard focus)
     
    379379                       HOOK_CallHooksA( WH_MSGFILTER, MSGF_DIALOGBOX, 0,
    380380                                          (LPARAM) pmsg ));
    381                        
     381
    382382                HeapFree( GetProcessHeap(), 0, pmsg );
    383383                if (ret)
     
    11631163
    11641164    /* unblock dialog loop */
    1165     PostMessageA(hwnd, WM_NULL, 0, 0); 
     1165    PostMessageA(hwnd, WM_NULL, 0, 0);
    11661166    return TRUE;
    11671167}
     
    11851185            type = (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A;
    11861186        }
    1187         oldval = (LONG)WINPROC_GetProc(Win32DlgProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);
     1187        oldval = (LONG)WINPROC_GetProc((HWINDOWPROC)Win32DlgProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);
    11881188        WINPROC_SetProc((HWINDOWPROC *)&Win32DlgProc, (WNDPROC)value, type, WIN_PROC_WINDOW);
    11891189        return oldval;
     
    12091209    {
    12101210    case DWL_DLGPROC:
    1211         return (ULONG)WINPROC_GetProc(Win32DlgProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);
     1211        return (ULONG)WINPROC_GetProc((HWINDOWPROC)Win32DlgProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);
    12121212    case DWL_MSGRESULT:
    12131213        return msgResult;
  • trunk/src/user32/win32dlg.h

    r9366 r21916  
    1313#define __WIN32DLG_H__
    1414
    15 #include <win32wbase.h>
     15#include "win32wbase.h"
    1616
    1717#ifdef __cplusplus
  • trunk/src/user32/win32wbase.cpp

    r21641 r21916  
    6363#include "controls.h"
    6464#include <wprocess.h>
    65 #include <win\hook.h>
    66 #include <menu.h>
     65#include <win/hook.h>
     66#include "menu.h"
    6767#define INCL_TIMERWIN32
    6868#include "timer.h"
     
    7979void PrintWindowStyle(DWORD dwStyle, DWORD dwExStyle);
    8080
    81 static fDestroyAll = FALSE;
     81static BOOL fDestroyAll = FALSE;
    8282//For quick lookup of current process id
    8383static ULONG currentProcessId = -1;
     
    307307BOOL Win32BaseWindow::IsWindowUnicode()
    308308{
    309     dprintf2(("IsWindowUnicode %x %d", getWindowHandle(), WINPROC_GetProcType(getWindowProc()) == WIN_PROC_32W));
    310     return (WINPROC_GetProcType(getWindowProc()) == WIN_PROC_32W);
     309    dprintf2(("IsWindowUnicode %x %d", getWindowHandle(),
     310              WINPROC_GetProcType((HWINDOWPROC)getWindowProc()) == WIN_PROC_32W));
     311    return (WINPROC_GetProcType((HWINDOWPROC)getWindowProc()) == WIN_PROC_32W);
    311312}
    312313//******************************************************************************
     
    461462    }
    462463
    463     WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, windowClass->getWindowProc((isUnicode) ? WNDPROC_UNICODE : WNDPROC_ASCII), WINPROC_GetProcType(windowClass->getWindowProc((isUnicode) ? WNDPROC_UNICODE : WNDPROC_ASCII)), WIN_PROC_WINDOW);
     464    WINPROC_SetProc((HWINDOWPROC *)&win32wndproc,
     465                    windowClass->getWindowProc((isUnicode) ? WNDPROC_UNICODE : WNDPROC_ASCII),
     466                    WINPROC_GetProcType((HWINDOWPROC)windowClass->getWindowProc((isUnicode) ? WNDPROC_UNICODE : WNDPROC_ASCII)),
     467                    WIN_PROC_WINDOW);
    464468    hInstance  = cs->hInstance;
    465469    dwStyle    = cs->style & ~WS_VISIBLE;
     
    38603864                    type = (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A;
    38613865                }
    3862                 oldval = (LONG)WINPROC_GetProc(win32wndproc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);
     3866                oldval = (LONG)WINPROC_GetProc((HWINDOWPROC)win32wndproc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);
    38633867                dprintf(("SetWindowLong%c GWL_WNDPROC %x old %x new wndproc %x", (fUnicode) ? 'W' : 'A', getWindowHandle(), oldval, value));
    38643868                WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, (WNDPROC)value, type, WIN_PROC_WINDOW);
     
    39163920        break;
    39173921    case GWL_WNDPROC:
    3918         value = (LONG)WINPROC_GetProc(win32wndproc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);
     3922        value = (LONG)WINPROC_GetProc((HWINDOWPROC)win32wndproc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A);
    39193923        break;
    39203924    case GWL_HINSTANCE:
     
    41154119{
    41164120    lock(&critsect);
    4117     for(int i=0;i<MAX_OPENDCS;i++) {
     4121    int i;
     4122    for(i=0;i<MAX_OPENDCS;i++) {
    41184123        if(hdcWindow[i] == 0) {
    41194124            hdcWindow[i] = hdc;
     
    41544159    }
    41554160    lock(&critsect);
    4156     for(int i=0;i<MAX_OPENDCS;i++) {
     4161    int i;
     4162    for(i=0;i<MAX_OPENDCS;i++) {
    41574163        if(hdcWindow[i] == hdc) {
    41584164            hdcWindow[i] = 0;
     
    42944300//******************************************************************************
    42954301//******************************************************************************
    4296 LONG  Win32BaseWindow::release(char *function, int line)
     4302LONG  Win32BaseWindow::release(const char *function, int line)
    42974303{
    42984304//    dprintf2(("release %s %d %x %d", function, line, getWindowHandle(), getRefCount()-1));
  • trunk/src/user32/win32wbase.h

    r10587 r21916  
    1616#ifdef __cplusplus
    1717
    18 #include <win32class.h>
    19 #include <gen_object.h>
    20 #include <win32wndchild.h>
    2118#include <winuser32.h>
    2219#include <winres.h>
    2320#include <scroll.h>
     21
     22#include "win32class.h"
     23#include "gen_object.h"
     24#include "win32wndchild.h"
    2425
    2526class Win32BaseWindow;
     
    352353#ifdef DEBUG
    353354         LONG addRef();
    354          LONG release(char *function = __FUNCTION__, int line = __LINE__ );
     355         LONG release(const char *function = __FUNCTION__, int line = __LINE__ );
    355356#endif
    356357
  • trunk/src/user32/win32wbasenonclient.cpp

    r21642 r21916  
    2323#include <misc.h>
    2424#include <heapstring.h>
    25 #include <win32wbase.h>
     25#include "win32wbase.h"
    2626#include "wndmsg.h"
    2727#include "oslibwin.h"
     
    3737#include "controls.h"
    3838#include "pmwindow.h"
    39 #include <menu.h>
     39#include "menu.h"
    4040
    4141#define DBG_LOCALLOG    DBG_win32wbasenonclient
  • trunk/src/user32/win32wbasepos.cpp

    r10091 r21916  
    2424#include <assert.h>
    2525#include <misc.h>
    26 #include <win32wbase.h>
     26#include "win32wbase.h"
    2727#include <spy.h>
    2828#include "wndmsg.h"
     
    3636#include "dc.h"
    3737#include "win32wdesktop.h"
    38 #include <win\hook.h>
     38#include <win/hook.h>
    3939
    4040#define DBG_LOCALLOG    DBG_win32wbasepos
  • trunk/src/user32/win32wbaseprop.cpp

    r10031 r21916  
    1212 */
    1313#include <string.h>
    14 #include <user32.h>
     14#include "user32.h"
    1515#include <heapstring.h>
    1616#include <misc.h>
     
    7070
    7171    if(HIWORD(str)) {
    72          dprintf2(("GetProp %x %s %x", getWindowHandle, str, prop ? prop->handle : 0));
    73     }
    74     else dprintf2(("GetProp %x %x %x", getWindowHandle, str, prop ? prop->handle : 0));
     72         dprintf2(("GetProp %x %s %x", getWindowHandle(), str, prop ? prop->handle : 0));
     73    }
     74    else dprintf2(("GetProp %x %x %x", getWindowHandle(), str, prop ? prop->handle : 0));
    7575
    7676    return prop ? prop->handle : 0;
     
    8585
    8686    if (HIWORD(str)) {
    87          dprintf2(("SetProp %x %s %x", getWindowHandle, str, handle));
    88     }
    89     else dprintf2(("SetProp %x %x %x", getWindowHandle, str, handle));
     87         dprintf2(("SetProp %x %s %x", getWindowHandle(), str, handle));
     88    }
     89    else dprintf2(("SetProp %x %x %x", getWindowHandle(), str, handle));
    9090
    9191    if (!(prop = findWindowProperty(str)))
     
    192192    INT ret = -1;
    193193
    194     dprintf(("EnumPropsExA %x %x %x", getWindowHandle, func, lParam));
     194    dprintf(("EnumPropsExA %x %x %x", getWindowHandle(), func, lParam));
    195195
    196196    for (prop = propertyList; (prop); prop = next)
     
    220220    INT ret = -1;
    221221
    222     dprintf(("EnumPropsExW %x %x %x", getWindowHandle, func, lParam));
     222    dprintf(("EnumPropsExW %x %x %x", getWindowHandle(), func, lParam));
    223223
    224224    for (prop = propertyList; (prop); prop = next)
  • trunk/src/user32/win32wdesktop.cpp

    r10379 r21916  
    1212#include <os2win.h>
    1313#include <misc.h>
    14 #include <win32wbase.h>
    15 #include <win32wdesktop.h>
     14#include "win32wbase.h"
     15#include "win32wdesktop.h"
    1616#include "oslibwin.h"
    1717#include "win32wndhandle.h"
  • trunk/src/user32/win32wdesktop.h

    r10379 r21916  
    1515#if defined(__cplusplus)
    1616
    17 #include <win32wbase.h>
     17#include "win32wbase.h"
    1818
    1919class Win32Desktop : public Win32BaseWindow
  • trunk/src/user32/win32wfake.cpp

    r10038 r21916  
    1414#include <string.h>
    1515#include <dbglog.h>
    16 #include <win\winproc.h>
    17 #include <win32wbase.h>
    18 #include <win32wfake.h>
     16#include <win/winproc.h>
     17#include "win32wbase.h"
     18#include "win32wfake.h"
    1919#include "oslibwin.h"
    2020#include "win32wndhandle.h"
     
    113113    }
    114114
    115     WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, windowClass->getWindowProc((isUnicode) ? WNDPROC_UNICODE : WNDPROC_ASCII), WINPROC_GetProcType(windowClass->getWindowProc((isUnicode) ? WNDPROC_UNICODE : WNDPROC_ASCII)), WIN_PROC_WINDOW);
     115    WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, windowClass->getWindowProc((isUnicode) ? WNDPROC_UNICODE : WNDPROC_ASCII), WINPROC_GetProcType((HWINDOWPROC)windowClass->getWindowProc((isUnicode) ? WNDPROC_UNICODE : WNDPROC_ASCII)), WIN_PROC_WINDOW);
    116116    hInstance  = NULL;
    117117    dwStyle    = WS_VISIBLE;
  • trunk/src/user32/win32wfake.h

    r10031 r21916  
    1313#define __WIN32WFAKE_H__
    1414
    15 #include <win32wbase.h>
     15#include "win32wbase.h"
    1616
    1717class Win32FakeWindow : public Win32BaseWindow
  • trunk/src/user32/win32wmdiclient.cpp

    r9523 r21916  
    2323#include <misc.h>
    2424#include <heapstring.h>
    25 #include <win32wnd.h>
    26 #include <win32wmdiclient.h>
     25#include "win32wnd.h"
     26#include "win32wmdiclient.h"
    2727#include <spy.h>
    2828#include "wndmsg.h"
    29 #include <oslibwin.h>
    30 #include <oslibutil.h>
    31 #include <oslibgdi.h>
    32 #include <oslibres.h>
     29#include "oslibwin.h"
     30#include "oslibutil.h"
     31#include "oslibgdi.h"
     32#include "oslibres.h"
    3333#include "oslibdos.h"
    3434#include "syscolor.h"
  • trunk/src/user32/win32wmdiclient.h

    r6762 r21916  
    1111#define __WIN32WMDICLIENT_H__
    1212
    13 #include <win32wbase.h>
     13#include "win32wbase.h"
    1414#include "mdi.h"
    1515
  • trunk/src/user32/win32wmisc.cpp

    r21356 r21916  
    2121#include <assert.h>
    2222#include <dbglog.h>
    23 #include <win32wnd.h>
     23#include "win32wnd.h"
    2424#include <heapstring.h>
    2525#include <spy.h>
    2626#include "wndmsg.h"
    27 #include <oslibwin.h>
    28 #include <oslibutil.h>
    29 #include <oslibgdi.h>
    30 #include <oslibres.h>
     27#include "oslibwin.h"
     28#include "oslibutil.h"
     29#include "oslibgdi.h"
     30#include "oslibres.h"
    3131#include "oslibdos.h"
    3232#include "win32wndhandle.h"
  • trunk/src/user32/win32wnd.cpp

    r5935 r21916  
    2121#include <assert.h>
    2222#include <misc.h>
    23 #include <win32wnd.h>
     23#include "win32wnd.h"
    2424#include <heapstring.h>
    2525#include <spy.h>
    2626#include "wndmsg.h"
    27 #include <oslibwin.h>
    28 #include <oslibutil.h>
    29 #include <oslibgdi.h>
    30 #include <oslibres.h>
     27#include "oslibwin.h"
     28#include "oslibutil.h"
     29#include "oslibgdi.h"
     30#include "oslibres.h"
    3131#include "oslibdos.h"
    3232#include "syscolor.h"
  • trunk/src/user32/win32wnd.h

    r6762 r21916  
    1111#define __WIN32WND_H__
    1212
    13 #include <win32wbase.h>
     13#include "win32wbase.h"
    1414
    1515//******************************************************************************
  • trunk/src/user32/win32wndchild.cpp

    r10587 r21916  
    1111 */
    1212#include <os2win.h>
    13 #include <win32wndchild.h>
     13#include "win32wndchild.h"
    1414#include <misc.h>
    1515
  • trunk/src/user32/win32wndhandle.cpp

    r10544 r21916  
    2828//******************************************************************************
    2929
    30 //Global DLL Data
    31 #pragma data_seg(_GLOBALDATA)
    32 ULONG                WindowHandleTable[MAX_WINDOW_HANDLES] = {0};
    33 CRITICAL_SECTION_OS2 globalwhandlecritsect = {0};
    34 ULONG                lastIndex = 0;
    35 #pragma data_seg()
     30//
     31// Global DLL Data (keep it in sync with globaldata.asm!)
     32//
     33extern ULONG                WindowHandleTable[MAX_WINDOW_HANDLES]; // = {0}
     34extern CRITICAL_SECTION_OS2 globalwhandlecritsect; // = {0}
     35extern ULONG                lastIndex; // = 0
    3636
    37 static char *pszWndHandleSemName = WINHANDLE_CRITSECTION_NAME;
     37//******************************************************************************
     38//******************************************************************************
     39
     40static const char *pszWndHandleSemName = WINHANDLE_CRITSECTION_NAME;
    3841
    3942//******************************************************************************
     
    7174        lastIndex = 0;
    7275  }
    73   for(int i=lastIndex;i<MAX_WINDOW_HANDLES;i++) {
     76  int i;
     77  for(i=lastIndex;i<MAX_WINDOW_HANDLES;i++) {
    7478        if(WindowHandleTable[i] == 0) {
    7579                lastIndex = i;
  • trunk/src/user32/winaccel.cpp

    r10190 r21916  
    1818#include <misc.h>
    1919#include <heapstring.h>
    20 #include <win\winnls.h>
     20#include <win/winnls.h>
    2121
    2222#define DBG_LOCALLOG    DBG_winaccel
     
    2929 * 01:  BYTE    pad             (to WORD boundary)
    3030 * 02:  WORD    event
    31  * 04:  WORD    IDval           
     31 * 04:  WORD    IDval
    3232 * 06:  WORD    pad             (to DWORD boundary)
    3333 */
     
    5454                hRetval = GlobalAlloc(0,sizeof(ACCEL)*nrofaccells);
    5555                accel   = (LPACCEL)GlobalLock(hRetval);
    56        
     56
    5757                for (i=0;i<nrofaccells;i++) {
    5858                        accel[i].fVirt = accel_table[i].fVirt;
  • trunk/src/user32/windlg.cpp

    r21356 r21916  
    2424#include "win32dlg.h"
    2525#include <heapstring.h>
    26 #include <win\drive.h>
     26#include <win/drive.h>
    2727#include <custombuild.h>
    2828
     
    330330                }
    331331            }
    332         }       
     332        }
    333333    }
    334334#endif
     
    696696
    697697    /* If the path exists and is a directory, chdir to it */
    698     if (!spec || !spec[0] || SetCurrentDirectoryA( spec )) spec = "*.*";
     698    if (!spec || !spec[0] || SetCurrentDirectoryA( spec )) spec = (LPSTR)"*.*";
    699699    else
    700700    {
  • trunk/src/user32/windlgmsg.cpp

    r8968 r21916  
    2222#include "win32dlg.h"
    2323#include <winnls.h>
    24 #include <wine\unicode.h>
     24#include <wine/unicode.h>
    2525
    2626#define DBG_LOCALLOG    DBG_windlgmsg
     
    276276                if (HIWORD(dw) == DC_HASDEFID)
    277277                {
    278                   if (IsWindowEnabled(GetDlgItem(hwndDlg, LOWORD(dw)))) 
     278                  if (IsWindowEnabled(GetDlgItem(hwndDlg, LOWORD(dw))))
    279279                  {
    280280                       SendMessageA( hwndDlg, WM_COMMAND,
  • trunk/src/user32/window.cpp

    r21347 r21916  
    2929#include <string.h>
    3030#include <stdio.h>
    31 #include <win32wbase.h>
    32 #include <win32wmdiclient.h>
    33 #include <win32wdesktop.h>
     31#include "win32wbase.h"
     32#include "win32wmdiclient.h"
     33#include "win32wdesktop.h"
    3434#include "win32dlg.h"
    35 #include <oslibwin.h>
    36 #include <oslibgdi.h>
     35#include "oslibwin.h"
     36#include "oslibgdi.h"
    3737#include "user32.h"
    3838#include "winicon.h"
    3939#include "pmwindow.h"
    4040#include "oslibmsg.h"
    41 #include <win\winpos.h>
    42 #include <win\win.h>
     41#include <win/winpos.h>
     42#include <win/win.h>
    4343#include <heapstring.h>
    4444#include <winuser32.h>
     
    5252ODINDEBUGCHANNEL(USER32-WINDOW)
    5353
     54#ifdef __cplusplus
     55extern "C" {
     56#endif
    5457
    5558//******************************************************************************
     
    117120    else dprintf(("CreateWindowExA: window %s class %d parent %x (%d,%d) (%d,%d), %x %x menu=%x", windowName, className, parent, x, y, width, height, style, exStyle, menu));
    118121
    119     if(!strcmpi(className, MDICLIENTCLASSNAMEA)) {
     122    if(!stricmp(className, MDICLIENTCLASSNAMEA)) {
    120123        window = (Win32BaseWindow *) new Win32MDIClientWindow(&cs, classAtom, FALSE);
    121124    }
    122125    else
    123     if(!strcmpi((char *) className, DIALOG_CLASS_NAMEA))
     126    if(!stricmp((char *) className, DIALOG_CLASS_NAMEA))
    124127    {
    125128      DLG_TEMPLATE dlgTemplate = {0};
     
    155158    }
    156159    HWND hwnd = window->getWindowHandle();
    157  
     160
    158161    // set myself as last active popup / window
    159162    window->setLastActive( hwnd );
    160  
     163
    161164    RELEASE_WNDOBJ(window);
    162165    return hwnd;
     
    262265    }
    263266    HWND hwnd = window->getWindowHandle();
    264  
     267
    265268    // set myself as last active popup / window
    266269    window->setLastActive( hwnd );
    267  
     270
    268271    RELEASE_WNDOBJ(window);
    269272    return hwnd;
     
    300303    }
    301304    hwndActive = window->SetActiveWindow();
    302  
     305
    303306    // check last active popup window
    304307    if (hwndActive)
     
    308311      dprintf(("support for last active popup incorrectly implemented"));
    309312    }
    310  
     313
    311314    RELEASE_WNDOBJ(window);
    312315    return hwndActive;
     
    561564    if ((nCmdShow == SW_RESTORE) && (window->getStyle() & WS_MINIMIZE) && fOS2Look )
    562565    {
    563         dprintf(("ShowWindow: Initiating OS/2 PM restore"));         
     566        dprintf(("ShowWindow: Initiating OS/2 PM restore"));
    564567        ret = OSLibWinRestoreWindow(window->getOS2FrameWindowHandle());
    565568    }
    566     else   
     569    else
    567570        ret = window->ShowWindow(nCmdShow);
    568571    RELEASE_WNDOBJ(window);
     
    720723    ret = TRUE;
    721724
    722     if(dwStyle & WS_CHILD) 
     725    if(dwStyle & WS_CHILD)
    723726    {
    724727        //check visibility of parents
     
    762765        //else no child -> no parent (GetParent returns owner otherwise!)
    763766    }
    764     else 
    765     if (type == GA_ROOT) 
     767    else
     768    if (type == GA_ROOT)
    766769    {
    767770         hwndAncestor = window->GetTopParent();
    768771    }
    769772    else
    770     if (type == GA_ROOTOWNER) 
    771     {
    772          if(hwnd != GetDesktopWindow()) 
     773    if (type == GA_ROOTOWNER)
     774    {
     775         if(hwnd != GetDesktopWindow())
    773776         {
    774777             hwndAncestor = hwnd;
     
    804807 TEB *teb;
    805808
    806     dprintf(("SetFocus %x", hwnd));   
     809    dprintf(("SetFocus %x", hwnd));
    807810    teb = GetThreadTEB();
    808811    if(teb == NULL) {
     
    929932    lpThreadInfo->hwndActive  = GetActiveWindow();
    930933    if(lpThreadInfo->hwndActive) {
    931         if(dwThreadId != GetWindowThreadProcessId(lpThreadInfo->hwndActive, NULL)) 
     934        if(dwThreadId != GetWindowThreadProcessId(lpThreadInfo->hwndActive, NULL))
    932935        {//this thread doesn't own the active window (TODO: correct??)
    933936            lpThreadInfo->hwndActive = 0;
     
    980983         windowDesktop->addRef();
    981984         window = windowDesktop;
    982     }     
     985    }
    983986    else window = Win32BaseWindow::GetWindowFromHandle(hwnd);
    984      
     987
    985988    if(!window) {
    986989        dprintf(("GetWindowRect, window %x not found", hwnd));
     
    11041107 *      InternalGetWindowText    (USER32.326)
    11051108 */
    1106 int WIN32API InternalGetWindowText(HWND hwnd, 
     1109int WIN32API InternalGetWindowText(HWND hwnd,
    11071110                                   LPWSTR lpString,
    11081111                                   INT    nMaxCount )
     
    12741277        windowDesktop->addRef();
    12751278        wndfrom = windowDesktop;
    1276     } 
     1279    }
    12771280    else {
    12781281        wndfrom = Win32BaseWindow::GetWindowFromHandle(hwndFrom);
     
    12881291        windowDesktop->addRef();
    12891292        wndto = windowDesktop;
    1290     } 
     1293    }
    12911294    else {
    12921295        wndto = Win32BaseWindow::GetWindowFromHandle(hwndTo);
     
    18871890        {
    18881891//            WND *wndPtr = WIN_FindWndPtr(hwndChild);
    1889            
     1892
    18901893//            WINPOS_ShowIconTitle( wndPtr, FALSE );
    1891                
     1894
    18921895            SetWindowPos( hwndChild, 0, x + (xspacing - GetSystemMetrics(SM_CXICON)) / 2,
    18931896                            y - yspacing - GetSystemMetrics(SM_CYICON)/2, 0, 0,
     
    20032006
    20042007  owner = Win32BaseWindow::GetWindowFromHandle(hWnd);
    2005   if(!owner) 
     2008  if(!owner)
    20062009  {
    20072010    dprintf(("GetLastActivePopup, window %x not found", hWnd));
     
    20132016  if (!IsWindow( hwndRetVal ))
    20142017    hwndRetVal = owner->getWindowHandle();
    2015  
     2018
    20162019  RELEASE_WNDOBJ(owner);
    2017  
     2020
    20182021  return hwndRetVal;
    20192022}
     
    20362039    }
    20372040    RELEASE_WNDOBJ(window);
    2038    
     2041
    20392042    return dwThreadId;
    20402043}
     
    22202223}
    22212224//******************************************************************************
    2222 //The GetWindowModuleFileName function retrieves the full path and file name of 
     2225//The GetWindowModuleFileName function retrieves the full path and file name of
    22232226//the module associated with the specified window handle.
    22242227//******************************************************************************
     
    22622265  return (FALSE);
    22632266}
     2267
     2268#ifdef __cplusplus
     2269} // extern "C"
     2270#endif
  • trunk/src/user32/windowclass.cpp

    r21303 r21916  
    1818#include <misc.h>
    1919#include <unicode.h>
    20 #include <win32class.h>
    21 #include <win32wbase.h>
    22 #include <controls.h>
     20#include "win32class.h"
     21#include "win32wbase.h"
     22#include "controls.h"
    2323
    2424#define DBG_LOCALLOG    DBG_windowclass
  • trunk/src/user32/windowmsg.cpp

    r21555 r21916  
    2323#include <os2win.h>
    2424#include <misc.h>
    25 #include <win32wbase.h>
     25#include "win32wbase.h"
    2626#include <win.h>
    2727#include <heapstring.h>
  • trunk/src/user32/windowword.cpp

    r10119 r21916  
    1212#include <os2win.h>
    1313#include <dbglog.h>
    14 #include <ctrlconf.h>
     14#include "ctrlconf.h"
    1515
    16 #include <win32wbase.h>
     16#include "win32wbase.h"
    1717
    1818#define DBG_LOCALLOG    DBG_windowword
  • trunk/src/user32/winevent.cpp

    r7866 r21916  
    3333#include <stdlib.h>
    3434#include <string.h>
    35 //#include <oslibwin.h>
    36 #include <win32wnd.h>
     35//#include "oslibwin.h"
    3736#include <winuser.h>
     37#include "win32wnd.h"
    3838#include "initterm.h"
    3939
     
    4343ODINDEBUGCHANNEL(USER32-WINEVENT)
    4444
     45extern "C" {
    4546
    4647/*****************************************************************************
     
    8990  return 0;
    9091}
     92
     93} // extern "C"
  • trunk/src/user32/winicon.cpp

    r21356 r21916  
    4747#include <string.h>
    4848#include <winicon.h>
    49 #include <win\cursoricon.h>
     49#include <win/cursoricon.h>
    5050#include <objhandle.h>
    5151#include "dib.h"
    5252#include <heapstring.h>
    53 #include <win\virtual.h>
     53#include <win/virtual.h>
    5454#include "initterm.h"
    5555#include "oslibres.h"
     
    200200
    201201        /* Transfer the bitmap bits to the CURSORICONINFO structure */
    202         if(bmpAnd.bmBitsPixel > 1) 
     202        if(bmpAnd.bmBitsPixel > 1)
    203203        {//Our code expects b&w masks, so convert it first
    204204         //We could also use GetDIBits to do the conversion for us, but it returns
     
    216216
    217217            //blit to the destination HDC & convert to 1bpp
    218             BitBlt(hdcDest, 0, 0, bmpAnd.bmWidth, bmpAnd.bmHeight, 
     218            BitBlt(hdcDest, 0, 0, bmpAnd.bmWidth, bmpAnd.bmHeight,
    219219                   hdcSrc, 0, 0, SRCCOPY);
    220220
     
    442442    if(hActiveCursorPM && hActiveCursorPM != OSLibWinQueryPointer()) {
    443443       dprintf(("Another app changed mouse cursor"));
    444        hActiveCursorPM = hActiveCursor = 0; 
     444       hActiveCursorPM = hActiveCursor = 0;
    445445    }
    446446    return hActiveCursor;
     
    593593    bmpXor.bmBitsPixel  = info->bBitsPerPixel;
    594594    bmpXor.bmBits       = NULL;
    595     ((CURSORICONINFO *)ptr)->hColorBmp = 
     595    ((CURSORICONINFO *)ptr)->hColorBmp =
    596596          OSLibWinCreatePointer(info, (char *)lpANDbits, (LPBITMAP_W)&bmpAnd, (char *)lpXORbits, (LPBITMAP_W)&bmpXor, fIcon == FALSE);
    597597#endif
     
    10851085//SvL: Must use CreateBitmap here as CreateDIBitmap converts data to 8bpp (GetObjectA info -> 8 bpp)
    10861086#if 1
    1087                     int linewidth; 
     1087                    int linewidth;
    10881088                    int orglinewidth;
    10891089
  • trunk/src/user32/winkeyboard.cpp

    r21344 r21916  
    5555
    5656
    57 BYTE abPMScanToWinVKey[256][2] =
     57static UCHAR auchPMScanToWinVKey[256][2] =
    5858/****************************************************************************/
    5959/* PM Scancode              *    Win32 vkey                 Extended Key     */
     
    320320{
    321321  /* index is the VKey value */
    322   BYTE  bPMScanCode;
    323   LPSTR lpstrName;
     322  UCHAR  uchPMScanCode;
     323  LPCSTR lpstrName;
    324324} WINVKEYTOPMSCAN, *PWINVKEYTOPMSCAN;
    325325
    326 static WINVKEYTOPMSCAN abWinVKeyToPMScan[256] =
     326static WINVKEYTOPMSCAN auchWinVKeyToPMScan[256] =
    327327/**********************************************************************/
    328328/* Vkey                   *    Scancode               * Name          */
     
    587587
    588588// @@PF reflect Num Enter key
    589 LPSTR lpstrNumEnter = "Num Enter";
     589LPCSTR lpstrNumEnter = "Num Enter";
    590590
    591591// @@@PH
    592592// Note: windows uses different scancodes if numlock is pressed
    593593// This is not (yet) reflected here!
    594 static BYTE abPMScanToWinScan[256][2] =
     594static BYTE auchPMScanToWinScan[256][2] =
    595595/****************************************************************************/
    596596/* PM Scancode              *    Win32 Scancode             Extended Key     */
     
    858858//******************************************************************************
    859859
    860 VOID WIN32API KeyTranslatePMToWinBuf(BYTE *pmkey, BYTE *winkey,
     860VOID WIN32API KeyTranslatePMToWinBuf(PUCHAR pmkey, PUCHAR winkey,
    861861                                     int nrkeys)
    862862{
     
    871871
    872872   for(int i=1;i<nrkeys;i++) {
    873        if(abWinVKeyToPMScan[i].bPMScanCode) {
    874             pmvkey = OSLibWinTranslateChar(abWinVKeyToPMScan[i].bPMScanCode, TC_SCANCODETOVIRTUALKEY, 0);
     873       if(auchWinVKeyToPMScan[i].uchPMScanCode) {
     874            pmvkey = OSLibWinTranslateChar(auchWinVKeyToPMScan[i].uchPMScanCode, TC_SCANCODETOVIRTUALKEY, 0);
    875875            if(pmvkey == 0) {
    876                 dprintf2(("WinTranslateChar %x (%x) FAILED!!", i, abWinVKeyToPMScan[i].bPMScanCode));
     876                dprintf2(("WinTranslateChar %x (%x) FAILED!!", i, auchWinVKeyToPMScan[i].uchPMScanCode));
    877877            }
    878878            winkey[i] = pmkey[pmvkey];
     
    886886//******************************************************************************
    887887//******************************************************************************
    888 BYTE KeyTranslateWinVKeyToPMScan(BYTE bWinVKey, BOOL fExtended)
     888UCHAR KeyTranslateWinVKeyToPMScan(UCHAR uchWinVKey, BOOL fExtended)
    889889{
    890890  // if the extended bit didn't match, this is
    891891  // the closest hit
    892   BYTE bAlmost = 0;
     892  UCHAR uchAlmost = 0;
    893893 
    894894  // experiment
    895895
    896896#if 0
    897   bAlmost = abWinVKeyToPMScan[bWinVKey].bPMScanCode;
     897  bAlmost = auchWinVKeyToPMScan[bWinVKey].uchPMScanCode;
    898898#else
    899899  for(int i = 0;
    900       i < 256; // sizeof(row of abPMScanToWinVKey)
     900      i < 256; // sizeof(row of auchPMScanToWinVKey)
    901901      i++)
    902902  {
    903     if (abPMScanToWinVKey[i][0] == bWinVKey)
     903    if (auchPMScanToWinVKey[i][0] == uchWinVKey)
    904904    {
    905905      // this represents the PMScan code which is used as index     
    906       bAlmost = i;
     906      uchAlmost = i;
    907907     
    908908      // exact match!
    909       if (abPMScanToWinVKey[i][1] == fExtended)
     909      if (auchPMScanToWinVKey[i][1] == fExtended)
    910910        break;
    911911    }
     
    914914 
    915915  dprintf(("KeyTranslateWinVKeyToPMScan(%02xh,%d) = %02xh",
    916            bWinVKey,
     916           uchWinVKey,
    917917           fExtended,
    918            bAlmost));
     918           uchAlmost));
    919919 
    920920  // almost a match or no match at all.
    921   return bAlmost;
    922 }
    923 //******************************************************************************
    924 //******************************************************************************
    925 void KeyTranslatePMScanToWinVKey(BYTE bPMScan,
     921  return uchAlmost;
     922}
     923//******************************************************************************
     924//******************************************************************************
     925void KeyTranslatePMScanToWinVKey(UCHAR uchPMScan,
    926926                                 BOOL bNumLock,
    927                                  PBYTE pbWinVKey,
    928                                  WORD* pwWinScan,
     927                                 PUCHAR puchWinVKey,
     928                                 WORD *pwWinScan,
    929929                                 PBOOL pfExtended)
    930930{
    931931  // @@@PH numlock is currently ignored
    932   if (pbWinVKey)
    933     *pbWinVKey = abPMScanToWinVKey[bPMScan][0];
     932  if (puchWinVKey)
     933    *puchWinVKey = auchPMScanToWinVKey[uchPMScan][0];
    934934 
    935935  if (pfExtended)
    936     *pfExtended = abPMScanToWinVKey[bPMScan][1];
     936    *pfExtended = auchPMScanToWinVKey[uchPMScan][1];
    937937 
    938938  if (pwWinScan)
    939     *pwWinScan = abPMScanToWinScan[bPMScan][0];
    940 }
    941 //******************************************************************************
    942 //******************************************************************************
    943 BYTE KeyTranslateWinScanToPMScan(BYTE bWinScan, BOOL fExtended)
     939    *pwWinScan = auchPMScanToWinScan[uchPMScan][0];
     940}
     941//******************************************************************************
     942//******************************************************************************
     943UCHAR KeyTranslateWinScanToPMScan(UCHAR uchWinScan, BOOL fExtended)
    944944{
    945945  // Note:
     
    949949  // if the extended bit didn't match, this is
    950950  // the closest hit
    951   BYTE bAlmost = 0;
     951  UCHAR uchAlmost = 0;
    952952 
    953953  for(int i = 0;
    954       i < 256; // sizeof(row of abPMScanToWinVKey)
     954      i < 256; // sizeof(row of auchPMScanToWinVKey)
    955955      i++)
    956956  {
    957     if (abPMScanToWinScan[i][0] == bWinScan)
     957    if (auchPMScanToWinScan[i][0] == uchWinScan)
    958958    {
    959959      // this represents the PMScan code which is used as index     
    960       bAlmost = i;
     960      uchAlmost = i;
    961961     
    962962      // exact match!
    963       if (abPMScanToWinVKey[i][1] == fExtended)
     963      if (auchPMScanToWinVKey[i][1] == fExtended)
    964964        break;
    965965    }
     
    967967 
    968968  dprintf(("KeyTranslateWinScanToPMScan(%02xh,%d) = %02xh",
    969            bWinScan,
     969           uchWinScan,
    970970           fExtended,
    971            bAlmost));
     971           uchAlmost));
    972972 
    973973  // almost a match or no match at all.
    974   return bAlmost;
    975  
    976 }
    977 //******************************************************************************
    978 //******************************************************************************
    979 BYTE KeyTranslatePMScanToWinScan(BYTE bPMScan)
     974  return uchAlmost;
     975 
     976}
     977//******************************************************************************
     978//******************************************************************************
     979UCHAR KeyTranslatePMScanToWinScan(UCHAR bPMScan)
    980980{
    981981  // Note:
     
    983983  // O32_MapVirtualKeyA uses PM Scancodes only!
    984984 
    985   return abPMScanToWinScan[bPMScan][0];
     985  return auchPMScanToWinScan[bPMScan][0];
    986986}
    987987//******************************************************************************
     
    10261026   }
    10271027   for(int i=0;i<256;i++) {
    1028        if(abWinVKeyToPMScan[i].bPMScanCode) {
    1029            lpKeyState[i] = PMScanState[abWinVKeyToPMScan[i].bPMScanCode];
     1028       if(auchWinVKeyToPMScan[i].uchPMScanCode) {
     1029           lpKeyState[i] = PMScanState[auchWinVKeyToPMScan[i].uchPMScanCode];
    10301030       }
    10311031       if(lpKeyState[i] & 0x80) {
     
    13351335}
    13361336
     1337extern "C"
    13371338int WINAPI ToUnicodeEx(UINT virtKey, UINT scanCode, const BYTE *lpKeyState,
    13381339                       LPWSTR lpwStr, int size, UINT flags, HKL hkl)
     
    13711372  BOOL  fDontCare = (lParam & WIN_KEY_DONTCARE) != 0;
    13721373  BOOL  fExtended = (lParam & WIN_KEY_EXTENDED) != 0,PMExtended;
    1373   UCHAR ucWinScan = (lParam & 0x00ff0000) >> 16;
    1374   UCHAR ucWinVKey;
    1375   UCHAR ucPMScan;
     1374  UCHAR uchWinScan = (lParam & 0x00ff0000) >> 16;
     1375  UCHAR uchWinVKey;
     1376  UCHAR uchPMScan;
    13761377  int   result;
    13771378 
     
    13881389  // Note: Open32 expects PM Scancodes, NOT Winscancodes.
    13891390  // Note: this is the only way of loss-less conversion!
    1390   ucPMScan = KeyTranslateWinScanToPMScan(ucWinScan, fExtended);
     1391  uchPMScan = KeyTranslateWinScanToPMScan(uchWinScan, fExtended);
    13911392  dprintf(("ucWinScan=%02xh, fExtended=%d translated to PMscan=%02xh\n",
    1392            ucWinScan,
     1393           uchWinScan,
    13931394           fExtended,
    1394            ucPMScan));
    1395   ucWinVKey = abPMScanToWinVKey[ucPMScan][0];
    1396   PMExtended = abPMScanToWinVKey[ucPMScan][1];
     1395           uchPMScan));
     1396  uchWinVKey = auchPMScanToWinVKey[uchPMScan][0];
     1397  PMExtended = auchPMScanToWinVKey[uchPMScan][1];
    13971398
    13981399  dprintf(("ucPMScan=%02xh translated to ucWinVKey=%02xh PMExtended=%d\n",
    1399            ucPMScan,
    1400            ucWinVKey,PMExtended));
     1400           uchPMScan,
     1401           uchWinVKey,PMExtended));
    14011402
    14021403  // Bug in Open32:
     
    14081409  memset(lpString, 0, nSize);
    14091410 
    1410   LPSTR lpstrKey;
    1411   lpstrKey = abWinVKeyToPMScan[ucWinVKey].lpstrName;
     1411  LPCSTR lpstrKey;
     1412  lpstrKey = auchWinVKeyToPMScan[uchWinVKey].lpstrName;
    14121413
    14131414  // handle Enter on Numeric Keypad here
    14141415  if (PMExtended)
    14151416  {
    1416    if (ucWinVKey==VK_RETURN) lpstrKey = lpstrNumEnter;
     1417   if (uchWinVKey==VK_RETURN) lpstrKey = lpstrNumEnter;
    14171418  }
    14181419
     
    14201421  {
    14211422    dprintf(("ERROR: keyname for winscan=%02xh winvkey=%02xh, fExtended=%d not found.\n",
    1422              ucWinScan, ucWinVKey, fExtended & !fDontCare));
     1423             uchWinScan, uchWinVKey, fExtended & !fDontCare));
    14231424   
    14241425    // build artificial name
     
    14271428    sprintf(szName,
    14281429            "VKey%02x%c",
    1429             ucWinScan,
     1430            uchWinScan,
    14301431            fExtended ? '+' : 0);
    14311432    memcpy(lpString, szName, nSize);
     
    15041505  //O32_GetKeyState converts windows virtual keys to PM virtual keys and there
    15051506  //are far fewer PM vkeys. (e.g. 0-9, A-Z will fail)
    1506   if(nVirtKey < 256 && abWinVKeyToPMScan[nVirtKey].bPMScanCode)
     1507  if(nVirtKey < 256 && auchWinVKeyToPMScan[nVirtKey].uchPMScanCode)
    15071508  {
    15081509      INT  nVirtKey2 = 0;
     
    15111512      if (nVirtKey == VK_CONTROL || nVirtKey == VK_LCONTROL)
    15121513      {//if AltGr is down, then pretend VK_LCONTROL is down too
    1513           result = OSLibWinGetScanState(abWinVKeyToPMScan[VK_RMENU].bPMScanCode);
     1514          result = OSLibWinGetScanState(auchWinVKeyToPMScan[VK_RMENU].uchPMScanCode);
    15141515          if(result & 0x8000) {
    15151516              return result;
     
    15201521      if ((nVirtKey >= VK_PRIOR) && (nVirtKey <= VK_DELETE))
    15211522      {
    1522          WORD numState = OSLibWinGetScanState(abWinVKeyToPMScan[VK_NUMLOCK].bPMScanCode) & 1;
     1523         WORD numState = OSLibWinGetScanState(auchWinVKeyToPMScan[VK_NUMLOCK].uchPMScanCode) & 1;
    15231524
    15241525         if(!numState) {
     
    15441545          nVirtKey2 = VK_RSHIFT;
    15451546      }
    1546       result = OSLibWinGetScanState(abWinVKeyToPMScan[nVirtKey].bPMScanCode);
     1547      result = OSLibWinGetScanState(auchWinVKeyToPMScan[nVirtKey].uchPMScanCode);
    15471548      if(nVirtKey2) {
    1548           result |= OSLibWinGetScanState(abWinVKeyToPMScan[nVirtKey2].bPMScanCode);
     1549          result |= OSLibWinGetScanState(auchWinVKeyToPMScan[nVirtKey2].uchPMScanCode);
    15491550      }
    15501551      return result;
     
    15761577  //O32_GetAsyncKeyState converts windows virtual keys to PM virtual keys and there
    15771578  //are far fewer PM vkeys. (e.g. 0-9, A-Z will fail)
    1578   if(nVirtKey < 256 && abWinVKeyToPMScan[nVirtKey].bPMScanCode)
     1579  if(nVirtKey < 256 && auchWinVKeyToPMScan[nVirtKey].uchPMScanCode)
    15791580  {
    15801581      INT  nVirtKey2 = 0;
     
    15831584      if (nVirtKey == VK_CONTROL || nVirtKey == VK_LCONTROL)
    15841585      {//if AltGr is down, then pretend VK_LCONTROL is down too
    1585           result = OSLibWinGetPhysKeyState(abWinVKeyToPMScan[VK_RMENU].bPMScanCode);
     1586          result = OSLibWinGetPhysKeyState(auchWinVKeyToPMScan[VK_RMENU].uchPMScanCode);
    15861587          if(result & 0x8000) {
    15871588              return result;
     
    15921593      if ((nVirtKey >= VK_PRIOR) && (nVirtKey <= VK_DELETE))
    15931594      {
    1594          WORD numState = OSLibWinGetScanState(abWinVKeyToPMScan[VK_NUMLOCK].bPMScanCode) & 1;
     1595         WORD numState = OSLibWinGetScanState(auchWinVKeyToPMScan[VK_NUMLOCK].uchPMScanCode) & 1;
    15951596
    15961597         if(!numState) {
     
    16171618      }
    16181619
    1619       result = OSLibWinGetPhysKeyState(abWinVKeyToPMScan[nVirtKey].bPMScanCode);
     1620      result = OSLibWinGetPhysKeyState(auchWinVKeyToPMScan[nVirtKey].uchPMScanCode);
    16201621      if(nVirtKey2) {
    1621           result |= OSLibWinGetPhysKeyState(abWinVKeyToPMScan[nVirtKey2].bPMScanCode);
     1622          result |= OSLibWinGetPhysKeyState(auchWinVKeyToPMScan[nVirtKey2].uchPMScanCode);
    16221623      }
    16231624      return result;
  • trunk/src/user32/winmouse.cpp

    r21502 r21916  
    3232#include <commctrl.h>
    3333#include <debugtools.h>
    34 #include <win\mouse.h>
     34#include <win/mouse.h>
    3535#include "winmouse.h"
    3636#include "oslibmsg.h"
  • trunk/src/user32/winproc.cpp

    r10602 r21916  
    1818#include <string.h>
    1919#include "callwrap.h"
    20 #include <win\winproc.h>
    21 #include <win\debugtools.h>
     20#include <win/winproc.h>
     21#include <win/debugtools.h>
    2222#include <heapcode.h>
    2323#include "win32wbase.h"
     
    307307    }
    308308    else  dprintf2(("CallWindowProcA %x %x %x %x %x (unknown proc)", func, hwnd, msg, wParam, lParam));
    309    
     309
    310310    if(!IsWindow(hwnd)) {
    311311        dprintf2(("CallWindowProcA, window %x not found", hwnd));
  • trunk/src/user32/wndmsg.cpp

    r10511 r21916  
    1313#include <stdio.h>
    1414#include <string.h>
    15 #include <win\winmfcmsg.h>
     15#include <win/winmfcmsg.h>
    1616#include <spy.h>
    1717#include "wndmsg.h"
     
    2323typedef struct
    2424{
    25     LPSTR pszMsg;
     25    LPCSTR pszMsg;
    2626    UINT msg;
    2727    UINT Flags;
     
    750750
    751751
    752 char *GetMsgText(int Msg)
     752const char *GetMsgText(int Msg)
    753753{
    754754 static char msgtxt[64];
  • trunk/src/user32/wndmsg.h

    r21356 r21916  
    1717
    1818#ifdef DEBUG_LOGGING
    19 char *GetMsgText(int Msg);
     19const char *GetMsgText(int Msg);
    2020
    2121void DebugPrintMessage(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam, BOOL fUnicode, BOOL fInternalMsg);
Note: See TracChangeset for help on using the changeset viewer.