HRESULT ITransactionEnlistmentAsync::AbortRequestDone(HRESULT hr);
Le résultat est S_OK en cas de succès.
#include <transact.h>
#include <txdtc.h>
#include <xolehlp.h>
static ITransactionEnlistmentAsync *pITransactionEnlistmentAsync;
static XACTUOW Uow;
...
if (pITransactionEnlistmentAsync->PrepareRequestDone(S_OK, NULL, NULL)!=S_OK)
{
...
}
...
if (pITransactionEnlistmentAsync->CommitRequestDone(S_OK)!=S_OK)
{
...
}
...
if (pITransactionEnlistmentAsync->AbortRequestDone(S_OK)!=S_OK)
{
...
}
...