aboutsummaryrefslogtreecommitdiff
path: root/src/engine/userexperience.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/userexperience.cpp')
-rw-r--r--src/engine/userexperience.cpp80
1 files changed, 80 insertions, 0 deletions
diff --git a/src/engine/userexperience.cpp b/src/engine/userexperience.cpp
index 08451f93..b5bdc623 100644
--- a/src/engine/userexperience.cpp
+++ b/src/engine/userexperience.cpp
@@ -1482,6 +1482,46 @@ LExit:
1482 return hr; 1482 return hr;
1483} 1483}
1484 1484
1485EXTERN_C BAAPI UserExperienceOnPauseAUBegin(
1486 __in BURN_USER_EXPERIENCE* pUserExperience
1487 )
1488{
1489 HRESULT hr = S_OK;
1490 BA_ONPAUSEAUTOMATICUPDATESBEGIN_ARGS args = { };
1491 BA_ONPAUSEAUTOMATICUPDATESBEGIN_RESULTS results = { };
1492
1493 args.cbSize = sizeof(args);
1494
1495 results.cbSize = sizeof(results);
1496
1497 hr = pUserExperience->pfnBAProc(BOOTSTRAPPER_APPLICATION_MESSAGE_ONPAUSEAUTOMATICUPDATESBEGIN, &args, &results, pUserExperience->pvBAProcContext);
1498 ExitOnFailure(hr, "BA OnPauseAUBegin failed.");
1499
1500LExit:
1501 return hr;
1502}
1503
1504EXTERN_C BAAPI UserExperienceOnPauseAUComplete(
1505 __in BURN_USER_EXPERIENCE* pUserExperience,
1506 __in HRESULT hrStatus
1507 )
1508{
1509 HRESULT hr = S_OK;
1510 BA_ONPAUSEAUTOMATICUPDATESCOMPLETE_ARGS args = { };
1511 BA_ONPAUSEAUTOMATICUPDATESCOMPLETE_RESULTS results = { };
1512
1513 args.cbSize = sizeof(args);
1514 args.hrStatus = hrStatus;
1515
1516 results.cbSize = sizeof(results);
1517
1518 hr = pUserExperience->pfnBAProc(BOOTSTRAPPER_APPLICATION_MESSAGE_ONPAUSEAUTOMATICUPDATESCOMPLETE, &args, &results, pUserExperience->pvBAProcContext);
1519 ExitOnFailure(hr, "BA OnPauseAUComplete failed.");
1520
1521LExit:
1522 return hr;
1523}
1524
1485EXTERN_C BAAPI UserExperienceOnPlanBegin( 1525EXTERN_C BAAPI UserExperienceOnPlanBegin(
1486 __in BURN_USER_EXPERIENCE* pUserExperience, 1526 __in BURN_USER_EXPERIENCE* pUserExperience,
1487 __in DWORD cPackages 1527 __in DWORD cPackages
@@ -1983,6 +2023,46 @@ LExit:
1983 return hr; 2023 return hr;
1984} 2024}
1985 2025
2026EXTERN_C BAAPI UserExperienceOnSystemRestorePointBegin(
2027 __in BURN_USER_EXPERIENCE* pUserExperience
2028 )
2029{
2030 HRESULT hr = S_OK;
2031 BA_ONSYSTEMRESTOREPOINTBEGIN_ARGS args = { };
2032 BA_ONSYSTEMRESTOREPOINTBEGIN_RESULTS results = { };
2033
2034 args.cbSize = sizeof(args);
2035
2036 results.cbSize = sizeof(results);
2037
2038 hr = pUserExperience->pfnBAProc(BOOTSTRAPPER_APPLICATION_MESSAGE_ONSYSTEMRESTOREPOINTBEGIN, &args, &results, pUserExperience->pvBAProcContext);
2039 ExitOnFailure(hr, "BA OnSystemRestorePointBegin failed.");
2040
2041LExit:
2042 return hr;
2043}
2044
2045EXTERN_C BAAPI UserExperienceOnSystemRestorePointComplete(
2046 __in BURN_USER_EXPERIENCE* pUserExperience,
2047 __in HRESULT hrStatus
2048 )
2049{
2050 HRESULT hr = S_OK;
2051 BA_ONSYSTEMRESTOREPOINTCOMPLETE_ARGS args = { };
2052 BA_ONSYSTEMRESTOREPOINTCOMPLETE_RESULTS results = { };
2053
2054 args.cbSize = sizeof(args);
2055 args.hrStatus = hrStatus;
2056
2057 results.cbSize = sizeof(results);
2058
2059 hr = pUserExperience->pfnBAProc(BOOTSTRAPPER_APPLICATION_MESSAGE_ONSYSTEMRESTOREPOINTCOMPLETE, &args, &results, pUserExperience->pvBAProcContext);
2060 ExitOnFailure(hr, "BA OnSystemRestorePointComplete failed.");
2061
2062LExit:
2063 return hr;
2064}
2065
1986EXTERN_C BAAPI UserExperienceOnSystemShutdown( 2066EXTERN_C BAAPI UserExperienceOnSystemShutdown(
1987 __in BURN_USER_EXPERIENCE* pUserExperience, 2067 __in BURN_USER_EXPERIENCE* pUserExperience,
1988 __in DWORD dwEndSession, 2068 __in DWORD dwEndSession,