Annotation of pmsdk/samples/spy/spy.h, revision 1.1.1.1

1.1       root        1: /* Created by Microsoft Corp. 1987 */
                      2: 
                      3: /****** Resource IDs *****/
                      4: 
                      5: #define IDR_SPY    1
                      6: #define IDD_DLGSPY  0x001
                      7: #define MessagesDlg  0x002 
                      8: #define OutputsDlg  0x003 
                      9: #define WindowsDlg  0x004
                     10: #define SaveListDlg 0x005
                     11: #define About1Dlg   0x006
                     12: #define About2Dlg   0x007
                     13: 
                     14: /****** Menu command IDs *****/
                     15: /* (by convention, hi byte is menu index, lo byte is dispatch table index) */
                     16: 
                     17: /* Spy Menu */
                     18: #define CMD_ACTIVE  0x0000
                     19: #define CMD_EXIT       0x0001
                     20: #define CMD_ABOUT      0x0002
                     21: #define CMD_CLRWIN     0x0003
                     22: #define CMD_SAVEWIN 0x0004
                     23: 
                     24: /* Window Menu */
                     25: #define CMD_WINDOWS 0x0100
                     26: #define CMD_WNMSSEL 0x0101
                     27: #define CMD_WNMSDSL 0x0102
                     28: #define CMD_ALLWNDWS 0x0103
                     29: #define CMD_ALLFRAMES 0x0104
                     30: #define CMD_WNDPWIN 0x0105
                     31: #define CMD_WNDPALL 0x0106
                     32:     
                     33: /* Options Menu */
                     34: #define CMD_MESSAGES 0x0200
                     35: #define CMD_MGDABLE 0x0201
                     36: #define CMD_MGEABLE 0x0202
                     37: #define CMD_OUTPUTS 0x0203
                     38: 
                     39: 
                     40: #define IDD_DLGOPTIONS  0x010
                     41: #define IDD_DLGWINDOWS  0x020
                     42: #define IDD_DLGSAVELIST 0x030
                     43: 
                     44: /* From the Main Dialog */
                     45: #define DID_SPYLIST     0x0100
                     46: 
                     47: 
                     48: /* From the Options Dialog */
                     49: #define DID_OMSGLIST   0x0100
                     50: #define DID_MALL               0x0101
                     51: #define DID_MNONE              0x0102
                     52: #define DID_MCON               0x0103
                     53: #define DID_MCOFF              0x0104
                     54: #define DID_MMON               0x0105
                     55: #define DID_MMOFF              0x0106
                     56: #define DID_MFON               0x0107
                     57: #define DID_MFOFF              0x0108
                     58: 
                     59: #define DID_OINPUT      0x0120
                     60: #define DID_OSENDMSG    0x0121
                     61: 
                     62: #define DID_WINDOW      0x0110
                     63: #define DID_DEBUG       0x0111
                     64: #define DID_FILE        0x0112
                     65: #define DID_WINDOWLINES 0x0113
                     66: #define DID_FILENAME    0x0114
                     67: 
                     68: /* From the Windows Dialog */
                     69: #define DID_WINDOWLIST  0x0200
                     70: #define DID_WHANDLE     0x0201
                     71: #define DID_WPARENT     0x0202
                     72: #define DID_WCHILD      0x0203
                     73: #define DID_WOWNER      0x0204
                     74: #define DID_WRECT       0x0205
                     75: #define DID_WID                0x0207
                     76: #define DID_WSELALL    0x0208
                     77: #define DID_WUNSELALL  0x0209
                     78: #define DID_WSELMOUSE   0x020a
                     79: #define DID_WSTYLE         0x020b
                     80: #define DID_WPFNWP         0x020c
                     81: #define DID_WHMQ           0x020d
                     82: #define DID_WCLASS      0x020e
                     83: 
                     84: /* From the save file dialog */
                     85: #define DID_APPEND             0x0300
                     86: 
                     87: /*
                     88:  * Define data structures 
                     89:  */
                     90: typedef struct _SPYOPT { /* Spy Options */
                     91:     /* Now define the output options */
                     92:        /* In options dialog */
                     93:     BOOL       fWindow;
                     94:     BOOL       fDebugOutput;
                     95:     BOOL       fFile;
                     96:     SHORT      cWindowLines;
                     97:     CHAR       szFileName[100];
                     98:        HFILE   hfileSpy;                       /* if all lines go to file */
                     99: 
                    100:        /* In Save file dialog */
                    101:        BOOL    fAppend;
                    102:        char    szSaveFileName[100];
                    103: 
                    104: } SPYOPT;   /* spyoptions */
                    105: 
                    106: typedef struct _IDTONAME {
                    107:     USHORT  id;             /* id of window */
                    108:     char    *szIdName;      /* String with text of ID */
                    109: } IDTONAME;
                    110: 
                    111: /*
                    112:  * Define the system defined limits
                    113:  */
                    114: #define CBSTACK     4096
                    115: 
                    116: /*
                    117:  * Define Message output information 
                    118:  */
                    119: 
                    120: #define MSGI_ENABLED    0x0001
                    121: #define MSGI_MOUSE      0x0002  /* Mouse type messages */
                    122: #define MSGI_KEY        0x0004  /* Key type messages */
                    123: #define MSGI_FREQ       0x0010  /* Frequent messages generaly ignored */
                    124: 
                    125: 
                    126: typedef struct _MSGI {
                    127: 
                    128:     USHORT  msg;
                    129:     char    *szMsg;
                    130:     USHORT  wOptions;
                    131:        SHORT   iListBox;
                    132: } MSGI;
                    133: 
                    134: /*
                    135:  * Now define all of the global strutures that are exported from
                    136:  * the initializition file
                    137:  */
                    138: extern SPYOPT       spyopt;
                    139: extern MSGI         rgmsgi[];
                    140: extern SHORT        cmsgi;          /* Count of message info items */
                    141: extern IDTONAME     rgidtoname[];
                    142: extern SHORT        cToName;        /* Count of items in cToName */

unix.superglobalmegacorp.com

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