XTYP_MONITOR

3.1

#include <ddeml.h>

XTYP_MONITOR
hDataEvent = hData;     /* handle of event data */
fwEvent = dwData2;      /* event flag           */

The DDE callback function of a DDE debugging application receives this transaction whenever a DDE event occurs in the system. An application can receive this transaction only if it specified the APPCLASS_MONITOR flag when it called the DdeInitialize function.

Parameters

hDataEvent

Value of hData. Identifies a global memory object that contains information about the DDE event. The application should use the DdeAccessData function to obtain a pointer to the object.

fwEvent

Value of dwData2. Specifies the DDE event. This parameter may be one of the following values:

Value Meaning

MF_CALLBACKS The system sent a transaction to a DDE callback function. The global memory object contains a MONCBSTRUCT structure that provides information about the transaction.
MF_CONV A DDE conversation was established or terminated. The global memory object contains a MONCONVSTRUCT structure that provides information about the conversation.
MF_ERRORS A DDE error occurred. The global memory object contains a MONERRSTRUCT structure that provides information about the error.
MF_HSZ_INFO A DDE application created or freed a string handle or incremented the use count of a string handle, or a string handle was freed as a result of a call to the DdeUninitialize function. The global memory object contains a MONHSZSTRUCT structure that provides infor-mation about the string handle.
MF_LINKS A DDE application started or ended an advise loop. The global memory object contains a MONLINKSTRUCT structure that provides information about the advise loop.
MF_POSTMSGS The system or an application posted a DDE message. The global memory object contains a MONMSGSTRUCT structure that provides information about the message.
MF_SENDMSGS The system or an application sent a DDE message. The global memory object contains a MONMSGSTRUCT structure that provides information about the message.

Return Value

The callback function should return zero if it processes this transaction.

See Also

DdeAccessData, DdeInitialize