#include <dde.h>
WM_DDE_TERMINATE
wParam = (WPARAM) hwnd; /* handle of posting window */
lParam = 0L; /* not used, must be zero */
A dynamic data exchange (DDE) application (client or server) posts a WM_DDE_TERMINATE message to terminate a conversation.
hwnd
Value of wParam. Identifies the sending window.
This message does not return a value.
Posting
The application posts the WM_DDE_TERMINATE message by calling the PostMessage function, not the SendMessage function.
While waiting for confirmation of the termination, the posting application should not acknowledge any other messages sent by the receiving application. If the posting application receives messages (other than WM_DDE_TERMINATE) from the receiving application, it should delete any atoms or shared memory objects accompanying the messages.
Receiving
The application responds by posting a WM_DDE_TERMINATE message.