Abandons the specified asynchronous transaction and releases all resources associated with the transaction.
BOOL DdeAbandonTransaction( DWORD idInst, HCONV hConv, DWORD idTransaction );
The application instance identifier obtained by a previous call to the DdeInitialize function.
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).
The identifier of the transaction to be abandoned. If this parameter is 0L, all active transactions in the specified conversation are abandoned.
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:
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.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||ddeml.h (include Windows.h)|