Platform SDK: Transaction Server |
IDispenserDriver::ResetResource
Prepares the resource to be put back into general or enlisted inventory.
HRESULT IDispenserDriver::ResetResource (
const RESID |
ResId); |
Parameters
ResId [in]
The resource to be reset.
Return Values
S_OK
Success.
E_INVALIDARG
ResId is not a valid resource handle.
E_FAIL
Failure. Resource ResId has not been reset.
Comments
Note that the resource may still be enlisted at this time, so ResetResource can’t disrupt the enlistment.
Example
ODBC Resource Dispenser calls SQLFreeStmt with SQL_DROP for the hstmts still allocated on the hdbc.