Annotation of mstools/samples/sdktools/ddespy/ddespy.h, revision 1.1.1.2

1.1       root        1: /*
                      2:  * DDESPY.H
                      3:  *
                      4:  * Header file for DDESPY Symbols
                      5:  */
                      6: #define DDEMLDB
                      7: 
                      8: #include <ddeml.h>
                      9: #include "dialog.h"
                     10: 
                     11: #define MH_INTCREATE                5
                     12: #define MH_INTKEEP                  6
                     13: #define MH_INTDELETE                7
                     14: 
                     15: #define IDD_MSGFILTERS              300
                     16: #define IDRB_WM_DDE_INITIATE        305
                     17: #define IDRB_WM_DDE_TERMINATE       306
                     18: #define IDRB_WM_DDE_ADVISE          307
                     19: #define IDRB_WM_DDE_UNADVISE        308
                     20: #define IDRB_WM_DDE_ACK             309
                     21: #define IDRB_WM_DDE_DATA            310
                     22: #define IDRB_WM_DDE_REQUEST         311
                     23: #define IDRB_WM_DDE_POKE            312
                     24: #define IDRB_WM_DDE_EXECUTE         313
                     25: #define IDRB_XTYP_ERROR             314
                     26: #define IDRB_XTYP_ADVDATA           315
                     27: #define IDRB_XTYP_ADVREQ            316
                     28: #define IDRB_XTYP_ADVSTART          317
                     29: #define IDRB_XTYP_ADVSTOP           318
                     30: #define IDRB_XTYP_EXECUTE           319
                     31: #define IDRB_XTYP_CONNECT           320
                     32: #define IDRB_XTYP_CONNECT_CONFIRM   321
                     33: #define IDRB_XACT_COMPLETE          322
                     34: #define IDRB_XTYP_POKE              323
                     35: #define IDRB_XTYP_REGISTER          324
                     36: #define IDRB_XTYP_REQUEST           325
                     37: #define IDRB_XTYP_DISCONNECT        326
                     38: #define IDRB_XTYP_UNREGISTER        327
                     39: #define IDRB_XTYP_WILDCONNECT       328
                     40: #define IDRB_TERSE                  329
                     41: 
                     42: #define IDR_ACCEL                   30
                     43: #define IDR_MENU                    31
                     44: #define IDD_VALUEENTRY              50
                     45: #define IDD_ABOUTBOX                51
                     46: #define IDD_OPEN                    52
                     47: #define IDM_OUTPUT_FIRST            100
                     48: #define IDM_OUTPUT_FILE             100
                     49: #define IDM_OUTPUT_DEBUG            101
                     50: #define IDM_OUTPUT_SCREEN           102
                     51: #define IDM_CLEARSCREEN             103
                     52: #define IDM_MARK                    104
                     53: #define IDM_FILTER_FIRST            200
                     54: #define IDM_FILTER_HSZINFO          200
                     55: #define IDM_FILTER_INIT_TERM        201
                     56: #define IDM_FILTER_DDEMSGS          202
                     57: #define IDM_FILTER_CALLBACKS        203
                     58: #define IDM_FILTER_ERRORS           204
                     59: #define IDM_FILTER_DIALOG           205
                     60: #define IDM_TRACK_FIRST             301
                     61: #define IDM_TRACK_HSZS              301
                     62: #define IDM_TRACK_CONVS             302
                     63: #define IDM_TRACK_LINKS             303
                     64: #define IDM_TRACK_SVRS              304
                     65: #define IDM_TRACK_LAST              304
                     66: #define IDM_ABOUT                   401
                     67: #define IDM_TEST                    402
                     68: 
                     69: #define IDM_MSGF_0                  500
                     70: #define IDM_MSGF_1                  501
                     71: #define IDM_MSGF_2                  502
                     72: #define IDM_MSGF_3                  503
                     73: #define IDM_MSGF_4                  504
                     74: #define IDM_MSGF_5                  505
                     75: #define IDM_MSGF_6                  506
                     76: #define IDM_MSGF_7                  507
                     77: #define IDM_MSGF_8                  508
                     78: 
                     79: #define IDM_CBF_0                   600
                     80: #define IDM_CBF_1                   601
                     81: #define IDM_CBF_2                   602
                     82: #define IDM_CBF_3                   603
                     83: #define IDM_CBF_4                   604
                     84: #define IDM_CBF_5                   605
                     85: #define IDM_CBF_6                   606
                     86: #define IDM_CBF_7                   607
                     87: #define IDM_CBF_8                   608
                     88: #define IDM_CBF_9                   609
                     89: #define IDM_CBF_10                  610
                     90: #define IDM_CBF_11                  611
                     91: #define IDM_CBF_12                  612
                     92: #define IDM_CBF_13                  613
                     93: #define IDM_CBF_14                  614
                     94: 
                     95: #define IDS_TITLE                   0
                     96: #define IDS_DEFAULT_OUTPUT_FNAME    1
                     97: #define IDS_INIFNAME                2
                     98: #define IDS_CLASS                   3
                     99: #define IDS_HUH                     4
                    100: #define IDS_ZERO                    5
                    101: #define IDS_CRLF                    6
                    102: #define IDS_TRACKTITLE_1            7
                    103: #define IDS_TRACKTITLE_2            8
                    104: #define IDS_TRACKTITLE_3            9
                    105: #define IDS_TRACKTITLE_4            10
                    106: #define IDS_TRACKHEADING_1          11
                    107: #define IDS_TRACKHEADING_2          12
                    108: #define IDS_TRACKHEADING_3          13
                    109: #define IDS_TRACKHEADING_4          14
                    110: #define IDS_QCLOSEFILE_TEXT         15
                    111: #define IDS_QCLOSEFILE_CAPTION      16
                    112: #define IDS_ACTION_CLEANEDUP        17
                    113: #define IDS_ACTION_DESTROYED        18
                    114: #define IDS_ACTION_INCREMENTED      19
                    115: #define IDS_ACTION_CREATED          20
                    116: #define IDS_SENT                    21
                    117: #define IDS_POSTED                  22
                    118: #define IDS_INPUT_DATA              23
                    119: #define IDS_TABDDD                  24
                    120: #define IDS_OUTPUT_DATA             25
                    121: #define IDS_WARM                    26
                    122: #define IDS_HOT                     27
                    123: #define IDS_UNKNOWN_CALLBACK        28
                    124: #define IDS_APPIS                   29
                    125: #define IDS_TOPICIS                 30
                    126: #define IDS_ITEMIS                  31
                    127: #define IDS_OR                      32
                    128: #define IDS_FACKREQ                 33
                    129: #define IDS_DEFERUPD                34
                    130: #define IDS_FACK                    35
                    131: #define IDS_FBUSY                   36
                    132: #define IDS_FRELEASE                37
                    133: #define IDS_FREQUESTED              38
                    134: #define IDS_ERRST0                  39
                    135: #define IDS_ERRST1                  40
                    136: #define IDS_ERRST2                  41
                    137: #define IDS_ERRST3                  42
                    138: #define IDS_ERRST4                  43
                    139: #define IDS_ERRST5                  44
                    140: #define IDS_ERRST6                  45
                    141: #define IDS_ERRST7                  46
                    142: #define IDS_ERRST8                  47
                    143: #define IDS_ERRST9                  48
                    144: #define IDS_ERRST10                 49
                    145: #define IDS_ERRST11                 50
                    146: #define IDS_ERRST12                 51
                    147: #define IDS_ERRST13                 52
                    148: #define IDS_ERRST14                 53
                    149: #define IDS_ERRST15                 54
                    150: #define IDS_ERRST16                 55
                    151: #define IDS_ERRST17                 56
                    152: #define IDS_MSG0                    57
                    153: #define IDS_MSG1                    58
                    154: #define IDS_MSG2                    59
                    155: #define IDS_MSG3                    60
                    156: #define IDS_MSG4                    61
                    157: #define IDS_MSG5                    62
                    158: #define IDS_MSG6                    63
                    159: #define IDS_MSG7                    64
                    160: #define IDS_MSG8                    65
                    161: #define IDS_TYPE0                   66
                    162: #define IDS_TYPE1                   67
                    163: #define IDS_TYPE2                   68
                    164: #define IDS_TYPE3                   69
                    165: #define IDS_TYPE4                   70
                    166: #define IDS_TYPE5                   71
                    167: #define IDS_TYPE6                   72
                    168: #define IDS_TYPE7                   73
                    169: #define IDS_TYPE8                   74
                    170: #define IDS_TYPE9                   75
                    171: #define IDS_TYPE10                  76
                    172: #define IDS_TYPE11                  77
                    173: #define IDS_TYPE12                  78
                    174: #define IDS_TYPE13                  79
                    175: #define IDS_TYPE14                  80
                    176: #define IDS_TYPE15                  81
                    177: #define IDS_INVALID_FNAME           82
                    178: #define IDS_PROF_OUT_FILE           83
                    179: #define IDS_PROF_OUT_DEBUG          84
                    180: #define IDS_PROF_OUT_SCREEN         85
                    181: #define IDS_PROF_MONITOR_STRINGHANDLES   86
                    182: #define IDS_PROF_MONITOR_INITIATES       87
                    183: #define IDS_PROF_MONITOR_DDE_MESSAGES    88
                    184: #define IDS_PROF_MONITOR_CALLBACKS       89
                    185: #define IDS_PROF_MONITOR_ERRORS          90
                    186: #define IDS_PROF_TRACK_STRINGHANDLES     91
                    187: #define IDS_PROF_TRACK_LINKS             92
                    188: #define IDS_PROF_TRACK_CONVERSATIONS     93
                    189: #define IDS_PROF_TRACK_SERVICES          94
                    190: #define IDS_PROF_TERSE              95
                    191: #define IDS_YES                     96
                    192: #define IDS_NO                      97
                    193: #define IDS_MARKDLGTITLE            98
                    194: #define IDS_SEPERATOR               99
                    195: #define IDS_MARKTEXT                100
                    196: #define IDS_LISTCLASS               101
                    197: #define IDS_LBOX                    102
                    198: #define IDS_WILD                    103
                    199: #define IDS_STRINGCLASS             104
                    200: #define IDS_FMT_CB1                 105
                    201: #define IDS_FMT_CB2                 106
                    202: #define IDS_FMT_CTXT1               107
                    203: #define IDS_FMT_DATAIS1             108
                    204: #define IDS_FMT_ER1                 109
                    205: #define IDS_FMT_EXEC1               110
                    206: #define IDS_FMT_MSG1                111
                    207: #define IDS_FMT_MSG2                112
                    208: #define IDS_FMT_STATUSIS            113
                    209: #define IDS_FMT_TRS_CB1             114
                    210: #define IDS_FMT_TRS_CB2             115
                    211: #define IDS_FMT_TRS_CTXT1           116
                    212: #define IDS_FMT_TRS_DATAIS1         117
                    213: #define IDS_FMT_TRS_ER1             118
                    214: #define IDS_FMT_TRS_EXEC1           119
                    215: #define IDS_FMT_TRS_MSG1            120
                    216: #define IDS_FMT_TRS_MSG2            121
                    217: #define IDS_FMT_TRS_STATUSIS        122
                    218: #define IDS_LAST                    122
                    219: 
                    220: #define T_ATOM                      0x0001
                    221: #define T_OPTIONHANDLE              0x0002
                    222: #define T_FORMAT                    0x0004
                    223: #define T_STATUS                    0x0008
                    224: #define T_DATAHANDLE                0x0010
                    225: #define T_STRINGHANDLE              0x0020
                    226: #define T_VALUE                     0x0040
                    227: #define T_APP                       0x0080
                    228: #define T_TOPIC                     0x0100
                    229: #define T_ITEM                      0x0200
                    230: #define T_OR                        0x0400
                    231: 
                    232: 
                    233: #define IO_FILE                     0
                    234: #define IO_DEBUG                    1
                    235: #define IO_SCREEN                   2
                    236: #define IO_COUNT                    3
                    237: 
                    238: #define IF_HSZ                      0
                    239: #define IF_SEND                     1
                    240: #define IF_POST                     2
                    241: #define IF_CB                       3
                    242: #define IF_ERR                      4
                    243: 
                    244: #define IF_COUNT                    5
                    245: 
                    246: #define IT_HSZS                     0
                    247: #define IT_CONVS                    1
                    248: #define IT_LINKS                    2
                    249: #define IT_SVRS                     3
                    250: 
                    251: #define IT_COUNT                    4
                    252: 
                    253: #define MAX_FNAME                   MAX_PATH
                    254: #define BUFFER_SIZE                 400
                    255: #define MAX_MARK                    32
                    256: #define MAX_DISPDATA                48      // max bytes of non-text data to dump
                    257: 
                    258: #define CLINES                      100
                    259: #define CCHARS                      200
                    260: 
                    261: extern HANDLE hInst;
                    262: 
                    263: /* macro definitions */
