IDispenserDriver::EnlistResource

Holder asks resource dispenser to enlist a resource in a transaction.

HRESULT IDispenserDriver::EnlistResource (
const RESID
ResId,
const TRANSID
TransId);

Parameters

ResId [in]
The resource that DispMan is asking to be enlisted in transaction TransId.

TransId [in]
The transaction that DispMan wants the resource dispenser to enlist resource ResId in. DispMan will pass 0 to indicate that the resource dispenser should ensure that the resource is not enlisted in any transaction.

Return Values

S_OK
Successfully enlisted.

S_FALSE
The resource is not enlistable (not transaction capable).

E_INVALIDARG
ResId or TransId is not a valid handle.

E_FAIL
Failure. Enlistment failed.