aboutsummaryrefslogtreecommitdiff
path: root/src/api/burn/balutil/inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/burn/balutil/inc')
-rw-r--r--src/api/burn/balutil/inc/BAFunctions.h1
-rw-r--r--src/api/burn/balutil/inc/BalBaseBAFunctions.h8
-rw-r--r--src/api/burn/balutil/inc/BalBaseBAFunctionsProc.h1
-rw-r--r--src/api/burn/balutil/inc/BalBaseBootstrapperApplication.h19
-rw-r--r--src/api/burn/balutil/inc/BalBaseBootstrapperApplicationProc.h12
-rw-r--r--src/api/burn/balutil/inc/IBootstrapperApplication.h6
6 files changed, 0 insertions, 47 deletions
diff --git a/src/api/burn/balutil/inc/BAFunctions.h b/src/api/burn/balutil/inc/BAFunctions.h
index 9be3f62f..c1057ab6 100644
--- a/src/api/burn/balutil/inc/BAFunctions.h
+++ b/src/api/burn/balutil/inc/BAFunctions.h
@@ -15,7 +15,6 @@ enum BA_FUNCTIONS_MESSAGE
15 BA_FUNCTIONS_MESSAGE_ONPLANCOMPLETE = BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANCOMPLETE, 15 BA_FUNCTIONS_MESSAGE_ONPLANCOMPLETE = BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANCOMPLETE,
16 BA_FUNCTIONS_MESSAGE_ONSTARTUP = BOOTSTRAPPER_APPLICATION_MESSAGE_ONSTARTUP, 16 BA_FUNCTIONS_MESSAGE_ONSTARTUP = BOOTSTRAPPER_APPLICATION_MESSAGE_ONSTARTUP,
17 BA_FUNCTIONS_MESSAGE_ONSHUTDOWN = BOOTSTRAPPER_APPLICATION_MESSAGE_ONSHUTDOWN, 17 BA_FUNCTIONS_MESSAGE_ONSHUTDOWN = BOOTSTRAPPER_APPLICATION_MESSAGE_ONSHUTDOWN,
18 BA_FUNCTIONS_MESSAGE_ONSYSTEMSHUTDOWN = BOOTSTRAPPER_APPLICATION_MESSAGE_ONSYSTEMSHUTDOWN,
19 BA_FUNCTIONS_MESSAGE_ONDETECTFORWARDCOMPATIBLEBUNDLE = BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTFORWARDCOMPATIBLEBUNDLE, 18 BA_FUNCTIONS_MESSAGE_ONDETECTFORWARDCOMPATIBLEBUNDLE = BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTFORWARDCOMPATIBLEBUNDLE,
20 BA_FUNCTIONS_MESSAGE_ONDETECTUPDATEBEGIN = BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTUPDATEBEGIN, 19 BA_FUNCTIONS_MESSAGE_ONDETECTUPDATEBEGIN = BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTUPDATEBEGIN,
21 BA_FUNCTIONS_MESSAGE_ONDETECTUPDATE = BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTUPDATE, 20 BA_FUNCTIONS_MESSAGE_ONDETECTUPDATE = BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTUPDATE,
diff --git a/src/api/burn/balutil/inc/BalBaseBAFunctions.h b/src/api/burn/balutil/inc/BalBaseBAFunctions.h
index 9ff58d2b..ca070553 100644
--- a/src/api/burn/balutil/inc/BalBaseBAFunctions.h
+++ b/src/api/burn/balutil/inc/BalBaseBAFunctions.h
@@ -98,14 +98,6 @@ public: // IBootstrapperApplication
98 return S_OK; 98 return S_OK;
99 } 99 }
100 100
101 virtual STDMETHODIMP OnSystemShutdown(
102 __in DWORD /*dwEndSession*/,
103 __inout BOOL* /*pfCancel*/
104 )
105 {
106 return S_OK;
107 }
108
109 virtual STDMETHODIMP OnDetectBegin( 101 virtual STDMETHODIMP OnDetectBegin(
110 __in BOOL /*fCached*/, 102 __in BOOL /*fCached*/,
111 __in BOOTSTRAPPER_REGISTRATION_TYPE /*registrationType*/, 103 __in BOOTSTRAPPER_REGISTRATION_TYPE /*registrationType*/,
diff --git a/src/api/burn/balutil/inc/BalBaseBAFunctionsProc.h b/src/api/burn/balutil/inc/BalBaseBAFunctionsProc.h
index 4564ad0c..ff92717d 100644
--- a/src/api/burn/balutil/inc/BalBaseBAFunctionsProc.h
+++ b/src/api/burn/balutil/inc/BalBaseBAFunctionsProc.h
@@ -86,7 +86,6 @@ static HRESULT WINAPI BalBaseBAFunctionsProc(
86 case BA_FUNCTIONS_MESSAGE_ONPLANCOMPLETE: 86 case BA_FUNCTIONS_MESSAGE_ONPLANCOMPLETE:
87 case BA_FUNCTIONS_MESSAGE_ONSTARTUP: 87 case BA_FUNCTIONS_MESSAGE_ONSTARTUP:
88 case BA_FUNCTIONS_MESSAGE_ONSHUTDOWN: 88 case BA_FUNCTIONS_MESSAGE_ONSHUTDOWN:
89 case BA_FUNCTIONS_MESSAGE_ONSYSTEMSHUTDOWN:
90 case BA_FUNCTIONS_MESSAGE_ONDETECTFORWARDCOMPATIBLEBUNDLE: 89 case BA_FUNCTIONS_MESSAGE_ONDETECTFORWARDCOMPATIBLEBUNDLE:
91 case BA_FUNCTIONS_MESSAGE_ONDETECTUPDATEBEGIN: 90 case BA_FUNCTIONS_MESSAGE_ONDETECTUPDATEBEGIN:
92 case BA_FUNCTIONS_MESSAGE_ONDETECTUPDATE: 91 case BA_FUNCTIONS_MESSAGE_ONDETECTUPDATE:
diff --git a/src/api/burn/balutil/inc/BalBaseBootstrapperApplication.h b/src/api/burn/balutil/inc/BalBaseBootstrapperApplication.h
index 2e848df7..fc9c4dd7 100644
--- a/src/api/burn/balutil/inc/BalBaseBootstrapperApplication.h
+++ b/src/api/burn/balutil/inc/BalBaseBootstrapperApplication.h
@@ -94,19 +94,6 @@ public: // IBootstrapperApplication
94 return S_OK; 94 return S_OK;
95 } 95 }
96 96
97 virtual STDMETHODIMP OnSystemShutdown(
98 __in DWORD dwEndSession,
99 __inout BOOL* pfCancel
100 )
101 {
102 HRESULT hr = S_OK;
103
104 // Allow requests to shut down when critical or not applying.
105 *pfCancel = !(ENDSESSION_CRITICAL & dwEndSession || !m_fApplying);
106
107 return hr;
108 }
109
110 virtual STDMETHODIMP OnDetectBegin( 97 virtual STDMETHODIMP OnDetectBegin(
111 __in BOOL /*fCached*/, 98 __in BOOL /*fCached*/,
112 __in BOOTSTRAPPER_REGISTRATION_TYPE /*registrationType*/, 99 __in BOOTSTRAPPER_REGISTRATION_TYPE /*registrationType*/,
@@ -406,8 +393,6 @@ public: // IBootstrapperApplication
406 __inout BOOL* pfCancel 393 __inout BOOL* pfCancel
407 ) 394 )
408 { 395 {
409 m_fApplying = TRUE;
410
411 m_dwProgressPercentage = 0; 396 m_dwProgressPercentage = 0;
412 m_dwOverallProgressPercentage = 0; 397 m_dwOverallProgressPercentage = 0;
413 398
@@ -859,8 +844,6 @@ public: // IBootstrapperApplication
859 *pAction = BOOTSTRAPPER_APPLYCOMPLETE_ACTION_RESTART; 844 *pAction = BOOTSTRAPPER_APPLYCOMPLETE_ACTION_RESTART;
860 } 845 }
861 846
862 m_fApplying = FALSE;
863
864 return hr; 847 return hr;
865 } 848 }
866 849
@@ -1183,7 +1166,6 @@ protected:
1183 ::InitializeCriticalSection(&m_csCanceled); 1166 ::InitializeCriticalSection(&m_csCanceled);
1184 m_fCanceled = FALSE; 1167 m_fCanceled = FALSE;
1185 m_BalInfoCommand = { }; 1168 m_BalInfoCommand = { };
1186 m_fApplying = FALSE;
1187 m_fRollingBack = FALSE; 1169 m_fRollingBack = FALSE;
1188 1170
1189 m_dwProgressPercentage = 0; 1171 m_dwProgressPercentage = 0;
@@ -1212,7 +1194,6 @@ private:
1212 BOOTSTRAPPER_DISPLAY m_display; 1194 BOOTSTRAPPER_DISPLAY m_display;
1213 IBootstrapperEngine* m_pEngine; 1195 IBootstrapperEngine* m_pEngine;
1214 1196
1215 BOOL m_fApplying;
1216 BOOL m_fRollingBack; 1197 BOOL m_fRollingBack;
1217 1198
1218 DWORD m_dwProgressPercentage; 1199 DWORD m_dwProgressPercentage;
diff --git a/src/api/burn/balutil/inc/BalBaseBootstrapperApplicationProc.h b/src/api/burn/balutil/inc/BalBaseBootstrapperApplicationProc.h
index e35678ad..92243540 100644
--- a/src/api/burn/balutil/inc/BalBaseBootstrapperApplicationProc.h
+++ b/src/api/burn/balutil/inc/BalBaseBootstrapperApplicationProc.h
@@ -63,15 +63,6 @@ static HRESULT BalBaseBAProcOnShutdown(
63 return pBA->OnShutdown(&pResults->action); 63 return pBA->OnShutdown(&pResults->action);
64} 64}
65 65
66static HRESULT BalBaseBAProcOnSystemShutdown(
67 __in IBootstrapperApplication* pBA,
68 __in BA_ONSYSTEMSHUTDOWN_ARGS* pArgs,
69 __inout BA_ONSYSTEMSHUTDOWN_RESULTS* pResults
70 )
71{
72 return pBA->OnSystemShutdown(pArgs->dwEndSession, &pResults->fCancel);
73}
74
75static HRESULT BalBaseBAProcOnDetectForwardCompatibleBundle( 66static HRESULT BalBaseBAProcOnDetectForwardCompatibleBundle(
76 __in IBootstrapperApplication* pBA, 67 __in IBootstrapperApplication* pBA,
77 __in BA_ONDETECTFORWARDCOMPATIBLEBUNDLE_ARGS* pArgs, 68 __in BA_ONDETECTFORWARDCOMPATIBLEBUNDLE_ARGS* pArgs,
@@ -803,9 +794,6 @@ static HRESULT WINAPI BalBaseBootstrapperApplicationProc(
803 case BOOTSTRAPPER_APPLICATION_MESSAGE_ONSHUTDOWN: 794 case BOOTSTRAPPER_APPLICATION_MESSAGE_ONSHUTDOWN:
804 hr = BalBaseBAProcOnShutdown(pBA, reinterpret_cast<BA_ONSHUTDOWN_ARGS*>(pvArgs), reinterpret_cast<BA_ONSHUTDOWN_RESULTS*>(pvResults)); 795 hr = BalBaseBAProcOnShutdown(pBA, reinterpret_cast<BA_ONSHUTDOWN_ARGS*>(pvArgs), reinterpret_cast<BA_ONSHUTDOWN_RESULTS*>(pvResults));
805 break; 796 break;
806 case BOOTSTRAPPER_APPLICATION_MESSAGE_ONSYSTEMSHUTDOWN:
807 hr = BalBaseBAProcOnSystemShutdown(pBA, reinterpret_cast<BA_ONSYSTEMSHUTDOWN_ARGS*>(pvArgs), reinterpret_cast<BA_ONSYSTEMSHUTDOWN_RESULTS*>(pvResults));
808 break;
809 case BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTFORWARDCOMPATIBLEBUNDLE: 797 case BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTFORWARDCOMPATIBLEBUNDLE:
810 hr = BalBaseBAProcOnDetectForwardCompatibleBundle(pBA, reinterpret_cast<BA_ONDETECTFORWARDCOMPATIBLEBUNDLE_ARGS*>(pvArgs), reinterpret_cast<BA_ONDETECTFORWARDCOMPATIBLEBUNDLE_RESULTS*>(pvResults)); 798 hr = BalBaseBAProcOnDetectForwardCompatibleBundle(pBA, reinterpret_cast<BA_ONDETECTFORWARDCOMPATIBLEBUNDLE_ARGS*>(pvArgs), reinterpret_cast<BA_ONDETECTFORWARDCOMPATIBLEBUNDLE_RESULTS*>(pvResults));
811 break; 799 break;
diff --git a/src/api/burn/balutil/inc/IBootstrapperApplication.h b/src/api/burn/balutil/inc/IBootstrapperApplication.h
index 6eca90fa..382d5aad 100644
--- a/src/api/burn/balutil/inc/IBootstrapperApplication.h
+++ b/src/api/burn/balutil/inc/IBootstrapperApplication.h
@@ -33,12 +33,6 @@ DECLARE_INTERFACE_IID_(IBootstrapperApplication, IUnknown, "53C31D56-49C0-426B-A
33 __inout BOOTSTRAPPER_SHUTDOWN_ACTION* pAction 33 __inout BOOTSTRAPPER_SHUTDOWN_ACTION* pAction
34 ) = 0; 34 ) = 0;
35 35
36 // OnSystemShutdown - called when the operating system is instructed to shutdown the machine.
37 STDMETHOD(OnSystemShutdown)(
38 __in DWORD dwEndSession,
39 __inout BOOL* pfCancel
40 ) = 0;
41
42 // OnDetectBegin - called when the engine begins detection. 36 // OnDetectBegin - called when the engine begins detection.
43 STDMETHOD(OnDetectBegin)( 37 STDMETHOD(OnDetectBegin)(
44 __in BOOL fCached, 38 __in BOOL fCached,