home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / ddeml.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  18KB  |  495 lines

  1.  
  2. /*++ BUILD Version: 0001 // Increment this if a change has global effects --*/
  3.  
  4. /*****************************************************************************\
  5. *                                                                             *
  6. *  ddeml.h -    DDEML API header file                                         *
  7. *                                                                             *
  8. *               Version 3.10                                                  *
  9. *                                                                             *
  10. *               Copyright 1993 - 1998 Microsoft Corp.  All rights reserved.*
  11. *                                                                             *
  12. \*****************************************************************************/
  13. #ifndef _INC_DDEMLH
  14. #define _INC_DDEMLH
  15.  
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif /* __cplusplus */
  19.  
  20. /******** public types ********/
  21.  
  22. DECLARE_HANDLE(HCONVLIST);
  23. DECLARE_HANDLE(HCONV);
  24. DECLARE_HANDLE(HSZ);
  25. DECLARE_HANDLE(HDDEDATA);
  26. #define EXPENTRY        CALLBACK
  27.  
  28. /* the following structure is for use with XTYP_WILDCONNECT processing. */
  29.  
  30. typedef struct tagHSZPAIR {
  31.     HSZ hszSvc;
  32.     HSZ hszTopic;
  33. } HSZPAIR;
  34. typedef HSZPAIR FAR *PHSZPAIR;
  35.  
  36. /* The following structure is used by DdeConnect() and DdeConnectList() and
  37.    by XTYP_CONNECT and XTYP_WILDCONNECT callbacks. */
  38.  
  39. typedef struct tagCONVCONTEXT {
  40.     UINT        cb;             /* set to sizeof(CONVCONTEXT) */
  41.     UINT        wFlags;         /* none currently defined. */
  42.     UINT        wCountryID;     /* country code for topic/item strings used. */
  43.     int         iCodePage;      /* codepage used for topic/item strings. */
  44.     DWORD       dwLangID;       /* language ID for topic/item strings. */
  45.     DWORD       dwSecurity;     /* Private security code. */
  46.     SECURITY_QUALITY_OF_SERVICE qos;  /* client side's quality of service */
  47. } CONVCONTEXT;
  48. typedef CONVCONTEXT FAR *PCONVCONTEXT;
  49.  
  50.  
  51. /* The following structure is used by DdeQueryConvInfo(): */
  52.  
  53. typedef struct tagCONVINFO {
  54.     DWORD   cb;            /* sizeof(CONVINFO)  */
  55.     DWORD   hUser;         /* user specified field  */
  56.     HCONV   hConvPartner;  /* hConv on other end or 0 if non-ddemgr partner  */
  57.     HSZ     hszSvcPartner; /* app name of partner if obtainable  */
  58.     HSZ     hszServiceReq; /* AppName requested for connection  */
  59.     HSZ     hszTopic;      /* Topic name for conversation  */
  60.     HSZ     hszItem;       /* transaction item name or NULL if quiescent  */
  61.     UINT    wFmt;          /* transaction format or NULL if quiescent  */
  62.     UINT    wType;         /* XTYP_ for current transaction  */
  63.     UINT    wStatus;       /* ST_ constant for current conversation  */
  64.     UINT    wConvst;       /* XST_ constant for current transaction  */
  65.     UINT    wLastError;    /* last transaction error.  */
  66.     HCONVLIST hConvList;   /* parent hConvList if this conversation is in a list */
  67.     CONVCONTEXT ConvCtxt;  /* conversation context */
  68.     HWND    hwnd;          /* window handle for this conversation */
  69.     HWND    hwndPartner;   /* partner window handle for this conversation */
  70. } CONVINFO;
  71. typedef CONVINFO FAR *PCONVINFO;
  72.  
  73. /***** conversation states (usState) *****/
  74.  
  75. #define     XST_NULL              0  /* quiescent states */
  76. #define     XST_INCOMPLETE        1
  77. #define     XST_CONNECTED         2
  78. #define     XST_INIT1             3  /* mid-initiation states */
  79. #define     XST_INIT2             4
  80. #define     XST_REQSENT           5  /* active conversation states */
  81. #define     XST_DATARCVD          6
  82. #define     XST_POKESENT          7
  83. #define     XST_POKEACKRCVD       8
  84. #define     XST_EXECSENT          9
  85. #define     XST_EXECACKRCVD      10
  86. #define     XST_ADVSENT          11
  87. #define     XST_UNADVSENT        12
  88. #define     XST_ADVACKRCVD       13
  89. #define     XST_UNADVACKRCVD     14
  90. #define     XST_ADVDATASENT      15
  91. #define     XST_ADVDATAACKRCVD   16
  92.  
  93. /* used in LOWORD(dwData1) of XTYP_ADVREQ callbacks... */
  94. #define     CADV_LATEACK         0xFFFF
  95.  
  96. /***** conversation status bits (fsStatus) *****/
  97.  
  98. #define     ST_CONNECTED            0x0001
  99. #define     ST_ADVISE               0x0002
  100. #define     ST_ISLOCAL              0x0004
  101. #define     ST_BLOCKED              0x0008
  102. #define     ST_CLIENT               0x0010
  103. #define     ST_TERMINATED           0x0020
  104. #define     ST_INLIST               0x0040
  105. #define     ST_BLOCKNEXT            0x0080
  106. #define     ST_ISSELF               0x0100
  107.  
  108. /* DDE constants for wStatus field */
  109.  
  110. #define DDE_FACK                0x8000
  111. #define DDE_FBUSY               0x4000
  112. #define DDE_FDEFERUPD           0x4000
  113. #define DDE_FACKREQ             0x8000
  114. #define DDE_FRELEASE            0x2000
  115. #define DDE_FREQUESTED          0x1000
  116. #define DDE_FAPPSTATUS          0x00ff
  117. #define DDE_FNOTPROCESSED       0x0000
  118.  
  119. #define DDE_FACKRESERVED        (~(DDE_FACK | DDE_FBUSY | DDE_FAPPSTATUS))
  120. #define DDE_FADVRESERVED        (~(DDE_FACKREQ | DDE_FDEFERUPD))
  121. #define DDE_FDATRESERVED        (~(DDE_FACKREQ | DDE_FRELEASE | DDE_FREQUESTED))
  122. #define DDE_FPOKRESERVED        (~(DDE_FRELEASE))
  123.  
  124. /***** message filter hook types *****/
  125.  
  126. #define     MSGF_DDEMGR             0x8001
  127.  
  128. /***** codepage constants ****/
  129.  
  130. #define CP_WINANSI      1004    /* default codepage for windows & old DDE convs. */
  131. #define CP_WINUNICODE   1200
  132. #ifdef UNICODE
  133. #define CP_WINNEUTRAL   CP_WINUNICODE
  134. #else  // !UNICODE
  135. #define CP_WINNEUTRAL   CP_WINANSI
  136. #endif // !UNICODE
  137.  
  138. /***** transaction types *****/
  139.  
  140. #define     XTYPF_NOBLOCK            0x0002  /* CBR_BLOCK will not work */
  141. #define     XTYPF_NODATA             0x0004  /* DDE_FDEFERUPD */
  142. #define     XTYPF_ACKREQ             0x0008  /* DDE_FACKREQ */
  143.  
  144. #define     XCLASS_MASK              0xFC00
  145. #define     XCLASS_BOOL              0x1000
  146. #define     XCLASS_DATA              0x2000
  147. #define     XCLASS_FLAGS             0x4000
  148. #define     XCLASS_NOTIFICATION      0x8000
  149.  
  150. #define     XTYP_ERROR              (0x0000 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK )
  151. #define     XTYP_ADVDATA            (0x0010 | XCLASS_FLAGS         )
  152. #define     XTYP_ADVREQ             (0x0020 | XCLASS_DATA | XTYPF_NOBLOCK )
  153. #define     XTYP_ADVSTART           (0x0030 | XCLASS_BOOL          )
  154. #define     XTYP_ADVSTOP            (0x0040 | XCLASS_NOTIFICATION)
  155. #define     XTYP_EXECUTE            (0x0050 | XCLASS_FLAGS         )
  156. #define     XTYP_CONNECT            (0x0060 | XCLASS_BOOL | XTYPF_NOBLOCK)
  157. #define     XTYP_CONNECT_CONFIRM    (0x0070 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK)
  158. #define     XTYP_XACT_COMPLETE      (0x0080 | XCLASS_NOTIFICATION  )
  159. #define     XTYP_POKE               (0x0090 | XCLASS_FLAGS         )
  160. #define     XTYP_REGISTER           (0x00A0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK)
  161. #define     XTYP_REQUEST            (0x00B0 | XCLASS_DATA          )
  162. #define     XTYP_DISCONNECT         (0x00C0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK)
  163. #define     XTYP_UNREGISTER         (0x00D0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK)
  164. #define     XTYP_WILDCONNECT        (0x00E0 | XCLASS_DATA | XTYPF_NOBLOCK)
  165.  
  166. #define     XTYP_MASK                0x00F0
  167. #define     XTYP_SHIFT               4  /* shift to turn XTYP_ into an index */
  168.  
  169. /***** Timeout constants *****/
  170.  
  171. #define     TIMEOUT_ASYNC           0xFFFFFFFF
  172.  
  173. /***** Transaction ID constants *****/
  174.  
  175. #define     QID_SYNC                0xFFFFFFFF
  176.  
  177. /****** public strings used in DDE ******/
  178.  
  179. #ifdef UNICODE
  180. #define SZDDESYS_TOPIC         L"System"
  181. #define SZDDESYS_ITEM_TOPICS   L"Topics"
  182. #define SZDDESYS_ITEM_SYSITEMS L"SysItems"
  183. #define SZDDESYS_ITEM_RTNMSG   L"ReturnMessage"
  184. #define SZDDESYS_ITEM_STATUS   L"Status"
  185. #define SZDDESYS_ITEM_FORMATS  L"Formats"
  186. #define SZDDESYS_ITEM_HELP     L"Help"
  187. #define SZDDE_ITEM_ITEMLIST    L"TopicItemList"
  188. #else
  189. #define SZDDESYS_TOPIC         "System"
  190. #define SZDDESYS_ITEM_TOPICS   "Topics"
  191. #define SZDDESYS_ITEM_SYSITEMS "SysItems"
  192. #define SZDDESYS_ITEM_RTNMSG   "ReturnMessage"
  193. #define SZDDESYS_ITEM_STATUS   "Status"
  194. #define SZDDESYS_ITEM_FORMATS  "Formats"
  195. #define SZDDESYS_ITEM_HELP     "Help"
  196. #define SZDDE_ITEM_ITEMLIST    "TopicItemList"
  197. #endif
  198.  
  199.  
  200. /****** API entry points ******/
  201.  
  202. typedef HDDEDATA CALLBACK FNCALLBACK(UINT wType, UINT wFmt, HCONV hConv,
  203.         HSZ hsz1, HSZ hsz2, HDDEDATA hData, DWORD dwData1, DWORD dwData2);
  204. typedef HDDEDATA (CALLBACK *PFNCALLBACK)(UINT wType, UINT wFmt, HCONV hConv,
  205.         HSZ hsz1, HSZ hsz2, HDDEDATA hData, DWORD dwData1, DWORD dwData2);
  206.  
  207. #define     CBR_BLOCK           ((HDDEDATA)0xffffffffL)
  208.  
  209. /* DLL registration functions */
  210.  
  211. UINT WINAPI DdeInitializeA(LPDWORD pidInst, PFNCALLBACK pfnCallback,
  212.         DWORD afCmd, DWORD ulRes);
  213. UINT WINAPI DdeInitializeW(LPDWORD pidInst, PFNCALLBACK pfnCallback,
  214.         DWORD afCmd, DWORD ulRes);
  215. #ifdef UNICODE
  216. #define DdeInitialize  DdeInitializeW
  217. #else
  218. #define DdeInitialize  DdeInitializeA
  219. #endif // !UNICODE
  220.  
  221. /*
  222.  * Callback filter flags for use with standard apps.
  223.  */
  224.  
  225. #define     CBF_FAIL_SELFCONNECTIONS     0x00001000
  226. #define     CBF_FAIL_CONNECTIONS         0x00002000
  227. #define     CBF_FAIL_ADVISES             0x00004000
  228. #define     CBF_FAIL_EXECUTES            0x00008000
  229. #define     CBF_FAIL_POKES               0x00010000
  230. #define     CBF_FAIL_REQUESTS            0x00020000
  231. #define     CBF_FAIL_ALLSVRXACTIONS      0x0003f000
  232.  
  233. #define     CBF_SKIP_CONNECT_CONFIRMS    0x00040000
  234. #define     CBF_SKIP_REGISTRATIONS       0x00080000
  235. #define     CBF_SKIP_UNREGISTRATIONS     0x00100000
  236. #define     CBF_SKIP_DISCONNECTS         0x00200000
  237. #define     CBF_SKIP_ALLNOTIFICATIONS    0x003c0000
  238.  
  239. /*
  240.  * Application command flags
  241.  */
  242. #define     APPCMD_CLIENTONLY            0x00000010L
  243. #define     APPCMD_FILTERINITS           0x00000020L
  244. #define     APPCMD_MASK                  0x00000FF0L
  245.  
  246. /*
  247.  * Application classification flags
  248.  */
  249. #define     APPCLASS_STANDARD            0x00000000L
  250. #define     APPCLASS_MASK                0x0000000FL
  251.  
  252. BOOL WINAPI DdeUninitialize(DWORD idInst);
  253.  
  254. /*
  255.  * conversation enumeration functions
  256.  */
  257.  
  258. HCONVLIST WINAPI DdeConnectList(DWORD idInst, HSZ hszService, HSZ hszTopic,
  259.         HCONVLIST hConvList, PCONVCONTEXT pCC);
  260. HCONV WINAPI DdeQueryNextServer(HCONVLIST hConvList, HCONV hConvPrev);
  261. BOOL WINAPI DdeDisconnectList(HCONVLIST hConvList);
  262.  
  263. /*
  264.  * conversation control functions
  265.  */
  266.  
  267. HCONV WINAPI DdeConnect(DWORD idInst, HSZ hszService, HSZ hszTopic,
  268.         PCONVCONTEXT pCC);
  269. BOOL WINAPI DdeDisconnect(HCONV hConv);
  270. HCONV WINAPI DdeReconnect(HCONV hConv);
  271. UINT WINAPI DdeQueryConvInfo(HCONV hConv, DWORD idTransaction, PCONVINFO pConvInfo);
  272. BOOL WINAPI DdeSetUserHandle(HCONV hConv, DWORD id, DWORD hUser);
  273. BOOL WINAPI DdeAbandonTransaction(DWORD idInst, HCONV hConv, DWORD idTransaction);
  274.  
  275.  
  276. /*
  277.  * app server interface functions
  278.  */
  279.  
  280. BOOL WINAPI DdePostAdvise(DWORD idInst, HSZ hszTopic, HSZ hszItem);
  281. BOOL WINAPI DdeEnableCallback(DWORD idInst, HCONV hConv, UINT wCmd);
  282. BOOL WINAPI DdeImpersonateClient(HCONV hConv);
  283.  
  284. #define EC_ENABLEALL            0
  285. #define EC_ENABLEONE            ST_BLOCKNEXT
  286. #define EC_DISABLE              ST_BLOCKED
  287. #define EC_QUERYWAITING         2
  288.  
  289. HDDEDATA WINAPI DdeNameService(DWORD idInst, HSZ hsz1, HSZ hsz2, UINT afCmd);
  290.  
  291. #define DNS_REGISTER        0x0001
  292. #define DNS_UNREGISTER      0x0002
  293. #define DNS_FILTERON        0x0004
  294. #define DNS_FILTEROFF       0x0008
  295.  
  296. /*
  297.  * app client interface functions
  298.  */
  299.  
  300. HDDEDATA WINAPI DdeClientTransaction(LPBYTE pData, DWORD cbData,
  301.         HCONV hConv, HSZ hszItem, UINT wFmt, UINT wType,
  302.         DWORD dwTimeout, LPDWORD pdwResult);
  303.  
  304. /*
  305.  *data transfer functions
  306.  */
  307.  
  308. HDDEDATA WINAPI DdeCreateDataHandle(DWORD idInst, LPBYTE pSrc, DWORD cb,
  309.         DWORD cbOff, HSZ hszItem, UINT wFmt, UINT afCmd);
  310. HDDEDATA WINAPI DdeAddData(HDDEDATA hData, LPBYTE pSrc, DWORD cb, DWORD cbOff);
  311. DWORD WINAPI DdeGetData(HDDEDATA hData, LPBYTE pDst, DWORD cbMax, DWORD cbOff);
  312. LPBYTE WINAPI DdeAccessData(HDDEDATA hData, LPDWORD pcbDataSize);
  313. BOOL WINAPI DdeUnaccessData(HDDEDATA hData);
  314. BOOL WINAPI DdeFreeDataHandle(HDDEDATA hData);
  315.  
  316. #define     HDATA_APPOWNED          0x0001
  317.  
  318.  
  319. UINT WINAPI DdeGetLastError(DWORD idInst);
  320.  
  321. #define     DMLERR_NO_ERROR                    0       /* must be 0 */
  322.  
  323. #define     DMLERR_FIRST                       0x4000
  324.  
  325. #define     DMLERR_ADVACKTIMEOUT               0x4000
  326. #define     DMLERR_BUSY                        0x4001
  327. #define     DMLERR_DATAACKTIMEOUT              0x4002
  328. #define     DMLERR_DLL_NOT_INITIALIZED         0x4003
  329. #define     DMLERR_DLL_USAGE                   0x4004
  330. #define     DMLERR_EXECACKTIMEOUT              0x4005
  331. #define     DMLERR_INVALIDPARAMETER            0x4006
  332. #define     DMLERR_LOW_MEMORY                  0x4007
  333. #define     DMLERR_MEMORY_ERROR                0x4008
  334. #define     DMLERR_NOTPROCESSED                0x4009
  335. #define     DMLERR_NO_CONV_ESTABLISHED         0x400a
  336. #define     DMLERR_POKEACKTIMEOUT              0x400b
  337. #define     DMLERR_POSTMSG_FAILED              0x400c
  338. #define     DMLERR_REENTRANCY                  0x400d
  339. #define     DMLERR_SERVER_DIED                 0x400e
  340. #define     DMLERR_SYS_ERROR                   0x400f
  341. #define     DMLERR_UNADVACKTIMEOUT             0x4010
  342. #define     DMLERR_UNFOUND_QUEUE_ID            0x4011
  343.  
  344. #define     DMLERR_LAST                        0x4011
  345.  
  346. HSZ  WINAPI DdeCreateStringHandleA(DWORD idInst, LPCSTR psz, int iCodePage);
  347. HSZ  WINAPI DdeCreateStringHandleW(DWORD idInst, LPCWSTR psz, int iCodePage);
  348. #ifdef UNICODE
  349. #define DdeCreateStringHandle  DdeCreateStringHandleW
  350. #else
  351. #define DdeCreateStringHandle  DdeCreateStringHandleA
  352. #endif // !UNICODE
  353. DWORD WINAPI DdeQueryStringA(DWORD idInst, HSZ hsz, LPSTR psz, DWORD cchMax, int iCodePage);
  354. DWORD WINAPI DdeQueryStringW(DWORD idInst, HSZ hsz, LPWSTR psz, DWORD cchMax, int iCodePage);
  355. #ifdef UNICODE
  356. #define DdeQueryString  DdeQueryStringW
  357. #else
  358. #define DdeQueryString  DdeQueryStringA
  359. #endif // !UNICODE
  360. BOOL WINAPI DdeFreeStringHandle(DWORD idInst, HSZ hsz);
  361. BOOL WINAPI DdeKeepStringHandle(DWORD idInst, HSZ hsz);
  362. int WINAPI DdeCmpStringHandles(HSZ hsz1, HSZ hsz2);
  363.  
  364.  
  365. #ifndef NODDEMLSPY
  366. /*
  367.  * DDEML public debugging header file info
  368.  */
  369.  
  370. typedef struct tagDDEML_MSG_HOOK_DATA {    // new for NT
  371.     UINT uiLo;      // unpacked lo and hi parts of lParam
  372.     UINT uiHi;
  373.     DWORD cbData;   // amount of data in message, if any. May be > than 32 bytes.
  374.     DWORD Data[8];  // data peeking by DDESPY is limited to 32 bytes.
  375. } DDEML_MSG_HOOK_DATA, *PDDEML_MSG_HOOK_DATA;
  376.  
  377.  
  378. typedef struct tagMONMSGSTRUCT {
  379.     UINT    cb;
  380.     HWND    hwndTo;
  381.     DWORD   dwTime;
  382.     HANDLE  hTask;
  383.     UINT    wMsg;
  384.     WPARAM  wParam;
  385.     LPARAM  lParam;
  386.     DDEML_MSG_HOOK_DATA dmhd;       // new for NT
  387. } MONMSGSTRUCT, *PMONMSGSTRUCT;
  388.  
  389. typedef struct tagMONCBSTRUCT {
  390.     UINT   cb;
  391.     DWORD  dwTime;
  392.     HANDLE hTask;
  393.     DWORD  dwRet;
  394.     UINT   wType;
  395.     UINT   wFmt;
  396.     HCONV  hConv;
  397.     HSZ    hsz1;
  398.     HSZ    hsz2;
  399.     HDDEDATA hData;
  400.     DWORD  dwData1;
  401.     DWORD  dwData2;
  402.     CONVCONTEXT cc;                 // new for NT for XTYP_CONNECT callbacks
  403.     DWORD  cbData;                  // new for NT for data peeking
  404.     DWORD  Data[8];                 // new for NT for data peeking
  405. } MONCBSTRUCT, *PMONCBSTRUCT;
  406.  
  407. typedef struct tagMONHSZSTRUCTA {
  408.     UINT   cb;
  409.     BOOL   fsAction;    /* MH_ value */
  410.     DWORD  dwTime;
  411.     HSZ    hsz;
  412.     HANDLE hTask;
  413.     CHAR    str[1];
  414. } MONHSZSTRUCTA, *PMONHSZSTRUCTA;
  415. typedef struct tagMONHSZSTRUCTW {
  416.     UINT   cb;
  417.     BOOL   fsAction;    /* MH_ value */
  418.     DWORD  dwTime;
  419.     HSZ    hsz;
  420.     HANDLE hTask;
  421.     WCHAR   str[1];
  422. } MONHSZSTRUCTW, *PMONHSZSTRUCTW;
  423. #ifdef UNICODE
  424. typedef MONHSZSTRUCTW MONHSZSTRUCT;
  425. typedef PMONHSZSTRUCTW PMONHSZSTRUCT;
  426. #else
  427. typedef MONHSZSTRUCTA MONHSZSTRUCT;
  428. typedef PMONHSZSTRUCTA PMONHSZSTRUCT;
  429. #endif // UNICODE
  430.  
  431. #define MH_CREATE   1
  432. #define MH_KEEP     2
  433. #define MH_DELETE   3
  434. #define MH_CLEANUP  4
  435.  
  436. typedef struct tagMONERRSTRUCT {
  437.     UINT    cb;
  438.     UINT    wLastError;
  439.     DWORD   dwTime;
  440.     HANDLE  hTask;
  441. } MONERRSTRUCT, *PMONERRSTRUCT;
  442.  
  443. typedef struct tagMONLINKSTRUCT {
  444.     UINT    cb;
  445.     DWORD   dwTime;
  446.     HANDLE  hTask;
  447.     BOOL    fEstablished;
  448.     BOOL    fNoData;
  449.     HSZ     hszSvc;
  450.     HSZ     hszTopic;
  451.     HSZ     hszItem;
  452.     UINT    wFmt;
  453.     BOOL    fServer;
  454.     HCONV   hConvServer;
  455.     HCONV   hConvClient;
  456. } MONLINKSTRUCT, *PMONLINKSTRUCT;
  457.  
  458. typedef struct tagMONCONVSTRUCT {
  459.     UINT    cb;
  460.     BOOL    fConnect;
  461.     DWORD   dwTime;
  462.     HANDLE  hTask;
  463.     HSZ     hszSvc;
  464.     HSZ     hszTopic;
  465.     HCONV   hConvClient;        // Globally unique value != apps local hConv
  466.     HCONV   hConvServer;        // Globally unique value != apps local hConv
  467. } MONCONVSTRUCT, *PMONCONVSTRUCT;
  468.  
  469. #define     MAX_MONITORS            4
  470. #define     APPCLASS_MONITOR        0x00000001L
  471. #define     XTYP_MONITOR            (0x00F0 | XCLASS_NOTIFICATION | XTYPF_NOBLOCK)
  472.  
  473. /*
  474.  * Callback filter flags for use with MONITOR apps - 0 implies no monitor
  475.  * callbacks.
  476.  */
  477. #define     MF_HSZ_INFO                  0x01000000
  478. #define     MF_SENDMSGS                  0x02000000
  479. #define     MF_POSTMSGS                  0x04000000
  480. #define     MF_CALLBACKS                 0x08000000
  481. #define     MF_ERRORS                    0x10000000
  482. #define     MF_LINKS                     0x20000000
  483. #define     MF_CONV                      0x40000000
  484.  
  485. #define     MF_MASK                      0xFF000000
  486. #endif /* NODDEMLSPY */
  487.  
  488. #ifdef __cplusplus
  489. }
  490. #endif  /* __cplusplus */
  491.  
  492. #endif /* _INC_DDEMLH */
  493.  
  494.  
  495.