IProvHelper::GetRollbackData
Retrieves rollback data from a transaction log. Used by providers that interact with Microsoft. Provisioning Framework (MPF).
Syntax
C++ HRESULT GetRollbackData ( BSTR bstrKey, VARIANT *pvValue );Visual Basic Function GetRollbackData ( _ bstrKey As String _ ) As VariantParameters
- bstrKey
- Key name.
- pvValue (C++) / return value (VB)
- Returned value.
Return Codes
Zero indicates success; a non-zero value represents an error. For a list of error codes, see MPF Errors.
C++ Example
BSTR bstrKey; VARIANT vValue; HRESULT hr = E_OUTOFMEMORY; bstrKey = ::SysAllocString(L"fileName"); ::VariantInit(&vValue); if(bstrKey) hr = m_pProvHelper->GetRollbackData(bstrKey, &vValue); ::SysFreeString(bstrKey); ::VariantClear(vValue);Visual Basic Example
Dim strKey Dim vValue strKey = "fileName" vValue = mProvHelper.GetRollbackData(strKey)See Also
Top of Page
) 1999-2002 Microsoft Corporation. All rights reserved.