Platform SDK: Interprocess Communications

WM_DDE_TERMINATE

A DDE application (client or server) posts a WM_DDE_TERMINATE message to terminate a conversation.

To post this message, call the PostMessage function with the following parameters.

PostMessage( 
  (HWND) hWnd,            // handle to destination window 
  WM_DDE_TERMINATE,       // message to send
  (WPARAM) wParam,        // handle to posting window (HWND)
  (LPARAM) lParam         // not used; must be zero
);

Parameters

wParam
Handle to the client or server window posting the message.
lParam
This parameter is not used.

Remarks

Posting

While waiting for confirmation of the termination, the posting application should not post any other messages to the receiving application. If the sending application receives messages (other than WM_DDE_TERMINATE) from the receiving application, it should delete any atoms or shared memory objects accompanying the messages, except global memory objects associated with WM_DDE_POKE or WM_DDE_DATA messages that do not have the fRelease member set.

Receiving

The client or server application should respond by posting a WM_DDE_TERMINATE message.

Requirements

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

See Also

Dynamic Data Exchange Overview, Dynamic Data Exchange Messages, PostMessage, SendMessage, WM_DDE_DATA, WM_DDE_POKE