The DdeAbandonTransaction function abandons the specified asynchronous transaction and releases all resources associated with the transaction.
BOOL DdeAbandonTransaction(
DWORD idInst, |
// instance identifier |
HCONV hConv, |
// handle to conversation |
DWORD idTransaction |
// transaction identifier |
); |
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 may be one of the following values:
DMLERR_DLL_NOT_INITIALIZED
DMLERR_INVALIDPARAMETER
DMLERR_NO_ERROR
DMLERR_UNFOUND_QUEUE_ID
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.