DdeAbandonTransaction function

Abandons the specified asynchronous transaction and releases all resources associated with the transaction.

Syntax

BOOL DdeAbandonTransaction(
  DWORD idInst,
  HCONV hConv,
  DWORD idTransaction
);

Parameters

idInst

Type: DWORD

The application instance identifier obtained by a previous call to the DdeInitialize function.

hConv

Type: HCONV

A handle to the conversation in which the transaction was initiated. If this parameter is 0L, all transactions are abandoned (that is, the idTransaction parameter is ignored).

idTransaction

Type: DWORD

The identifier of the transaction to be abandoned. If this parameter is 0L, all active transactions in the specified conversation are abandoned.

Return value

Type: BOOL

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

The DdeGetLastError function can be used to get the error code, which can be one of the following values:

Remarks

Only a Dynamic Data Exchange (DDE) client application should call DdeAbandonTransaction. If the server application responds to the transaction after the client has called DdeAbandonTransaction, the system discards the transaction results. This function has no effect on synchronous transactions.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header ddeml.h (include Windows.h)
Library User32.lib
DLL User32.dll

See also

Conceptual

DdeClientTransaction

DdeInitialize

DdeQueryConvInfo

Dynamic Data Exchange Management Library

Reference