Annotation of pmsdk/samples/spy/spytbls.c, revision 1.1.1.1

1.1       root        1: /****************************** Module Header ******************************\
                      2: * Module Name:  spytabls.c
                      3: *
                      4: *    Includes the definitions of the different tables used in the spy
                      5: *    program
                      6: *
                      7: * Created by Microsoft Corp. 1987
                      8: *
                      9: \***************************************************************************/
                     10: 
                     11: #define INCL_PM
                     12: #define INCL_WINSYS
                     13: #define INCL_DOSPROCESS
                     14: #include "os2.h"
                     15: #include "stdio.h"
                     16: #include "string.h"
                     17: #include "spy.h"
                     18: 
                     19: 
                     20: /*
                     21:  * First define the message information table.  This table will be
                     22:  * used to display messages with
                     23:  */
                     24: MSGI rgmsgi[] = 
                     25: {
                     26:     {0x0000, "WM_NULL", MSGI_ENABLED, 0},
                     27:        {0x0001, "WM_CREATE", MSGI_ENABLED, 0},
                     28:        {0x0002, "WM_DESTROY", MSGI_ENABLED, 0},
                     29:        {0x0003, "WM_OTHERWINDOWDESTROYED", MSGI_ENABLED, 0},
                     30:        {0x0004, "WM_ENABLE", MSGI_ENABLED, 0},
                     31:        {0x0005, "WM_SHOW", MSGI_ENABLED, 0},
                     32:        {0x0006, "WM_MOVE", MSGI_ENABLED, 0},
                     33:        {0x0007, "WM_SIZE", MSGI_ENABLED, 0},
                     34:        {0x0008, "WM_ADJUSTWINDOWPOS", MSGI_ENABLED, 0},
                     35:        {0x0009, "WM_CALCVALIDRECTS", MSGI_ENABLED, 0},
                     36:        {0x000a, "WM_SETWINDOWPARAMS", MSGI_ENABLED, 0},
                     37:        {0x000b, "WM_QUERYWINDOWPARAMS", MSGI_ENABLED, 0},
                     38:        {0x000c, "WM_HITTEST", MSGI_FREQ, 0},
                     39:        {0x000d, "WM_ACTIVATE", MSGI_ENABLED, 0},
                     40:        {0x000f, "WM_SETFOCUS", MSGI_ENABLED, 0},
                     41:        {0x0010, "WM_SETSELECTION", MSGI_ENABLED, 0},
                     42:        {0x0020, "WM_COMMAND", MSGI_ENABLED, 0},
                     43:        {0x0021, "WM_SYSCOMMAND", MSGI_ENABLED, 0},
                     44:        {0x0022, "WM_HELP", MSGI_ENABLED, 0},
                     45:        {0x0023, "WM_PAINT", MSGI_ENABLED, 0},
                     46:        {0x0024, "WM_TIMER", MSGI_FREQ, 0},
                     47:        {0x0025, "WM_SEM1", MSGI_ENABLED, 0},
                     48:        {0x0026, "WM_SEM2", MSGI_ENABLED, 0},
                     49:        {0x0027, "WM_SEM3", MSGI_ENABLED, 0},
                     50:        {0x0028, "WM_SEM4", MSGI_ENABLED, 0},
                     51:        {0x0029, "WM_CLOSE", MSGI_ENABLED, 0},
                     52:        {0x002a, "WM_QUIT", MSGI_ENABLED, 0},
                     53:        {0x002b, "WM_SYSCOLORCHANGE", MSGI_ENABLED, 0},
                     54:        {0x002d, "WM_SYSVALUECHANGED", MSGI_ENABLED, 0},
                     55:        {0x0030, "WM_CONTROL", MSGI_ENABLED, 0},
                     56:        {0x0031, "WM_VSCROLL", MSGI_ENABLED, 0},
                     57:        {0x0032, "WM_HSCROLL", MSGI_ENABLED, 0},
                     58:        {0x0033, "WM_INITMENU", MSGI_ENABLED, 0},
                     59:        {0x0034, "WM_MENUSELECT", MSGI_ENABLED, 0},
                     60:        {0x0035, "WM_MENUEND", MSGI_ENABLED, 0},
                     61:        {0x0036, "WM_DRAWITEM", MSGI_ENABLED, 0},
                     62:        {0x0037, "WM_MEASUREITEM", MSGI_ENABLED, 0},
                     63:        {0x0038, "WM_CONTROLPOINTER", MSGI_FREQ, 0},
                     64:        {0x0039, "WM_CONTROLHEAP", MSGI_ENABLED, 0},
                     65:        {0x003a, "WM_QUERYDLGCODE", MSGI_ENABLED, 0},
                     66:        {0x003b, "WM_INITDLG", MSGI_ENABLED, 0},
                     67:        {0x003c, "WM_SUBSTITUTESTRING", MSGI_ENABLED, 0},
                     68:        {0x003d, "WM_MATCHMNEMONIC", MSGI_ENABLED, 0},
                     69:        {0x0040, "WM_FLASHWINDOW", MSGI_ENABLED, 0},
                     70:        {0x0041, "WM_FORMATFRAME", MSGI_ENABLED, 0},
                     71:        {0x0042, "WM_UPDATEFRAME", MSGI_ENABLED, 0},
                     72:        {0x0043, "WM_FOCUSCHANGE", MSGI_ENABLED, 0},
                     73:        {0x0046, "WM_MINMAXFRAME", MSGI_ENABLED, 0},
                     74:        {0x0047, "WM_SETICON", MSGI_ENABLED, 0},
                     75:        {0x0048, "WM_QUERYICON", MSGI_ENABLED, 0},
                     76:        {0x0049, "WM_SETACCELTABLE", MSGI_ENABLED, 0},
                     77:        {0x004a, "WM_QUERYACCELTABLE", MSGI_ENABLED, 0},
                     78:        {0x004b, "WM_TRANSLATEACCEL", MSGI_ENABLED, 0},
                     79:        {0x004c, "WM_QUERYTRACKINFO", MSGI_ENABLED, 0},
                     80:        {0x004d, "WM_QUERYBORDERSIZE", MSGI_ENABLED, 0},
                     81:        {0x004e, "WM_NEXTMENU", MSGI_ENABLED, 0},
                     82:        {0x004f, "WM_ERASEBACKGROUND", MSGI_ENABLED, 0},
                     83:        {0x0050, "WM_QUERYFRAMEINFO", MSGI_ENABLED, 0},
                     84:        {0x0051, "WM_WINDOWPOSCHANGED", MSGI_ENABLED, 0},
                     85:        {0x0052, "WM_OWNERPOSCHANGE", MSGI_ENABLED, 0},
                     86:        {0x0053, "WM_CALCFRAMERECT", MSGI_ENABLED, 0},
                     87:        {0x0054, "WM_SYSTEMSHUTDOWN", MSGI_ENABLED, 0},
                     88:        {0x0055, "WM_ACTIVATEGROUP", MSGI_ENABLED, 0},
                     89:        {0x0056, "WM_ADJUSTFRAMEPOS", MSGI_ENABLED, 0},
                     90:        {0x0057, "WM_FRAMEDESTROY", MSGI_ENABLED, 0},
                     91:     {0x0058, "WM_QUERYTASKFOCUS", MSGI_ENABLED, 0},
                     92:        {0x0060, "WM_RENDERFMT", MSGI_ENABLED, 0},
                     93:        {0x0061, "WM_RENDERALLFMTS", MSGI_ENABLED, 0},
                     94:        {0x0062, "WM_DESTROYCLIPBOARD", MSGI_ENABLED, 0},
                     95:        {0x0063, "WM_PAINTCLIPBOARD", MSGI_ENABLED, 0},
                     96:        {0x0064, "WM_SIZECLIPBOARD", MSGI_ENABLED, 0},
                     97:        {0x0065, "WM_HSCROLLCLIPBOARD", MSGI_ENABLED, 0},
                     98:        {0x0066, "WM_VSCROLLCLIPBOARD", MSGI_ENABLED, 0},
                     99:        {0x0067, "WM_DRAWCLIPBOARD", MSGI_ENABLED, 0},
                    100:        {0x0070, "WM_MOUSEMOVE", MSGI_FREQ| MSGI_MOUSE, 0},
                    101:        {0x0071, "WM_BUTTON1DOWN", MSGI_ENABLED| MSGI_MOUSE, 0},
                    102:        {0x0072, "WM_BUTTON1UP", MSGI_ENABLED| MSGI_MOUSE, 0},
                    103:        {0x0073, "WM_BUTTON1DBLCLK", MSGI_ENABLED| MSGI_MOUSE, 0},
                    104:        {0x0074, "WM_BUTTON2DOWN", MSGI_ENABLED| MSGI_MOUSE, 0},
                    105:        {0x0075, "WM_BUTTON2UP", MSGI_ENABLED| MSGI_MOUSE, 0},
                    106:        {0x0076, "WM_BUTTON2DBLCLK", MSGI_ENABLED| MSGI_MOUSE, 0},
                    107:        {0x0077, "WM_BUTTON3DOWN", MSGI_ENABLED| MSGI_MOUSE, 0},
                    108:        {0x0078, "WM_BUTTON3UP", MSGI_ENABLED| MSGI_MOUSE, 0},
                    109:        {0x0079, "WM_BUTTON3DBLCLK", MSGI_ENABLED| MSGI_MOUSE, 0},
                    110:        {0x007a, "WM_CHAR", MSGI_ENABLED | MSGI_KEY, 0},
                    111:        {0x007b, "WM_QUEUESYNC", MSGI_ENABLED, 0},
                    112:        {0x0080, "SH_SWITCHLIST", MSGI_ENABLED, 0},
                    113:        {0x0081, "SH_TASKMANAGER", MSGI_ENABLED, 0},
                    114:        {0x0082, "SH_ACTIVATE", MSGI_ENABLED, 0},
                    115:        {0x0083, "PL_ALTER", MSGI_ENABLED, 0},
                    116:     {0x008f, "WM_WINSAVE", MSGI_ENABLED, 0},
                    117:        {0x009f, "WM_SHELLLAST", MSGI_ENABLED, 0},
                    118:        {0x00a0, "WM_DDEFIRST", MSGI_ENABLED, 0},
                    119:        {0x00af, "WM_DDELAST", MSGI_ENABLED, 0},
                    120:        {0x00b0, "WM_DBCSFIRST", MSGI_ENABLED, 0},
                    121:        {0x00cf, "WM_DBCSLAST", MSGI_ENABLED, 0},
                    122:        {0x0100, "WM_PRIVATEFIRST", MSGI_ENABLED, 0},
                    123:        {0x0120, "BM_CLICK", MSGI_ENABLED, 0},
                    124:        {0x0121, "BM_QUERYCHECKINDEX", MSGI_ENABLED, 0},
                    125:        {0x0122, "BM_QUERYHILITE", MSGI_ENABLED, 0},
                    126:        {0x0123, "BM_SETHILITE", MSGI_ENABLED, 0},
                    127:        {0x0124, "BM_QUERYCHECK", MSGI_ENABLED, 0},
                    128:        {0x0125, "BM_SETCHECK", MSGI_ENABLED, 0},
                    129:        {0x0126, "BM_SETDEFAULT", MSGI_ENABLED, 0},
                    130:        {0x0140, "EM_QUERYCHANGED", MSGI_ENABLED, 0},
                    131:        {0x0141, "EM_QUERYSEL", MSGI_ENABLED, 0},
                    132:        {0x0142, "EM_SETSEL", MSGI_ENABLED, 0},
                    133:        {0x0143, "EM_SETTEXTLIMIT", MSGI_ENABLED, 0},
                    134:        {0x0144, "EM_CUT", MSGI_ENABLED, 0},
                    135:        {0x0145, "EM_COPY", MSGI_ENABLED, 0},
                    136:        {0x0146, "EM_CLEAR", MSGI_ENABLED, 0},
                    137:        {0x0147, "EM_PASTE", MSGI_ENABLED, 0},
                    138:        {0x0148, "EM_QUERYFIRSTCHAR", MSGI_ENABLED, 0},
                    139:        {0x0149, "EM_SETFIRSTCHAR", MSGI_ENABLED, 0},
                    140:        {0x0160, "LM_QUERYITEMCOUNT", MSGI_ENABLED, 0},
                    141:        {0x0161, "LM_INSERTITEM", MSGI_ENABLED, 0},
                    142:        {0x0162, "LM_SETTOPINDEX", MSGI_ENABLED, 0},
                    143:        {0x0163, "LM_DELETEITEM", MSGI_ENABLED, 0},
                    144:        {0x0164, "LM_SELECTITEM", MSGI_ENABLED, 0},
                    145:        {0x0165, "LM_QUERYSELECTION", MSGI_ENABLED, 0},
                    146:        {0x0166, "LM_SETITEMTEXT", MSGI_ENABLED, 0},
                    147:        {0x0167, "LM_QUERYITEMTEXTLENGTH", MSGI_ENABLED, 0},
                    148:        {0x0168, "LM_QUERYITEMTEXT", MSGI_ENABLED, 0},
                    149:        {0x0169, "LM_SETITEMHANDLE", MSGI_ENABLED, 0},
                    150:        {0x016a, "LM_QUERYITEMHANDLE", MSGI_ENABLED, 0},
                    151:        {0x016b, "LM_SEARCHSTRING", MSGI_ENABLED, 0},
                    152:        {0x016c, "LM_SETITEMHEIGHT", MSGI_ENABLED, 0},
                    153:        {0x016d, "LM_QUERYTOPINDEX", MSGI_ENABLED, 0},
                    154:        {0x016e, "LM_DELETEALL", MSGI_ENABLED, 0},
                    155:        {0x0180, "MM_INSERTITEM", MSGI_ENABLED, 0},
                    156:        {0x0181, "MM_DELETEITEM", MSGI_ENABLED, 0},
                    157:        {0x0182, "MM_QUERYITEM", MSGI_ENABLED, 0},
                    158:        {0x0183, "MM_SETITEM", MSGI_ENABLED, 0},
                    159:        {0x0184, "MM_QUERYITEMCOUNT", MSGI_ENABLED, 0},
                    160:        {0x0185, "MM_STARTMENUMODE", MSGI_ENABLED, 0},
                    161:        {0x0186, "MM_ENDMENUMODE", MSGI_ENABLED, 0},
                    162:        {0x0187, "MM_DISMISSMENU", MSGI_ENABLED, 0},
                    163:        {0x0188, "MM_REMOVEITEM", MSGI_ENABLED, 0},
                    164:        {0x0189, "MM_SELECTITEM", MSGI_ENABLED, 0},
                    165:        {0x018a, "MM_QUERYSELITEMID", MSGI_ENABLED, 0},
                    166:        {0x018b, "MM_QUERYITEMTEXT", MSGI_ENABLED, 0},
                    167:        {0x018c, "MM_QUERYITEMTEXTLENGTH", MSGI_ENABLED, 0},
                    168:        {0x018d, "MM_SETITEMHANDLE", MSGI_ENABLED, 0},
                    169:        {0x018e, "MM_SETITEMTEXT", MSGI_ENABLED, 0},
                    170:        {0x018f, "MM_ITEMPOSITIONFROMID", MSGI_ENABLED, 0},
                    171:        {0x0190, "MM_ITEMIDFROMPOSITION", MSGI_ENABLED, 0},
                    172:        {0x0191, "MM_QUERYITEMATTR", MSGI_ENABLED, 0},
                    173:        {0x0192, "MM_SETITEMATTR", MSGI_ENABLED, 0},
                    174:        {0x0193, "MM_ISITEMVALID", MSGI_ENABLED, 0},
                    175:        {0x01a0, "SBM_SETSCROLLBAR", MSGI_ENABLED, 0},
                    176:        {0x01a1, "SBM_SETPOS", MSGI_ENABLED, 0},
                    177:        {0x01a2, "SBM_QUERYPOS", MSGI_ENABLED, 0},
                    178:        {0x01a3, "SBM_QUERYRANGE", MSGI_ENABLED, 0},
                    179:        {0x01a4, "SBM_SETHILITE", MSGI_ENABLED, 0},
                    180:        {0x01a5, "SBM_QUERYHILITE", MSGI_ENABLED, 0},
                    181:        {0x01c0, "SZM_TRACKSIZE", MSGI_ENABLED, 0},
                    182:        {0x01c1, "SZM_SETBORDERSIZE", MSGI_ENABLED, 0},
                    183:        {0x01c2, "SZM_QUERYBORDERSIZE", MSGI_ENABLED, 0},
                    184:        {0x01c3, "SZM_SETHILITE", MSGI_ENABLED, 0},
                    185:        {0x01c4, "SZM_QUERYHILITE", MSGI_ENABLED, 0},
                    186:        {0x01e0, "TBM_TRACKMOVE", MSGI_ENABLED, 0},
                    187:        {0x01e1, "TBM_QUERYICONTEXTWINDOW", MSGI_ENABLED, 0},
                    188:        {0x01e2, "TBM_SHOWICONTEXT", MSGI_ENABLED, 0},
                    189:        {0x01e3, "TBM_SETHILITE", MSGI_ENABLED, 0},
                    190:        {0x01e4, "TBM_QUERYHILITE", MSGI_ENABLED, 0},
                    191: };
                    192: 
                    193: SHORT cmsgi = sizeof(rgmsgi) / sizeof(MSGI);
                    194: 
                    195: 
                    196: /*
                    197:  * Now define the table of system known window ids, that is
                    198:  * used to display the list of windows with
                    199:  */
                    200: /* Define table of window ids */
                    201: IDTONAME    rgidtoname[] = {
                    202:        {0x8001, "FID_SIZEBORDER"},
                    203:        {0x8002, "FID_SYSMENU"},
                    204:        {0x8003, "FID_TITLEBAR"},
                    205:        {0x8004, "FID_MINMAX"},
                    206:        {0x8005, "FID_MENU"},
                    207:        {0x8006, "FID_VERTSCROLL"},
                    208:        {0x8007, "FID_HORZSCROLL"},
                    209:        {0x8008, "FID_CLIENT"}
                    210: };
                    211: 
                    212: SHORT cToName =  sizeof(rgidtoname) / sizeof(IDTONAME);
                    213: 
                    214: 
                    215: /*
                    216:  * And define the system options
                    217:  */
                    218: 
                    219: SPYOPT spyopt = {
                    220:     /* Output options */
                    221:     TRUE, FALSE, FALSE, 100, "spy.out", NULL, 
                    222:        FALSE, "spy.lis"
                    223: };

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.