Platform SDK: Interprocess Communications

XTYP_ERROR

A DDE callback function, DdeCallback, receives the XTYP_ERROR transaction when a critical error occurs.

HDDEDATA CALLBACK DdeCallback(
  UINT uType,     // XTYP_ERROR
  UINT uFmt,      // clipboard data format
  HCONV hconv,    // handle to the conversation
  HSZ hsz1,       // handle to a string
  HSZ hsz2,       // handle to a string
  HDDEDATA hdata, // handle to a global memory object
  DWORD dwData1,  // transaction-specific data
  DWORD dwData2   // transaction-specific data
);

Parameters

uType
Specifies the transaction type.
uFmt
Not used.
hconv
Handle to the conversation associated with the error. This parameter is NULL if the error is not associated with a conversation.
hsz1
Not used.
hsz2
Not used.
hdata
Not used.
dwData1
Specifies the error code in the low-order word. Currently, only the following error code is supported:
Error Code Description
DMLERR_LOW_MEMORY Memory is low; advise, poke, or execute data may be lost, or the system may fail.

dwData2
Not used.

Remarks

An application cannot block this transaction type; the CBR_BLOCK return code is ignored. The DDEML attempts to free memory by removing noncritical resources. An application that has blocked conversations should unblock them.

Requirements

  Windows NT/2000: Requires Windows NT 3.1 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Ddeml.h; include Windows.h.

See Also

Dynamic Data Exchange Management Library Overview, Dynamic Data Exchange Management Transactions