IDispenserDriver::EnlistResource method (comsvcs.h)
Enlists a resource in a transaction.
Syntax
HRESULT EnlistResource(
[in] const RESID ResId,
[in] const TRANSID TransId
);
Parameters
[in] ResId
The resource that the Dispenser Manager is asking to be enlisted in transaction TransId.
[in] TransId
The transaction that the Dispenser Manager wants the Resource Dispenser to enlist resource ResId in. The Dispenser Manager passes 0 to indicate that the Resource Dispenser should ensure that the resource is not enlisted in any transaction.
Return value
This method can return the following values.
Return code | Description |
---|---|
|
The method completed successfully. |
|
The resource is not enlistable (not transaction capable). |
|
One of the arguments is not valid. |
|
The method failed. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | comsvcs.h |