1.1.1.2 ! root      264: #define MyAlloc(cb)         (LPTSTR)LocalAlloc(LPTR, (cb))
1.1       root      265: #define MyFree(p)           (LocalUnlock((HANDLE)(p)), LocalFree((HANDLE)(p)))
                    266: #define RefString(id)       apszResources[id]
                    267: #define Type2String(type)   apszResources[IDS_TYPE0 + ((type & XTYP_MASK) >> XTYP_SHIFT)]
                    268: #define MPRT(b)             (isprint(b) ? (b) : '.')
                    269: 
                    270: /* prototype definitions */
                    271: BOOL InitApplication(HANDLE);
                    272: BOOL InitInstance(HANDLE, INT);
                    273: VOID CloseApp(VOID);
                    274: LONG CALLBACK MainWndProc(HWND, UINT, WPARAM, LPARAM);
                    275: BOOL CALLBACK About(HWND, UINT, WPARAM, LPARAM);
                    276: BOOL SetFilters(VOID);
                    277: BOOL CALLBACK OpenDlg(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
                    278: BOOL CALLBACK FilterDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
1.1.1.2 ! root      279: LPTSTR DisectMsgLP(UINT msg, MONMSGSTRUCT *pmms, LPTSTR pszBuf);
        !           280: LPTSTR DisectWord(UINT type, UINT data, DDEML_MSG_HOOK_DATA *pdmhd, LPTSTR pstr);
        !           281: LPTSTR pdf(UINT fmt);
        !           282: LPTSTR DumpFormat(UINT fmt, LPTSTR pstr);
        !           283: LPTSTR DdeMsg2String(UINT msg);
        !           284: LPTSTR Error2String(UINT error);
        !           285: LPTSTR DumpData(LPBYTE pData, UINT cb, TCHAR *szBuf, UINT fmt);
        !           286: LPTSTR GetHszName(HSZ hsz);
        !           287: VOID OutputString(LPTSTR pstr);
1.1       root      288: VOID GetProfile(VOID);
                    289: VOID SaveProfile(VOID);
1.1.1.2 ! root      290: BOOL GetProfileBoolean(LPTSTR pszKey, BOOL fDefault);
        !           291: VOID SetProfileBoolean(LPTSTR pszKey, BOOL fSet);
1.1       root      292: HDDEDATA CALLBACK DdeCallback(UINT wType, UINT wFmt, HCONV hConv, HSZ hsz1,
                    293:       HSZ hsz2, HDDEDATA hData, UINT lData1, UINT lData2);
1.1.1.2 ! root      294: INT FAR DoDialog(LPTSTR lpTemplateName, DLGPROC lpDlgProc, UINT param,
1.1       root      295:       BOOL fRememberFocus, HWND hwndParent, HANDLE hInst);
                    296: BOOL  CALLBACK MarkDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
                    297: 
                    298: /* testsubs.c prototypes */
                    299: 
                    300: /* StringWindow structure */
                    301: typedef struct {
                    302:     INT cchLine;
                    303:     INT cLine;
                    304:     INT offBuffer;
                    305:     INT offBufferMax;
                    306:     INT offBottomLine;
                    307:     INT offOutput;
                    308:     INT cBottomLine;
                    309:     INT cLeftChar;
                    310: } STRWND;
                    311: 
                    312: 
                    313: BOOL InitTestSubs(VOID);
                    314: VOID CloseTestSubs(HANDLE hInst);
                    315: VOID NextLine(STRWND *psw);
1.1.1.2 ! root      316: VOID DrawString(HWND hwnd, TCHAR *sz);
1.1       root      317: VOID ClearScreen(STRWND *psw);
                    318: LONG CALLBACK StrWndProc(HWND hwnd, UINT msg, WPARAM wParam, UINT lParam);
                    319: VOID scroll(HWND hwnd, UINT msg, UINT sliderpos, UINT style);
                    320: BOOL StrWndCreate(HWND hwnd, INT cchLine, INT cLine);
                    321: VOID PaintStrWnd(HWND hwnd, LPPAINTSTRUCT pps);

unix.superglobalmegacorp.com

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