Personal Communications Response

Personal Communications returns the handle of the newly created menu item in a dde data message if the Personal Communications can create a menu item.
WM_DDE_DATA(hData, aCREATEMENU)
or
WM_DDE_ACK(wStatus, aCREATEMENU)
where:
hData
Identifies a handle to a windows global memory object that contains the handle of the menu item. The global memory object contains the following structure:
typedef struct tagcreatemenu
}
 unsigned   unused:12,       // *** unused ***
 unsigned   fresponse:1,     // true = dd_request response
 unsigned   frelease:1,      // true = client releases memory
 unsigned   reserved:1,      // *** reserved ***
 unsigned   fackreq:1,       // true = dde_ack is required
 int      cfformat;          // always cf_dsptext
 handle   hmemuitem;         // handle of the menu item
} CREATEMENU, FAR *lpCREATEMENU;

If Personal Communications cannot create a menu item, one of the following status codes are returned in the low-order byte of the wStatus word:

Return Code Explanation
6 The specified format is not valid.
9 A system error occurred.