DdeDisconnect

  BOOL DdeDisconnect(hConv)    
  HCONV hConv; /* handle of conversation */

The DdeDisconnect function terminates a conversation started by either the DdeConnect or DdeConnectList function and invalidates the given conversation handle.

Parameters

hConv

Identifies the active conversation to be terminated.

Return Value

The return value is nonzero if the function is successful. Otherwise, it is zero.

Errors

Use the DdeGetLastError function to retrieve the error value, which may be one of the following:

DMLERR_DLL_NOT_INITIALIZED
DMLERR_NO_CONV_ESTABLISHED
DMLERR_NO_ERROR

Comments

Any incomplete transactions started before calling DdeDisconnect are immediately abandoned. The XTYP_DISCONNECT transaction type is sent to the dynamic data exchange (DDE) callback function of the partner in the conversation. Generally, only client applications need to terminate conversations.

See Also

DdeConnect, DdeConnectList, DdeDisconnectList