Personal Communications Response

Personal Communications receives the Start Close Intercept and returns an ACK message if it can start the intercept. Otherwise a negative ACK message is returned to the client with one of the following return codes in the low-order byte of the wStatus field:
WM_DDE_ACK(wStatus, aCLOSE)
Return Code Explanation
1 Close Intercept is already working.
6 The specified format is not valid.
9 A system error occurred.
Once the intercept starts, the client receives DATA messages notifying it that the close request is intercepted:
WM_DDE_DATA(hData, aCLOSE)
where:
hData Identifies a handle to a Windows global memory object containing:
typedef struct tagCLOSEREQ
}
 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
 WORD       uCloseReqCount;  // Counter of the Close Requests
} CLOSEREQ, FAR *lpCLOSEREQ;

The DATA messages continue until a Stop Close Intercept message is sent to Personal Communications.