summaryrefslogtreecommitdiff
path: root/src/burn/engine/userexperience.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/burn/engine/userexperience.cpp')
-rw-r--r--src/burn/engine/userexperience.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/burn/engine/userexperience.cpp b/src/burn/engine/userexperience.cpp
index 8668cf6f..81ce8bb9 100644
--- a/src/burn/engine/userexperience.cpp
+++ b/src/burn/engine/userexperience.cpp
@@ -335,6 +335,30 @@ LExit:
335 return hr; 335 return hr;
336} 336}
337 337
338EXTERN_C BAAPI UserExperienceOnApplyDowngrade(
339 __in BURN_USER_EXPERIENCE* pUserExperience,
340 __inout HRESULT* phrStatus
341 )
342{
343 HRESULT hr = S_OK;
344 BA_ONAPPLYDOWNGRADE_ARGS args = { };
345 BA_ONAPPLYDOWNGRADE_RESULTS results = { };
346
347 args.cbSize = sizeof(args);
348 args.hrRecommended = *phrStatus;
349
350 results.cbSize = sizeof(results);
351 results.hrStatus = *phrStatus;
352
353 hr = SendBAMessage(pUserExperience, BOOTSTRAPPER_APPLICATION_MESSAGE_ONAPPLYDOWNGRADE, &args, &results);
354 ExitOnFailure(hr, "BA OnApplyDowngrade failed.");
355
356 *phrStatus = results.hrStatus;
357
358LExit:
359 return hr;
360}
361
338EXTERN_C BAAPI UserExperienceOnBeginMsiTransactionBegin( 362EXTERN_C BAAPI UserExperienceOnBeginMsiTransactionBegin(
339 __in BURN_USER_EXPERIENCE* pUserExperience, 363 __in BURN_USER_EXPERIENCE* pUserExperience,
340 __in LPCWSTR wzTransactionId 364 __in LPCWSTR wzTransactionId