diff options
Diffstat (limited to 'src/api/burn/balutil/BalBaseBAFunctionsProc.cpp')
-rw-r--r-- | src/api/burn/balutil/BalBaseBAFunctionsProc.cpp | 1099 |
1 files changed, 1099 insertions, 0 deletions
diff --git a/src/api/burn/balutil/BalBaseBAFunctionsProc.cpp b/src/api/burn/balutil/BalBaseBAFunctionsProc.cpp new file mode 100644 index 00000000..38ebf65c --- /dev/null +++ b/src/api/burn/balutil/BalBaseBAFunctionsProc.cpp | |||
@@ -0,0 +1,1099 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | |||
3 | #include "precomp.h" | ||
4 | |||
5 | static HRESULT BalBaseBAFunctionsProcOnDestroy( | ||
6 | __in IBAFunctions* pBAFunctions, | ||
7 | __in BA_ONDESTROY_ARGS* pArgs, | ||
8 | __inout BA_ONDESTROY_RESULTS* /*pResults*/ | ||
9 | ) | ||
10 | { | ||
11 | return pBAFunctions->OnDestroy(pArgs->fReload); | ||
12 | } | ||
13 | |||
14 | static HRESULT BalBaseBAFunctionsProcOnDetectBegin( | ||
15 | __in IBAFunctions* pBAFunctions, | ||
16 | __in BA_ONDETECTBEGIN_ARGS* pArgs, | ||
17 | __inout BA_ONDETECTBEGIN_RESULTS* pResults | ||
18 | ) | ||
19 | { | ||
20 | return pBAFunctions->OnDetectBegin(pArgs->fCached, pArgs->registrationType, pArgs->cPackages, &pResults->fCancel); | ||
21 | } | ||
22 | |||
23 | static HRESULT BalBaseBAFunctionsProcOnDetectComplete( | ||
24 | __in IBAFunctions* pBAFunctions, | ||
25 | __in BA_ONDETECTCOMPLETE_ARGS* pArgs, | ||
26 | __inout BA_ONDETECTCOMPLETE_RESULTS* /*pResults*/ | ||
27 | ) | ||
28 | { | ||
29 | return pBAFunctions->OnDetectComplete(pArgs->hrStatus, pArgs->fEligibleForCleanup); | ||
30 | } | ||
31 | |||
32 | static HRESULT BalBaseBAFunctionsProcOnPlanBegin( | ||
33 | __in IBAFunctions* pBAFunctions, | ||
34 | __in BA_ONPLANBEGIN_ARGS* pArgs, | ||
35 | __inout BA_ONPLANBEGIN_RESULTS* pResults | ||
36 | ) | ||
37 | { | ||
38 | return pBAFunctions->OnPlanBegin(pArgs->cPackages, &pResults->fCancel); | ||
39 | } | ||
40 | |||
41 | static HRESULT BalBaseBAFunctionsProcOnPlanComplete( | ||
42 | __in IBAFunctions* pBAFunctions, | ||
43 | __in BA_ONPLANCOMPLETE_ARGS* pArgs, | ||
44 | __inout BA_ONPLANCOMPLETE_RESULTS* /*pResults*/ | ||
45 | ) | ||
46 | { | ||
47 | return pBAFunctions->OnPlanComplete(pArgs->hrStatus); | ||
48 | } | ||
49 | |||
50 | static HRESULT BalBaseBAFunctionsProcOnStartup( | ||
51 | __in IBAFunctions* pBAFunctions, | ||
52 | __in BA_ONSTARTUP_ARGS* /*pArgs*/, | ||
53 | __inout BA_ONSTARTUP_RESULTS* /*pResults*/ | ||
54 | ) | ||
55 | { | ||
56 | return pBAFunctions->OnStartup(); | ||
57 | } | ||
58 | |||
59 | static HRESULT BalBaseBAFunctionsProcOnShutdown( | ||
60 | __in IBAFunctions* pBAFunctions, | ||
61 | __in BA_ONSHUTDOWN_ARGS* /*pArgs*/, | ||
62 | __inout BA_ONSHUTDOWN_RESULTS* pResults | ||
63 | ) | ||
64 | { | ||
65 | return pBAFunctions->OnShutdown(&pResults->action); | ||
66 | } | ||
67 | |||
68 | static HRESULT BalBaseBAFunctionsProcOnDetectForwardCompatibleBundle( | ||
69 | __in IBAFunctions* pBAFunctions, | ||
70 | __in BA_ONDETECTFORWARDCOMPATIBLEBUNDLE_ARGS* pArgs, | ||
71 | __inout BA_ONDETECTFORWARDCOMPATIBLEBUNDLE_RESULTS* pResults | ||
72 | ) | ||
73 | { | ||
74 | return pBAFunctions->OnDetectForwardCompatibleBundle(pArgs->wzBundleId, pArgs->relationType, pArgs->wzBundleTag, pArgs->fPerMachine, pArgs->wzVersion, pArgs->fMissingFromCache, &pResults->fCancel); | ||
75 | } | ||
76 | |||
77 | static HRESULT BalBaseBAFunctionsProcOnDetectUpdateBegin( | ||
78 | __in IBAFunctions* pBAFunctions, | ||
79 | __in BA_ONDETECTUPDATEBEGIN_ARGS* pArgs, | ||
80 | __inout BA_ONDETECTUPDATEBEGIN_RESULTS* pResults | ||
81 | ) | ||
82 | { | ||
83 | return pBAFunctions->OnDetectUpdateBegin(pArgs->wzUpdateLocation, &pResults->fCancel, &pResults->fSkip); | ||
84 | } | ||
85 | |||
86 | static HRESULT BalBaseBAFunctionsProcOnDetectUpdate( | ||
87 | __in IBAFunctions* pBAFunctions, | ||
88 | __in BA_ONDETECTUPDATE_ARGS* pArgs, | ||
89 | __inout BA_ONDETECTUPDATE_RESULTS* pResults | ||
90 | ) | ||
91 | { | ||
92 | return pBAFunctions->OnDetectUpdate(pArgs->wzUpdateLocation, pArgs->dw64Size, pArgs->wzHash, pArgs->hashAlgorithm, pArgs->wzVersion, pArgs->wzTitle, pArgs->wzSummary, pArgs->wzContentType, pArgs->wzContent, &pResults->fCancel, &pResults->fStopProcessingUpdates); | ||
93 | } | ||
94 | |||
95 | static HRESULT BalBaseBAFunctionsProcOnDetectUpdateComplete( | ||
96 | __in IBAFunctions* pBAFunctions, | ||
97 | __in BA_ONDETECTUPDATECOMPLETE_ARGS* pArgs, | ||
98 | __inout BA_ONDETECTUPDATECOMPLETE_RESULTS* pResults | ||
99 | ) | ||
100 | { | ||
101 | return pBAFunctions->OnDetectUpdateComplete(pArgs->hrStatus, &pResults->fIgnoreError); | ||
102 | } | ||
103 | |||
104 | static HRESULT BalBaseBAFunctionsProcOnDetectRelatedBundle( | ||
105 | __in IBAFunctions* pBAFunctions, | ||
106 | __in BA_ONDETECTRELATEDBUNDLE_ARGS* pArgs, | ||
107 | __inout BA_ONDETECTRELATEDBUNDLE_RESULTS* pResults | ||
108 | ) | ||
109 | { | ||
110 | return pBAFunctions->OnDetectRelatedBundle(pArgs->wzBundleId, pArgs->relationType, pArgs->wzBundleTag, pArgs->fPerMachine, pArgs->wzVersion, pArgs->fMissingFromCache, &pResults->fCancel); | ||
111 | } | ||
112 | |||
113 | static HRESULT BalBaseBAFunctionsProcOnDetectPackageBegin( | ||
114 | __in IBAFunctions* pBAFunctions, | ||
115 | __in BA_ONDETECTPACKAGEBEGIN_ARGS* pArgs, | ||
116 | __inout BA_ONDETECTPACKAGEBEGIN_RESULTS* pResults | ||
117 | ) | ||
118 | { | ||
119 | return pBAFunctions->OnDetectPackageBegin(pArgs->wzPackageId, &pResults->fCancel); | ||
120 | } | ||
121 | |||
122 | static HRESULT BalBaseBAFunctionsProcOnDetectCompatiblePackage( | ||
123 | __in IBAFunctions* pBAFunctions, | ||
124 | __in BA_ONDETECTCOMPATIBLEMSIPACKAGE_ARGS* pArgs, | ||
125 | __inout BA_ONDETECTCOMPATIBLEMSIPACKAGE_RESULTS* pResults | ||
126 | ) | ||
127 | { | ||
128 | return pBAFunctions->OnDetectCompatibleMsiPackage(pArgs->wzPackageId, pArgs->wzCompatiblePackageId, pArgs->wzCompatiblePackageVersion, &pResults->fCancel); | ||
129 | } | ||
130 | |||
131 | static HRESULT BalBaseBAFunctionsProcOnDetectRelatedMsiPackage( | ||
132 | __in IBAFunctions* pBAFunctions, | ||
133 | __in BA_ONDETECTRELATEDMSIPACKAGE_ARGS* pArgs, | ||
134 | __inout BA_ONDETECTRELATEDMSIPACKAGE_RESULTS* pResults | ||
135 | ) | ||
136 | { | ||
137 | return pBAFunctions->OnDetectRelatedMsiPackage(pArgs->wzPackageId, pArgs->wzUpgradeCode, pArgs->wzProductCode, pArgs->fPerMachine, pArgs->wzVersion, pArgs->operation, &pResults->fCancel); | ||
138 | } | ||
139 | |||
140 | static HRESULT BalBaseBAFunctionsProcOnDetectPatchTarget( | ||
141 | __in IBAFunctions* pBAFunctions, | ||
142 | __in BA_ONDETECTPATCHTARGET_ARGS* pArgs, | ||
143 | __inout BA_ONDETECTPATCHTARGET_RESULTS* pResults | ||
144 | ) | ||
145 | { | ||
146 | return pBAFunctions->OnDetectPatchTarget(pArgs->wzPackageId, pArgs->wzProductCode, pArgs->patchState, &pResults->fCancel); | ||
147 | } | ||
148 | |||
149 | static HRESULT BalBaseBAFunctionsProcOnDetectMsiFeature( | ||
150 | __in IBAFunctions* pBAFunctions, | ||
151 | __in BA_ONDETECTMSIFEATURE_ARGS* pArgs, | ||
152 | __inout BA_ONDETECTMSIFEATURE_RESULTS* pResults | ||
153 | ) | ||
154 | { | ||
155 | return pBAFunctions->OnDetectMsiFeature(pArgs->wzPackageId, pArgs->wzFeatureId, pArgs->state, &pResults->fCancel); | ||
156 | } | ||
157 | |||
158 | static HRESULT BalBaseBAFunctionsProcOnDetectPackageComplete( | ||
159 | __in IBAFunctions* pBAFunctions, | ||
160 | __in BA_ONDETECTPACKAGECOMPLETE_ARGS* pArgs, | ||
161 | __inout BA_ONDETECTPACKAGECOMPLETE_RESULTS* /*pResults*/ | ||
162 | ) | ||
163 | { | ||
164 | return pBAFunctions->OnDetectPackageComplete(pArgs->wzPackageId, pArgs->hrStatus, pArgs->state, pArgs->fCached); | ||
165 | } | ||
166 | |||
167 | static HRESULT BalBaseBAFunctionsProcOnPlanRelatedBundle( | ||
168 | __in IBAFunctions* pBAFunctions, | ||
169 | __in BA_ONPLANRELATEDBUNDLE_ARGS* pArgs, | ||
170 | __inout BA_ONPLANRELATEDBUNDLE_RESULTS* pResults | ||
171 | ) | ||
172 | { | ||
173 | return pBAFunctions->OnPlanRelatedBundle(pArgs->wzBundleId, pArgs->recommendedState, &pResults->requestedState, &pResults->fCancel); | ||
174 | } | ||
175 | |||
176 | static HRESULT BalBaseBAFunctionsProcOnPlanRollbackBoundary( | ||
177 | __in IBAFunctions* pBAFunctions, | ||
178 | __in BA_ONPLANROLLBACKBOUNDARY_ARGS* pArgs, | ||
179 | __inout BA_ONPLANROLLBACKBOUNDARY_RESULTS* pResults | ||
180 | ) | ||
181 | { | ||
182 | return pBAFunctions->OnPlanRollbackBoundary(pArgs->wzRollbackBoundaryId, pArgs->fRecommendedTransaction, &pResults->fTransaction, &pResults->fCancel); | ||
183 | } | ||
184 | |||
185 | static HRESULT BalBaseBAFunctionsProcOnPlanPackageBegin( | ||
186 | __in IBAFunctions* pBAFunctions, | ||
187 | __in BA_ONPLANPACKAGEBEGIN_ARGS* pArgs, | ||
188 | __inout BA_ONPLANPACKAGEBEGIN_RESULTS* pResults | ||
189 | ) | ||
190 | { | ||
191 | return pBAFunctions->OnPlanPackageBegin(pArgs->wzPackageId, pArgs->state, pArgs->fCached, pArgs->installCondition, pArgs->repairCondition, pArgs->recommendedState, pArgs->recommendedCacheType, &pResults->requestedState, &pResults->requestedCacheType, &pResults->fCancel); | ||
192 | } | ||
193 | |||
194 | static HRESULT BalBaseBAFunctionsProcOnPlanCompatibleMsiPackageBegin( | ||
195 | __in IBAFunctions* pBAFunctions, | ||
196 | __in BA_ONPLANCOMPATIBLEMSIPACKAGEBEGIN_ARGS* pArgs, | ||
197 | __inout BA_ONPLANCOMPATIBLEMSIPACKAGEBEGIN_RESULTS* pResults | ||
198 | ) | ||
199 | { | ||
200 | return pBAFunctions->OnPlanCompatibleMsiPackageBegin(pArgs->wzPackageId, pArgs->wzCompatiblePackageId, pArgs->wzCompatiblePackageVersion, pArgs->fRecommendedRemove, &pResults->fRequestRemove, &pResults->fCancel); | ||
201 | } | ||
202 | |||
203 | static HRESULT BalBaseBAFunctionsProcOnPlanCompatibleMsiPackageComplete( | ||
204 | __in IBAFunctions* pBAFunctions, | ||
205 | __in BA_ONPLANCOMPATIBLEMSIPACKAGECOMPLETE_ARGS* pArgs, | ||
206 | __inout BA_ONPLANCOMPATIBLEMSIPACKAGECOMPLETE_RESULTS* /*pResults*/ | ||
207 | ) | ||
208 | { | ||
209 | return pBAFunctions->OnPlanCompatibleMsiPackageComplete(pArgs->wzPackageId, pArgs->wzCompatiblePackageId, pArgs->hrStatus, pArgs->fRequestedRemove); | ||
210 | } | ||
211 | |||
212 | static HRESULT BalBaseBAFunctionsProcOnPlanPatchTarget( | ||
213 | __in IBAFunctions* pBAFunctions, | ||
214 | __in BA_ONPLANPATCHTARGET_ARGS* pArgs, | ||
215 | __inout BA_ONPLANPATCHTARGET_RESULTS* pResults | ||
216 | ) | ||
217 | { | ||
218 | return pBAFunctions->OnPlanPatchTarget(pArgs->wzPackageId, pArgs->wzProductCode, pArgs->recommendedState, &pResults->requestedState, &pResults->fCancel); | ||
219 | } | ||
220 | |||
221 | static HRESULT BalBaseBAFunctionsProcOnPlanMsiFeature( | ||
222 | __in IBAFunctions* pBAFunctions, | ||
223 | __in BA_ONPLANMSIFEATURE_ARGS* pArgs, | ||
224 | __inout BA_ONPLANMSIFEATURE_RESULTS* pResults | ||
225 | ) | ||
226 | { | ||
227 | return pBAFunctions->OnPlanMsiFeature(pArgs->wzPackageId, pArgs->wzFeatureId, pArgs->recommendedState, &pResults->requestedState, &pResults->fCancel); | ||
228 | } | ||
229 | |||
230 | static HRESULT BalBaseBAFunctionsProcOnPlanPackageComplete( | ||
231 | __in IBAFunctions* pBAFunctions, | ||
232 | __in BA_ONPLANPACKAGECOMPLETE_ARGS* pArgs, | ||
233 | __inout BA_ONPLANPACKAGECOMPLETE_RESULTS* /*pResults*/ | ||
234 | ) | ||
235 | { | ||
236 | return pBAFunctions->OnPlanPackageComplete(pArgs->wzPackageId, pArgs->hrStatus, pArgs->requested); | ||
237 | } | ||
238 | |||
239 | static HRESULT BalBaseBAFunctionsProcOnPlannedCompatiblePackage( | ||
240 | __in IBAFunctions* pBAFunctions, | ||
241 | __in BA_ONPLANNEDCOMPATIBLEPACKAGE_ARGS* pArgs, | ||
242 | __inout BA_ONPLANNEDCOMPATIBLEPACKAGE_RESULTS* /*pResults*/ | ||
243 | ) | ||
244 | { | ||
245 | return pBAFunctions->OnPlannedCompatiblePackage(pArgs->wzPackageId, pArgs->wzCompatiblePackageId, pArgs->fRemove); | ||
246 | } | ||
247 | |||
248 | static HRESULT BalBaseBAFunctionsProcOnPlannedPackage( | ||
249 | __in IBAFunctions* pBAFunctions, | ||
250 | __in BA_ONPLANNEDPACKAGE_ARGS* pArgs, | ||
251 | __inout BA_ONPLANNEDPACKAGE_RESULTS* /*pResults*/ | ||
252 | ) | ||
253 | { | ||
254 | return pBAFunctions->OnPlannedPackage(pArgs->wzPackageId, pArgs->execute, pArgs->rollback, pArgs->fPlannedCache, pArgs->fPlannedUncache); | ||
255 | } | ||
256 | |||
257 | static HRESULT BalBaseBAFunctionsProcOnApplyBegin( | ||
258 | __in IBAFunctions* pBAFunctions, | ||
259 | __in BA_ONAPPLYBEGIN_ARGS* pArgs, | ||
260 | __inout BA_ONAPPLYBEGIN_RESULTS* pResults | ||
261 | ) | ||
262 | { | ||
263 | return pBAFunctions->OnApplyBegin(pArgs->dwPhaseCount, &pResults->fCancel); | ||
264 | } | ||
265 | |||
266 | static HRESULT BalBaseBAFunctionsProcOnElevateBegin( | ||
267 | __in IBAFunctions* pBAFunctions, | ||
268 | __in BA_ONELEVATEBEGIN_ARGS* /*pArgs*/, | ||
269 | __inout BA_ONELEVATEBEGIN_RESULTS* pResults | ||
270 | ) | ||
271 | { | ||
272 | return pBAFunctions->OnElevateBegin(&pResults->fCancel); | ||
273 | } | ||
274 | |||
275 | static HRESULT BalBaseBAFunctionsProcOnElevateComplete( | ||
276 | __in IBAFunctions* pBAFunctions, | ||
277 | __in BA_ONELEVATECOMPLETE_ARGS* pArgs, | ||
278 | __inout BA_ONELEVATECOMPLETE_RESULTS* /*pResults*/ | ||
279 | ) | ||
280 | { | ||
281 | return pBAFunctions->OnElevateComplete(pArgs->hrStatus); | ||
282 | } | ||
283 | |||
284 | static HRESULT BalBaseBAFunctionsProcOnProgress( | ||
285 | __in IBAFunctions* pBAFunctions, | ||
286 | __in BA_ONPROGRESS_ARGS* pArgs, | ||
287 | __inout BA_ONPROGRESS_RESULTS* pResults | ||
288 | ) | ||
289 | { | ||
290 | return pBAFunctions->OnProgress(pArgs->dwProgressPercentage, pArgs->dwOverallPercentage, &pResults->fCancel); | ||
291 | } | ||
292 | |||
293 | static HRESULT BalBaseBAFunctionsProcOnError( | ||
294 | __in IBAFunctions* pBAFunctions, | ||
295 | __in BA_ONERROR_ARGS* pArgs, | ||
296 | __inout BA_ONERROR_RESULTS* pResults | ||
297 | ) | ||
298 | { | ||
299 | return pBAFunctions->OnError(pArgs->errorType, pArgs->wzPackageId, pArgs->dwCode, pArgs->wzError, pArgs->dwUIHint, pArgs->cData, pArgs->rgwzData, pArgs->nRecommendation, &pResults->nResult); | ||
300 | } | ||
301 | |||
302 | static HRESULT BalBaseBAFunctionsProcOnRegisterBegin( | ||
303 | __in IBAFunctions* pBAFunctions, | ||
304 | __in BA_ONREGISTERBEGIN_ARGS* pArgs, | ||
305 | __inout BA_ONREGISTERBEGIN_RESULTS* pResults | ||
306 | ) | ||
307 | { | ||
308 | return pBAFunctions->OnRegisterBegin(pArgs->recommendedRegistrationType, &pResults->fCancel, &pResults->registrationType); | ||
309 | } | ||
310 | |||
311 | static HRESULT BalBaseBAFunctionsProcOnRegisterComplete( | ||
312 | __in IBAFunctions* pBAFunctions, | ||
313 | __in BA_ONREGISTERCOMPLETE_ARGS* pArgs, | ||
314 | __inout BA_ONREGISTERCOMPLETE_RESULTS* /*pResults*/ | ||
315 | ) | ||
316 | { | ||
317 | return pBAFunctions->OnRegisterComplete(pArgs->hrStatus); | ||
318 | } | ||
319 | |||
320 | static HRESULT BalBaseBAFunctionsProcOnCacheBegin( | ||
321 | __in IBAFunctions* pBAFunctions, | ||
322 | __in BA_ONCACHEBEGIN_ARGS* /*pArgs*/, | ||
323 | __inout BA_ONCACHEBEGIN_RESULTS* pResults | ||
324 | ) | ||
325 | { | ||
326 | return pBAFunctions->OnCacheBegin(&pResults->fCancel); | ||
327 | } | ||
328 | |||
329 | static HRESULT BalBaseBAFunctionsProcOnCachePackageBegin( | ||
330 | __in IBAFunctions* pBAFunctions, | ||
331 | __in BA_ONCACHEPACKAGEBEGIN_ARGS* pArgs, | ||
332 | __inout BA_ONCACHEPACKAGEBEGIN_RESULTS* pResults | ||
333 | ) | ||
334 | { | ||
335 | return pBAFunctions->OnCachePackageBegin(pArgs->wzPackageId, pArgs->cCachePayloads, pArgs->dw64PackageCacheSize, pArgs->fVital, &pResults->fCancel); | ||
336 | } | ||
337 | |||
338 | static HRESULT BalBaseBAFunctionsProcOnCacheAcquireBegin( | ||
339 | __in IBAFunctions* pBAFunctions, | ||
340 | __in BA_ONCACHEACQUIREBEGIN_ARGS* pArgs, | ||
341 | __inout BA_ONCACHEACQUIREBEGIN_RESULTS* pResults | ||
342 | ) | ||
343 | { | ||
344 | return pBAFunctions->OnCacheAcquireBegin(pArgs->wzPackageOrContainerId, pArgs->wzPayloadId, pArgs->wzSource, pArgs->wzDownloadUrl, pArgs->wzPayloadContainerId, pArgs->recommendation, &pResults->action, &pResults->fCancel); | ||
345 | } | ||
346 | |||
347 | static HRESULT BalBaseBAFunctionsProcOnCacheAcquireProgress( | ||
348 | __in IBAFunctions* pBAFunctions, | ||
349 | __in BA_ONCACHEACQUIREPROGRESS_ARGS* pArgs, | ||
350 | __inout BA_ONCACHEACQUIREPROGRESS_RESULTS* pResults | ||
351 | ) | ||
352 | { | ||
353 | return pBAFunctions->OnCacheAcquireProgress(pArgs->wzPackageOrContainerId, pArgs->wzPayloadId, pArgs->dw64Progress, pArgs->dw64Total, pArgs->dwOverallPercentage, &pResults->fCancel); | ||
354 | } | ||
355 | |||
356 | static HRESULT BalBaseBAFunctionsProcOnCacheAcquireResolving( | ||
357 | __in IBAFunctions* pBAFunctions, | ||
358 | __in BA_ONCACHEACQUIRERESOLVING_ARGS* pArgs, | ||
359 | __inout BA_ONCACHEACQUIRERESOLVING_RESULTS* pResults | ||
360 | ) | ||
361 | { | ||
362 | return pBAFunctions->OnCacheAcquireResolving(pArgs->wzPackageOrContainerId, pArgs->wzPayloadId, pArgs->rgSearchPaths, pArgs->cSearchPaths, pArgs->fFoundLocal, pArgs->dwRecommendedSearchPath, pArgs->wzDownloadUrl, pArgs->wzPayloadContainerId, pArgs->recommendation, &pResults->dwChosenSearchPath, &pResults->action, &pResults->fCancel); | ||
363 | } | ||
364 | |||
365 | static HRESULT BalBaseBAFunctionsProcOnCacheAcquireComplete( | ||
366 | __in IBAFunctions* pBAFunctions, | ||
367 | __in BA_ONCACHEACQUIRECOMPLETE_ARGS* pArgs, | ||
368 | __inout BA_ONCACHEACQUIRECOMPLETE_RESULTS* pResults | ||
369 | ) | ||
370 | { | ||
371 | return pBAFunctions->OnCacheAcquireComplete(pArgs->wzPackageOrContainerId, pArgs->wzPayloadId, pArgs->hrStatus, pArgs->recommendation, &pResults->action); | ||
372 | } | ||
373 | |||
374 | static HRESULT BalBaseBAFunctionsProcOnCacheVerifyBegin( | ||
375 | __in IBAFunctions* pBAFunctions, | ||
376 | __in BA_ONCACHEVERIFYBEGIN_ARGS* pArgs, | ||
377 | __inout BA_ONCACHEVERIFYBEGIN_RESULTS* pResults | ||
378 | ) | ||
379 | { | ||
380 | return pBAFunctions->OnCacheVerifyBegin(pArgs->wzPackageOrContainerId, pArgs->wzPayloadId, &pResults->fCancel); | ||
381 | } | ||
382 | |||
383 | static HRESULT BalBaseBAFunctionsProcOnCacheVerifyProgress( | ||
384 | __in IBAFunctions* pBAFunctions, | ||
385 | __in BA_ONCACHEVERIFYPROGRESS_ARGS* pArgs, | ||
386 | __inout BA_ONCACHEVERIFYPROGRESS_RESULTS* pResults | ||
387 | ) | ||
388 | { | ||
389 | return pBAFunctions->OnCacheVerifyProgress(pArgs->wzPackageOrContainerId, pArgs->wzPayloadId, pArgs->dw64Progress, pArgs->dw64Total, pArgs->dwOverallPercentage, pArgs->verifyStep, &pResults->fCancel); | ||
390 | } | ||
391 | |||
392 | static HRESULT BalBaseBAFunctionsProcOnCacheVerifyComplete( | ||
393 | __in IBAFunctions* pBAFunctions, | ||
394 | __in BA_ONCACHEVERIFYCOMPLETE_ARGS* pArgs, | ||
395 | __inout BA_ONCACHEVERIFYCOMPLETE_RESULTS* pResults | ||
396 | ) | ||
397 | { | ||
398 | return pBAFunctions->OnCacheVerifyComplete(pArgs->wzPackageOrContainerId, pArgs->wzPayloadId, pArgs->hrStatus, pArgs->recommendation, &pResults->action); | ||
399 | } | ||
400 | |||
401 | static HRESULT BalBaseBAFunctionsProcOnCachePackageComplete( | ||
402 | __in IBAFunctions* pBAFunctions, | ||
403 | __in BA_ONCACHEPACKAGECOMPLETE_ARGS* pArgs, | ||
404 | __inout BA_ONCACHEPACKAGECOMPLETE_RESULTS* pResults | ||
405 | ) | ||
406 | { | ||
407 | return pBAFunctions->OnCachePackageComplete(pArgs->wzPackageId, pArgs->hrStatus, pArgs->recommendation, &pResults->action); | ||
408 | } | ||
409 | |||
410 | static HRESULT BalBaseBAFunctionsProcOnCacheComplete( | ||
411 | __in IBAFunctions* pBAFunctions, | ||
412 | __in BA_ONCACHECOMPLETE_ARGS* pArgs, | ||
413 | __inout BA_ONCACHECOMPLETE_RESULTS* /*pResults*/ | ||
414 | ) | ||
415 | { | ||
416 | return pBAFunctions->OnCacheComplete(pArgs->hrStatus); | ||
417 | } | ||
418 | |||
419 | static HRESULT BalBaseBAFunctionsProcOnExecuteBegin( | ||
420 | __in IBAFunctions* pBAFunctions, | ||
421 | __in BA_ONEXECUTEBEGIN_ARGS* pArgs, | ||
422 | __inout BA_ONEXECUTEBEGIN_RESULTS* pResults | ||
423 | ) | ||
424 | { | ||
425 | return pBAFunctions->OnExecuteBegin(pArgs->cExecutingPackages, &pResults->fCancel); | ||
426 | } | ||
427 | |||
428 | static HRESULT BalBaseBAFunctionsProcOnExecutePackageBegin( | ||
429 | __in IBAFunctions* pBAFunctions, | ||
430 | __in BA_ONEXECUTEPACKAGEBEGIN_ARGS* pArgs, | ||
431 | __inout BA_ONEXECUTEPACKAGEBEGIN_RESULTS* pResults | ||
432 | ) | ||
433 | { | ||
434 | return pBAFunctions->OnExecutePackageBegin(pArgs->wzPackageId, pArgs->fExecute, pArgs->action, pArgs->uiLevel, pArgs->fDisableExternalUiHandler, &pResults->fCancel); | ||
435 | } | ||
436 | |||
437 | static HRESULT BalBaseBAFunctionsProcOnExecutePatchTarget( | ||
438 | __in IBAFunctions* pBAFunctions, | ||
439 | __in BA_ONEXECUTEPATCHTARGET_ARGS* pArgs, | ||
440 | __inout BA_ONEXECUTEPATCHTARGET_RESULTS* pResults | ||
441 | ) | ||
442 | { | ||
443 | return pBAFunctions->OnExecutePatchTarget(pArgs->wzPackageId, pArgs->wzTargetProductCode, &pResults->fCancel); | ||
444 | } | ||
445 | |||
446 | static HRESULT BalBaseBAFunctionsProcOnExecuteProgress( | ||
447 | __in IBAFunctions* pBAFunctions, | ||
448 | __in BA_ONEXECUTEPROGRESS_ARGS* pArgs, | ||
449 | __inout BA_ONEXECUTEPROGRESS_RESULTS* pResults | ||
450 | ) | ||
451 | { | ||
452 | return pBAFunctions->OnExecuteProgress(pArgs->wzPackageId, pArgs->dwProgressPercentage, pArgs->dwOverallPercentage, &pResults->fCancel); | ||
453 | } | ||
454 | |||
455 | static HRESULT BalBaseBAFunctionsProcOnExecuteMsiMessage( | ||
456 | __in IBAFunctions* pBAFunctions, | ||
457 | __in BA_ONEXECUTEMSIMESSAGE_ARGS* pArgs, | ||
458 | __inout BA_ONEXECUTEMSIMESSAGE_RESULTS* pResults | ||
459 | ) | ||
460 | { | ||
461 | return pBAFunctions->OnExecuteMsiMessage(pArgs->wzPackageId, pArgs->messageType, pArgs->dwUIHint, pArgs->wzMessage, pArgs->cData, pArgs->rgwzData, pArgs->nRecommendation, &pResults->nResult); | ||
462 | } | ||
463 | |||
464 | static HRESULT BalBaseBAFunctionsProcOnExecuteFilesInUse( | ||
465 | __in IBAFunctions* pBAFunctions, | ||
466 | __in BA_ONEXECUTEFILESINUSE_ARGS* pArgs, | ||
467 | __inout BA_ONEXECUTEFILESINUSE_RESULTS* pResults | ||
468 | ) | ||
469 | { | ||
470 | return pBAFunctions->OnExecuteFilesInUse(pArgs->wzPackageId, pArgs->cFiles, pArgs->rgwzFiles, pArgs->nRecommendation, pArgs->source, &pResults->nResult); | ||
471 | } | ||
472 | |||
473 | static HRESULT BalBaseBAFunctionsProcOnExecutePackageComplete( | ||
474 | __in IBAFunctions* pBAFunctions, | ||
475 | __in BA_ONEXECUTEPACKAGECOMPLETE_ARGS* pArgs, | ||
476 | __inout BA_ONEXECUTEPACKAGECOMPLETE_RESULTS* pResults | ||
477 | ) | ||
478 | { | ||
479 | return pBAFunctions->OnExecutePackageComplete(pArgs->wzPackageId, pArgs->hrStatus, pArgs->restart, pArgs->recommendation, &pResults->action); | ||
480 | } | ||
481 | |||
482 | static HRESULT BalBaseBAFunctionsProcOnExecuteProcessCancel( | ||
483 | __in IBAFunctions* pBAFunctions, | ||
484 | __in BA_ONEXECUTEPROCESSCANCEL_ARGS* pArgs, | ||
485 | __inout BA_ONEXECUTEPROCESSCANCEL_RESULTS* pResults | ||
486 | ) | ||
487 | { | ||
488 | return pBAFunctions->OnExecuteProcessCancel(pArgs->wzPackageId, pArgs->dwProcessId, pArgs->recommendation, &pResults->action); | ||
489 | } | ||
490 | |||
491 | static HRESULT BalBaseBAFunctionsProcOnExecuteComplete( | ||
492 | __in IBAFunctions* pBAFunctions, | ||
493 | __in BA_ONEXECUTECOMPLETE_ARGS* pArgs, | ||
494 | __inout BA_ONEXECUTECOMPLETE_RESULTS* /*pResults*/ | ||
495 | ) | ||
496 | { | ||
497 | return pBAFunctions->OnExecuteComplete(pArgs->hrStatus); | ||
498 | } | ||
499 | |||
500 | static HRESULT BalBaseBAFunctionsProcOnUnregisterBegin( | ||
501 | __in IBAFunctions* pBAFunctions, | ||
502 | __in BA_ONUNREGISTERBEGIN_ARGS* pArgs, | ||
503 | __inout BA_ONUNREGISTERBEGIN_RESULTS* pResults | ||
504 | ) | ||
505 | { | ||
506 | return pBAFunctions->OnUnregisterBegin(pArgs->recommendedRegistrationType, &pResults->registrationType); | ||
507 | } | ||
508 | |||
509 | static HRESULT BalBaseBAFunctionsProcOnUnregisterComplete( | ||
510 | __in IBAFunctions* pBAFunctions, | ||
511 | __in BA_ONUNREGISTERCOMPLETE_ARGS* pArgs, | ||
512 | __inout BA_ONUNREGISTERCOMPLETE_RESULTS* /*pResults*/ | ||
513 | ) | ||
514 | { | ||
515 | return pBAFunctions->OnUnregisterComplete(pArgs->hrStatus); | ||
516 | } | ||
517 | |||
518 | static HRESULT BalBaseBAFunctionsProcOnApplyComplete( | ||
519 | __in IBAFunctions* pBAFunctions, | ||
520 | __in BA_ONAPPLYCOMPLETE_ARGS* pArgs, | ||
521 | __inout BA_ONAPPLYCOMPLETE_RESULTS* pResults | ||
522 | ) | ||
523 | { | ||
524 | return pBAFunctions->OnApplyComplete(pArgs->hrStatus, pArgs->restart, pArgs->recommendation, &pResults->action); | ||
525 | } | ||
526 | |||
527 | static HRESULT BalBaseBAFunctionsProcOnLaunchApprovedExeBegin( | ||
528 | __in IBAFunctions* pBAFunctions, | ||
529 | __in BA_ONLAUNCHAPPROVEDEXEBEGIN_ARGS* /*pArgs*/, | ||
530 | __inout BA_ONLAUNCHAPPROVEDEXEBEGIN_RESULTS* pResults | ||
531 | ) | ||
532 | { | ||
533 | return pBAFunctions->OnLaunchApprovedExeBegin(&pResults->fCancel); | ||
534 | } | ||
535 | |||
536 | static HRESULT BalBaseBAFunctionsProcOnLaunchApprovedExeComplete( | ||
537 | __in IBAFunctions* pBAFunctions, | ||
538 | __in BA_ONLAUNCHAPPROVEDEXECOMPLETE_ARGS* pArgs, | ||
539 | __inout BA_ONLAUNCHAPPROVEDEXECOMPLETE_RESULTS* /*pResults*/ | ||
540 | ) | ||
541 | { | ||
542 | return pBAFunctions->OnLaunchApprovedExeComplete(pArgs->hrStatus, pArgs->dwProcessId); | ||
543 | } | ||
544 | |||
545 | static HRESULT BalBaseBAFunctionsProcOnPlanMsiPackage( | ||
546 | __in IBAFunctions* pBAFunctions, | ||
547 | __in BA_ONPLANMSIPACKAGE_ARGS* pArgs, | ||
548 | __inout BA_ONPLANMSIPACKAGE_RESULTS* pResults | ||
549 | ) | ||
550 | { | ||
551 | return pBAFunctions->OnPlanMsiPackage(pArgs->wzPackageId, pArgs->fExecute, pArgs->action, pArgs->recommendedFileVersioning, &pResults->fCancel, &pResults->actionMsiProperty, &pResults->uiLevel, &pResults->fDisableExternalUiHandler, &pResults->fileVersioning); | ||
552 | } | ||
553 | |||
554 | static HRESULT BalBaseBAFunctionsProcOnBeginMsiTransactionBegin( | ||
555 | __in IBAFunctions* pBAFunctions, | ||
556 | __in BA_ONBEGINMSITRANSACTIONBEGIN_ARGS* pArgs, | ||
557 | __inout BA_ONBEGINMSITRANSACTIONBEGIN_RESULTS* pResults | ||
558 | ) | ||
559 | { | ||
560 | return pBAFunctions->OnBeginMsiTransactionBegin(pArgs->wzTransactionId, &pResults->fCancel); | ||
561 | } | ||
562 | |||
563 | static HRESULT BalBaseBAFunctionsProcOnBeginMsiTransactionComplete( | ||
564 | __in IBAFunctions* pBAFunctions, | ||
565 | __in BA_ONBEGINMSITRANSACTIONCOMPLETE_ARGS* pArgs, | ||
566 | __inout BA_ONBEGINMSITRANSACTIONCOMPLETE_RESULTS* /*pResults*/ | ||
567 | ) | ||
568 | { | ||
569 | return pBAFunctions->OnBeginMsiTransactionComplete(pArgs->wzTransactionId, pArgs->hrStatus); | ||
570 | } | ||
571 | |||
572 | static HRESULT BalBaseBAFunctionsProcOnCommitMsiTransactionBegin( | ||
573 | __in IBAFunctions* pBAFunctions, | ||
574 | __in BA_ONCOMMITMSITRANSACTIONBEGIN_ARGS* pArgs, | ||
575 | __inout BA_ONCOMMITMSITRANSACTIONBEGIN_RESULTS* pResults | ||
576 | ) | ||
577 | { | ||
578 | return pBAFunctions->OnCommitMsiTransactionBegin(pArgs->wzTransactionId, &pResults->fCancel); | ||
579 | } | ||
580 | |||
581 | static HRESULT BalBaseBAFunctionsProcOnCommitMsiTransactionComplete( | ||
582 | __in IBAFunctions* pBAFunctions, | ||
583 | __in BA_ONCOMMITMSITRANSACTIONCOMPLETE_ARGS* pArgs, | ||
584 | __inout BA_ONCOMMITMSITRANSACTIONCOMPLETE_RESULTS* pResults | ||
585 | ) | ||
586 | { | ||
587 | return pBAFunctions->OnCommitMsiTransactionComplete(pArgs->wzTransactionId, pArgs->hrStatus, pArgs->restart, pArgs->recommendation, &pResults->action); | ||
588 | } | ||
589 | |||
590 | static HRESULT BalBaseBAFunctionsProcOnRollbackMsiTransactionBegin( | ||
591 | __in IBAFunctions* pBAFunctions, | ||
592 | __in BA_ONROLLBACKMSITRANSACTIONBEGIN_ARGS* pArgs, | ||
593 | __inout BA_ONROLLBACKMSITRANSACTIONBEGIN_RESULTS* /*pResults*/ | ||
594 | ) | ||
595 | { | ||
596 | return pBAFunctions->OnRollbackMsiTransactionBegin(pArgs->wzTransactionId); | ||
597 | } | ||
598 | |||
599 | static HRESULT BalBaseBAFunctionsProcOnRollbackMsiTransactionComplete( | ||
600 | __in IBAFunctions* pBAFunctions, | ||
601 | __in BA_ONROLLBACKMSITRANSACTIONCOMPLETE_ARGS* pArgs, | ||
602 | __inout BA_ONROLLBACKMSITRANSACTIONCOMPLETE_RESULTS* pResults | ||
603 | ) | ||
604 | { | ||
605 | return pBAFunctions->OnRollbackMsiTransactionComplete(pArgs->wzTransactionId, pArgs->hrStatus, pArgs->restart, pArgs->recommendation, &pResults->action); | ||
606 | } | ||
607 | |||
608 | static HRESULT BalBaseBAFunctionsProcOnPauseAutomaticUpdatesBegin( | ||
609 | __in IBAFunctions* pBAFunctions, | ||
610 | __in BA_ONPAUSEAUTOMATICUPDATESBEGIN_ARGS* /*pArgs*/, | ||
611 | __inout BA_ONPAUSEAUTOMATICUPDATESBEGIN_RESULTS* /*pResults*/ | ||
612 | ) | ||
613 | { | ||
614 | return pBAFunctions->OnPauseAutomaticUpdatesBegin(); | ||
615 | } | ||
616 | |||
617 | static HRESULT BalBaseBAFunctionsProcOnPauseAutomaticUpdatesComplete( | ||
618 | __in IBAFunctions* pBAFunctions, | ||
619 | __in BA_ONPAUSEAUTOMATICUPDATESCOMPLETE_ARGS* pArgs, | ||
620 | __inout BA_ONPAUSEAUTOMATICUPDATESCOMPLETE_RESULTS* /*pResults*/ | ||
621 | ) | ||
622 | { | ||
623 | return pBAFunctions->OnPauseAutomaticUpdatesComplete(pArgs->hrStatus); | ||
624 | } | ||
625 | |||
626 | static HRESULT BalBaseBAFunctionsProcOnSystemRestorePointBegin( | ||
627 | __in IBAFunctions* pBAFunctions, | ||
628 | __in BA_ONSYSTEMRESTOREPOINTBEGIN_ARGS* /*pArgs*/, | ||
629 | __inout BA_ONSYSTEMRESTOREPOINTBEGIN_RESULTS* /*pResults*/ | ||
630 | ) | ||
631 | { | ||
632 | return pBAFunctions->OnSystemRestorePointBegin(); | ||
633 | } | ||
634 | |||
635 | static HRESULT BalBaseBAFunctionsProcOnSystemRestorePointComplete( | ||
636 | __in IBAFunctions* pBAFunctions, | ||
637 | __in BA_ONSYSTEMRESTOREPOINTCOMPLETE_ARGS* pArgs, | ||
638 | __inout BA_ONSYSTEMRESTOREPOINTCOMPLETE_RESULTS* /*pResults*/ | ||
639 | ) | ||
640 | { | ||
641 | return pBAFunctions->OnSystemRestorePointComplete(pArgs->hrStatus); | ||
642 | } | ||
643 | |||
644 | static HRESULT BalBaseBAFunctionsProcOnPlanForwardCompatibleBundle( | ||
645 | __in IBAFunctions* pBAFunctions, | ||
646 | __in BA_ONPLANFORWARDCOMPATIBLEBUNDLE_ARGS* pArgs, | ||
647 | __inout BA_ONPLANFORWARDCOMPATIBLEBUNDLE_RESULTS* pResults | ||
648 | ) | ||
649 | { | ||
650 | return pBAFunctions->OnPlanForwardCompatibleBundle(pArgs->wzBundleId, pArgs->relationType, pArgs->wzBundleTag, pArgs->fPerMachine, pArgs->wzVersion, pArgs->fRecommendedIgnoreBundle, &pResults->fCancel, &pResults->fIgnoreBundle); | ||
651 | } | ||
652 | |||
653 | static HRESULT BalBaseBAFunctionsProcOnCacheContainerOrPayloadVerifyBegin( | ||
654 | __in IBAFunctions* pBAFunctions, | ||
655 | __in BA_ONCACHECONTAINERORPAYLOADVERIFYBEGIN_ARGS* pArgs, | ||
656 | __inout BA_ONCACHECONTAINERORPAYLOADVERIFYBEGIN_RESULTS* pResults | ||
657 | ) | ||
658 | { | ||
659 | return pBAFunctions->OnCacheContainerOrPayloadVerifyBegin(pArgs->wzPackageOrContainerId, pArgs->wzPayloadId, &pResults->fCancel); | ||
660 | } | ||
661 | |||
662 | static HRESULT BalBaseBAFunctionsProcOnCacheContainerOrPayloadVerifyProgress( | ||
663 | __in IBAFunctions* pBAFunctions, | ||
664 | __in BA_ONCACHECONTAINERORPAYLOADVERIFYPROGRESS_ARGS* pArgs, | ||
665 | __inout BA_ONCACHECONTAINERORPAYLOADVERIFYPROGRESS_RESULTS* pResults | ||
666 | ) | ||
667 | { | ||
668 | return pBAFunctions->OnCacheContainerOrPayloadVerifyProgress(pArgs->wzPackageOrContainerId, pArgs->wzPayloadId, pArgs->dw64Progress, pArgs->dw64Total, pArgs->dwOverallPercentage, &pResults->fCancel); | ||
669 | } | ||
670 | |||
671 | static HRESULT BalBaseBAFunctionsProcOnCacheContainerOrPayloadVerifyComplete( | ||
672 | __in IBAFunctions* pBAFunctions, | ||
673 | __in BA_ONCACHECONTAINERORPAYLOADVERIFYCOMPLETE_ARGS* pArgs, | ||
674 | __inout BA_ONCACHECONTAINERORPAYLOADVERIFYCOMPLETE_RESULTS* /*pResults*/ | ||
675 | ) | ||
676 | { | ||
677 | return pBAFunctions->OnCacheContainerOrPayloadVerifyComplete(pArgs->wzPackageOrContainerId, pArgs->wzPayloadId, pArgs->hrStatus); | ||
678 | } | ||
679 | |||
680 | static HRESULT BalBaseBAFunctionsProcOnCachePayloadExtractBegin( | ||
681 | __in IBAFunctions* pBAFunctions, | ||
682 | __in BA_ONCACHEPAYLOADEXTRACTBEGIN_ARGS* pArgs, | ||
683 | __inout BA_ONCACHEPAYLOADEXTRACTBEGIN_RESULTS* pResults | ||
684 | ) | ||
685 | { | ||
686 | return pBAFunctions->OnCachePayloadExtractBegin(pArgs->wzContainerId, pArgs->wzPayloadId, &pResults->fCancel); | ||
687 | } | ||
688 | |||
689 | static HRESULT BalBaseBAFunctionsProcOnCachePayloadExtractProgress( | ||
690 | __in IBAFunctions* pBAFunctions, | ||
691 | __in BA_ONCACHEPAYLOADEXTRACTPROGRESS_ARGS* pArgs, | ||
692 | __inout BA_ONCACHEPAYLOADEXTRACTPROGRESS_RESULTS* pResults | ||
693 | ) | ||
694 | { | ||
695 | return pBAFunctions->OnCachePayloadExtractProgress(pArgs->wzContainerId, pArgs->wzPayloadId, pArgs->dw64Progress, pArgs->dw64Total, pArgs->dwOverallPercentage, &pResults->fCancel); | ||
696 | } | ||
697 | |||
698 | static HRESULT BalBaseBAFunctionsProcOnCachePayloadExtractComplete( | ||
699 | __in IBAFunctions* pBAFunctions, | ||
700 | __in BA_ONCACHEPAYLOADEXTRACTCOMPLETE_ARGS* pArgs, | ||
701 | __inout BA_ONCACHEPAYLOADEXTRACTCOMPLETE_RESULTS* /*pResults*/ | ||
702 | ) | ||
703 | { | ||
704 | return pBAFunctions->OnCachePayloadExtractComplete(pArgs->wzContainerId, pArgs->wzPayloadId, pArgs->hrStatus); | ||
705 | } | ||
706 | |||
707 | static HRESULT BalBaseBAFunctionsProcOnPlanRestoreRelatedBundle( | ||
708 | __in IBAFunctions* pBAFunctions, | ||
709 | __in BA_ONPLANRESTORERELATEDBUNDLE_ARGS* pArgs, | ||
710 | __inout BA_ONPLANRESTORERELATEDBUNDLE_RESULTS* pResults | ||
711 | ) | ||
712 | { | ||
713 | return pBAFunctions->OnPlanRestoreRelatedBundle(pArgs->wzBundleId, pArgs->recommendedState, &pResults->requestedState, &pResults->fCancel); | ||
714 | } | ||
715 | |||
716 | static HRESULT BalBaseBAFunctionsProcOnPlanRelatedBundleType( | ||
717 | __in IBAFunctions* pBAFunctions, | ||
718 | __in BA_ONPLANRELATEDBUNDLETYPE_ARGS* pArgs, | ||
719 | __inout BA_ONPLANRELATEDBUNDLETYPE_RESULTS* pResults | ||
720 | ) | ||
721 | { | ||
722 | return pBAFunctions->OnPlanRelatedBundleType(pArgs->wzBundleId, pArgs->recommendedType, &pResults->requestedType, &pResults->fCancel); | ||
723 | } | ||
724 | |||
725 | static HRESULT BalBaseBAFunctionsProcOnApplyDowngrade( | ||
726 | __in IBAFunctions* pBAFunctions, | ||
727 | __in BA_ONAPPLYDOWNGRADE_ARGS* pArgs, | ||
728 | __inout BA_ONAPPLYDOWNGRADE_RESULTS* pResults | ||
729 | ) | ||
730 | { | ||
731 | return pBAFunctions->OnApplyDowngrade(pArgs->hrRecommended, &pResults->hrStatus); | ||
732 | } | ||
733 | |||
734 | static HRESULT BalBaseBAFunctionsProcOnDetectRelatedBundlePackage( | ||
735 | __in IBAFunctions* pBAFunctions, | ||
736 | __in BA_ONDETECTRELATEDBUNDLEPACKAGE_ARGS* pArgs, | ||
737 | __inout BA_ONDETECTRELATEDBUNDLEPACKAGE_RESULTS* pResults | ||
738 | ) | ||
739 | { | ||
740 | return pBAFunctions->OnDetectRelatedBundlePackage(pArgs->wzPackageId, pArgs->wzBundleId, pArgs->relationType, pArgs->fPerMachine, pArgs->wzVersion, &pResults->fCancel); | ||
741 | } | ||
742 | |||
743 | static HRESULT BalBaseBAFunctionsProcOnCachePackageNonVitalValidationFailure( | ||
744 | __in IBAFunctions* pBAFunctions, | ||
745 | __in BA_ONCACHEPACKAGENONVITALVALIDATIONFAILURE_ARGS* pArgs, | ||
746 | __inout BA_ONCACHEPACKAGENONVITALVALIDATIONFAILURE_RESULTS* pResults | ||
747 | ) | ||
748 | { | ||
749 | return pBAFunctions->OnCachePackageNonVitalValidationFailure(pArgs->wzPackageId, pArgs->hrStatus, pArgs->recommendation, &pResults->action); | ||
750 | } | ||
751 | |||
752 | static HRESULT BalBaseBAFunctionsProcOnThemeLoaded( | ||
753 | __in IBAFunctions* pBAFunctions, | ||
754 | __in BA_FUNCTIONS_ONTHEMELOADED_ARGS* pArgs, | ||
755 | __inout BA_FUNCTIONS_ONTHEMELOADED_RESULTS* /*pResults*/ | ||
756 | ) | ||
757 | { | ||
758 | return pBAFunctions->OnThemeLoaded(pArgs->hWnd); | ||
759 | } | ||
760 | |||
761 | static HRESULT BalBaseBAFunctionsProcWndProc( | ||
762 | __in IBAFunctions* pBAFunctions, | ||
763 | __in BA_FUNCTIONS_WNDPROC_ARGS* pArgs, | ||
764 | __inout BA_FUNCTIONS_WNDPROC_RESULTS* pResults | ||
765 | ) | ||
766 | { | ||
767 | return pBAFunctions->WndProc(pArgs->hWnd, pArgs->uMsg, pArgs->wParam, pArgs->lParam, &pResults->fProcessed, &pResults->lResult); | ||
768 | } | ||
769 | |||
770 | static HRESULT BalBaseBAFunctionsProcOnThemeControlLoading( | ||
771 | __in IBAFunctions* pBAFunctions, | ||
772 | __in BA_FUNCTIONS_ONTHEMECONTROLLOADING_ARGS* pArgs, | ||
773 | __inout BA_FUNCTIONS_ONTHEMECONTROLLOADING_RESULTS* pResults | ||
774 | ) | ||
775 | { | ||
776 | return pBAFunctions->OnThemeControlLoading(pArgs->wzName, &pResults->fProcessed, &pResults->wId, &pResults->dwAutomaticBehaviorType); | ||
777 | } | ||
778 | |||
779 | static HRESULT BalBaseBAFunctionsProcOnThemeControlWmCommand( | ||
780 | __in IBAFunctions* pBAFunctions, | ||
781 | __in BA_FUNCTIONS_ONTHEMECONTROLWMCOMMAND_ARGS* pArgs, | ||
782 | __inout BA_FUNCTIONS_ONTHEMECONTROLWMCOMMAND_RESULTS* pResults | ||
783 | ) | ||
784 | { | ||
785 | return pBAFunctions->OnThemeControlWmCommand(pArgs->wParam, pArgs->wzName, pArgs->wId, pArgs->hWnd, &pResults->fProcessed, &pResults->lResult); | ||
786 | } | ||
787 | |||
788 | static HRESULT BalBaseBAFunctionsProcOnThemeControlWmNotify( | ||
789 | __in IBAFunctions* pBAFunctions, | ||
790 | __in BA_FUNCTIONS_ONTHEMECONTROLWMNOTIFY_ARGS* pArgs, | ||
791 | __inout BA_FUNCTIONS_ONTHEMECONTROLWMNOTIFY_RESULTS* pResults | ||
792 | ) | ||
793 | { | ||
794 | return pBAFunctions->OnThemeControlWmNotify(pArgs->lParam, pArgs->wzName, pArgs->wId, pArgs->hWnd, &pResults->fProcessed, &pResults->lResult); | ||
795 | } | ||
796 | |||
797 | static HRESULT BalBaseBAFunctionsProcOnThemeControlLoaded( | ||
798 | __in IBAFunctions* pBAFunctions, | ||
799 | __in BA_FUNCTIONS_ONTHEMECONTROLLOADED_ARGS* pArgs, | ||
800 | __inout BA_FUNCTIONS_ONTHEMECONTROLLOADED_RESULTS* pResults | ||
801 | ) | ||
802 | { | ||
803 | return pBAFunctions->OnThemeControlLoaded(pArgs->wzName, pArgs->wId, pArgs->hWnd, &pResults->fProcessed); | ||
804 | } | ||
805 | |||
806 | /******************************************************************* | ||
807 | BalBaseBAFunctionsProc - requires pvContext to be of type IBAFunctions. | ||
808 | Provides a default mapping between the message based BAFunctions interface and | ||
809 | the COM-based BAFunctions interface. | ||
810 | |||
811 | *******************************************************************/ | ||
812 | HRESULT WINAPI BalBaseBAFunctionsProc( | ||
813 | __in BA_FUNCTIONS_MESSAGE message, | ||
814 | __in const LPVOID pvArgs, | ||
815 | __inout LPVOID pvResults, | ||
816 | __in_opt LPVOID pvContext | ||
817 | ) | ||
818 | { | ||
819 | IBAFunctions* pBAFunctions = reinterpret_cast<IBAFunctions*>(pvContext); | ||
820 | HRESULT hr = pBAFunctions->BAFunctionsProc(message, pvArgs, pvResults, pvContext); | ||
821 | |||
822 | if (E_NOTIMPL == hr) | ||
823 | { | ||
824 | switch (message) | ||
825 | { | ||
826 | case BA_FUNCTIONS_MESSAGE_ONCREATE: | ||
827 | // ONCREATE is handled when the function is created, not via callback. | ||
828 | break; | ||
829 | case BA_FUNCTIONS_MESSAGE_ONDESTROY: | ||
830 | hr = BalBaseBAFunctionsProcOnDestroy(pBAFunctions, reinterpret_cast<BA_ONDESTROY_ARGS*>(pvArgs), reinterpret_cast<BA_ONDESTROY_RESULTS*>(pvResults)); | ||
831 | break; | ||
832 | case BA_FUNCTIONS_MESSAGE_ONSTARTUP: | ||
833 | hr = BalBaseBAFunctionsProcOnStartup(pBAFunctions, reinterpret_cast<BA_ONSTARTUP_ARGS*>(pvArgs), reinterpret_cast<BA_ONSTARTUP_RESULTS*>(pvResults)); | ||
834 | break; | ||
835 | case BA_FUNCTIONS_MESSAGE_ONSHUTDOWN: | ||
836 | hr = BalBaseBAFunctionsProcOnShutdown(pBAFunctions, reinterpret_cast<BA_ONSHUTDOWN_ARGS*>(pvArgs), reinterpret_cast<BA_ONSHUTDOWN_RESULTS*>(pvResults)); | ||
837 | break; | ||
838 | case BA_FUNCTIONS_MESSAGE_ONDETECTBEGIN: | ||
839 | hr = BalBaseBAFunctionsProcOnDetectBegin(pBAFunctions, reinterpret_cast<BA_ONDETECTBEGIN_ARGS*>(pvArgs), reinterpret_cast<BA_ONDETECTBEGIN_RESULTS*>(pvResults)); | ||
840 | break; | ||
841 | case BA_FUNCTIONS_MESSAGE_ONDETECTCOMPLETE: | ||
842 | hr = BalBaseBAFunctionsProcOnDetectComplete(pBAFunctions, reinterpret_cast<BA_ONDETECTCOMPLETE_ARGS*>(pvArgs), reinterpret_cast<BA_ONDETECTCOMPLETE_RESULTS*>(pvResults)); | ||
843 | break; | ||
844 | case BA_FUNCTIONS_MESSAGE_ONPLANBEGIN: | ||
845 | hr = BalBaseBAFunctionsProcOnPlanBegin(pBAFunctions, reinterpret_cast<BA_ONPLANBEGIN_ARGS*>(pvArgs), reinterpret_cast<BA_ONPLANBEGIN_RESULTS*>(pvResults)); | ||
846 | break; | ||
847 | case BA_FUNCTIONS_MESSAGE_ONPLANCOMPLETE: | ||
848 | hr = BalBaseBAFunctionsProcOnPlanComplete(pBAFunctions, reinterpret_cast<BA_ONPLANCOMPLETE_ARGS*>(pvArgs), reinterpret_cast<BA_ONPLANCOMPLETE_RESULTS*>(pvResults)); | ||
849 | break; | ||
850 | case BA_FUNCTIONS_MESSAGE_ONDETECTFORWARDCOMPATIBLEBUNDLE: | ||
851 | hr = BalBaseBAFunctionsProcOnDetectForwardCompatibleBundle(pBAFunctions, reinterpret_cast<BA_ONDETECTFORWARDCOMPATIBLEBUNDLE_ARGS*>(pvArgs), reinterpret_cast<BA_ONDETECTFORWARDCOMPATIBLEBUNDLE_RESULTS*>(pvResults)); | ||
852 | break; | ||
853 | case BA_FUNCTIONS_MESSAGE_ONDETECTUPDATEBEGIN: | ||
854 | hr = BalBaseBAFunctionsProcOnDetectUpdateBegin(pBAFunctions, reinterpret_cast<BA_ONDETECTUPDATEBEGIN_ARGS*>(pvArgs), reinterpret_cast<BA_ONDETECTUPDATEBEGIN_RESULTS*>(pvResults)); | ||
855 | break; | ||
856 | case BA_FUNCTIONS_MESSAGE_ONDETECTUPDATE: | ||
857 | hr = BalBaseBAFunctionsProcOnDetectUpdate(pBAFunctions, reinterpret_cast<BA_ONDETECTUPDATE_ARGS*>(pvArgs), reinterpret_cast<BA_ONDETECTUPDATE_RESULTS*>(pvResults)); | ||
858 | break; | ||
859 | case BA_FUNCTIONS_MESSAGE_ONDETECTUPDATECOMPLETE: | ||
860 | hr = BalBaseBAFunctionsProcOnDetectUpdateComplete(pBAFunctions, reinterpret_cast<BA_ONDETECTUPDATECOMPLETE_ARGS*>(pvArgs), reinterpret_cast<BA_ONDETECTUPDATECOMPLETE_RESULTS*>(pvResults)); | ||
861 | break; | ||
862 | case BA_FUNCTIONS_MESSAGE_ONDETECTRELATEDBUNDLE: | ||
863 | hr = BalBaseBAFunctionsProcOnDetectRelatedBundle(pBAFunctions, reinterpret_cast<BA_ONDETECTRELATEDBUNDLE_ARGS*>(pvArgs), reinterpret_cast<BA_ONDETECTRELATEDBUNDLE_RESULTS*>(pvResults)); | ||
864 | break; | ||
865 | case BA_FUNCTIONS_MESSAGE_ONDETECTPACKAGEBEGIN: | ||
866 | hr = BalBaseBAFunctionsProcOnDetectPackageBegin(pBAFunctions, reinterpret_cast<BA_ONDETECTPACKAGEBEGIN_ARGS*>(pvArgs), reinterpret_cast<BA_ONDETECTPACKAGEBEGIN_RESULTS*>(pvResults)); | ||
867 | break; | ||
868 | case BA_FUNCTIONS_MESSAGE_ONDETECTRELATEDMSIPACKAGE: | ||
869 | hr = BalBaseBAFunctionsProcOnDetectRelatedMsiPackage(pBAFunctions, reinterpret_cast<BA_ONDETECTRELATEDMSIPACKAGE_ARGS*>(pvArgs), reinterpret_cast<BA_ONDETECTRELATEDMSIPACKAGE_RESULTS*>(pvResults)); | ||
870 | break; | ||
871 | case BA_FUNCTIONS_MESSAGE_ONDETECTPATCHTARGET: | ||
872 | hr = BalBaseBAFunctionsProcOnDetectPatchTarget(pBAFunctions, reinterpret_cast<BA_ONDETECTPATCHTARGET_ARGS*>(pvArgs), reinterpret_cast<BA_ONDETECTPATCHTARGET_RESULTS*>(pvResults)); | ||
873 | break; | ||
874 | case BA_FUNCTIONS_MESSAGE_ONDETECTMSIFEATURE: | ||
875 | hr = BalBaseBAFunctionsProcOnDetectMsiFeature(pBAFunctions, reinterpret_cast<BA_ONDETECTMSIFEATURE_ARGS*>(pvArgs), reinterpret_cast<BA_ONDETECTMSIFEATURE_RESULTS*>(pvResults)); | ||
876 | break; | ||
877 | case BA_FUNCTIONS_MESSAGE_ONDETECTPACKAGECOMPLETE: | ||
878 | hr = BalBaseBAFunctionsProcOnDetectPackageComplete(pBAFunctions, reinterpret_cast<BA_ONDETECTPACKAGECOMPLETE_ARGS*>(pvArgs), reinterpret_cast<BA_ONDETECTPACKAGECOMPLETE_RESULTS*>(pvResults)); | ||
879 | break; | ||
880 | case BA_FUNCTIONS_MESSAGE_ONPLANRELATEDBUNDLE: | ||
881 | hr = BalBaseBAFunctionsProcOnPlanRelatedBundle(pBAFunctions, reinterpret_cast<BA_ONPLANRELATEDBUNDLE_ARGS*>(pvArgs), reinterpret_cast<BA_ONPLANRELATEDBUNDLE_RESULTS*>(pvResults)); | ||
882 | break; | ||
883 | case BA_FUNCTIONS_MESSAGE_ONPLANPACKAGEBEGIN: | ||
884 | hr = BalBaseBAFunctionsProcOnPlanPackageBegin(pBAFunctions, reinterpret_cast<BA_ONPLANPACKAGEBEGIN_ARGS*>(pvArgs), reinterpret_cast<BA_ONPLANPACKAGEBEGIN_RESULTS*>(pvResults)); | ||
885 | break; | ||
886 | case BA_FUNCTIONS_MESSAGE_ONPLANPATCHTARGET: | ||
887 | hr = BalBaseBAFunctionsProcOnPlanPatchTarget(pBAFunctions, reinterpret_cast<BA_ONPLANPATCHTARGET_ARGS*>(pvArgs), reinterpret_cast<BA_ONPLANPATCHTARGET_RESULTS*>(pvResults)); | ||
888 | break; | ||
889 | case BA_FUNCTIONS_MESSAGE_ONPLANMSIFEATURE: | ||
890 | hr = BalBaseBAFunctionsProcOnPlanMsiFeature(pBAFunctions, reinterpret_cast<BA_ONPLANMSIFEATURE_ARGS*>(pvArgs), reinterpret_cast<BA_ONPLANMSIFEATURE_RESULTS*>(pvResults)); | ||
891 | break; | ||
892 | case BA_FUNCTIONS_MESSAGE_ONPLANPACKAGECOMPLETE: | ||
893 | hr = BalBaseBAFunctionsProcOnPlanPackageComplete(pBAFunctions, reinterpret_cast<BA_ONPLANPACKAGECOMPLETE_ARGS*>(pvArgs), reinterpret_cast<BA_ONPLANPACKAGECOMPLETE_RESULTS*>(pvResults)); | ||
894 | break; | ||
895 | case BA_FUNCTIONS_MESSAGE_ONAPPLYBEGIN: | ||
896 | hr = BalBaseBAFunctionsProcOnApplyBegin(pBAFunctions, reinterpret_cast<BA_ONAPPLYBEGIN_ARGS*>(pvArgs), reinterpret_cast<BA_ONAPPLYBEGIN_RESULTS*>(pvResults)); | ||
897 | break; | ||
898 | case BA_FUNCTIONS_MESSAGE_ONELEVATEBEGIN: | ||
899 | hr = BalBaseBAFunctionsProcOnElevateBegin(pBAFunctions, reinterpret_cast<BA_ONELEVATEBEGIN_ARGS*>(pvArgs), reinterpret_cast<BA_ONELEVATEBEGIN_RESULTS*>(pvResults)); | ||
900 | break; | ||
901 | case BA_FUNCTIONS_MESSAGE_ONELEVATECOMPLETE: | ||
902 | hr = BalBaseBAFunctionsProcOnElevateComplete(pBAFunctions, reinterpret_cast<BA_ONELEVATECOMPLETE_ARGS*>(pvArgs), reinterpret_cast<BA_ONELEVATECOMPLETE_RESULTS*>(pvResults)); | ||
903 | break; | ||
904 | case BA_FUNCTIONS_MESSAGE_ONPROGRESS: | ||
905 | hr = BalBaseBAFunctionsProcOnProgress(pBAFunctions, reinterpret_cast<BA_ONPROGRESS_ARGS*>(pvArgs), reinterpret_cast<BA_ONPROGRESS_RESULTS*>(pvResults)); | ||
906 | break; | ||
907 | case BA_FUNCTIONS_MESSAGE_ONERROR: | ||
908 | hr = BalBaseBAFunctionsProcOnError(pBAFunctions, reinterpret_cast<BA_ONERROR_ARGS*>(pvArgs), reinterpret_cast<BA_ONERROR_RESULTS*>(pvResults)); | ||
909 | break; | ||
910 | case BA_FUNCTIONS_MESSAGE_ONREGISTERBEGIN: | ||
911 | hr = BalBaseBAFunctionsProcOnRegisterBegin(pBAFunctions, reinterpret_cast<BA_ONREGISTERBEGIN_ARGS*>(pvArgs), reinterpret_cast<BA_ONREGISTERBEGIN_RESULTS*>(pvResults)); | ||
912 | break; | ||
913 | case BA_FUNCTIONS_MESSAGE_ONREGISTERCOMPLETE: | ||
914 | hr = BalBaseBAFunctionsProcOnRegisterComplete(pBAFunctions, reinterpret_cast<BA_ONREGISTERCOMPLETE_ARGS*>(pvArgs), reinterpret_cast<BA_ONREGISTERCOMPLETE_RESULTS*>(pvResults)); | ||
915 | break; | ||
916 | case BA_FUNCTIONS_MESSAGE_ONCACHEBEGIN: | ||
917 | hr = BalBaseBAFunctionsProcOnCacheBegin(pBAFunctions, reinterpret_cast<BA_ONCACHEBEGIN_ARGS*>(pvArgs), reinterpret_cast<BA_ONCACHEBEGIN_RESULTS*>(pvResults)); | ||
918 | break; | ||
919 | case BA_FUNCTIONS_MESSAGE_ONCACHEPACKAGEBEGIN: | ||
920 | hr = BalBaseBAFunctionsProcOnCachePackageBegin(pBAFunctions, reinterpret_cast<BA_ONCACHEPACKAGEBEGIN_ARGS*>(pvArgs), reinterpret_cast<BA_ONCACHEPACKAGEBEGIN_RESULTS*>(pvResults)); | ||
921 | break; | ||
922 | case BA_FUNCTIONS_MESSAGE_ONCACHEACQUIREBEGIN: | ||
923 | hr = BalBaseBAFunctionsProcOnCacheAcquireBegin(pBAFunctions, reinterpret_cast<BA_ONCACHEACQUIREBEGIN_ARGS*>(pvArgs), reinterpret_cast<BA_ONCACHEACQUIREBEGIN_RESULTS*>(pvResults)); | ||
924 | break; | ||
925 | case BA_FUNCTIONS_MESSAGE_ONCACHEACQUIREPROGRESS: | ||
926 | hr = BalBaseBAFunctionsProcOnCacheAcquireProgress(pBAFunctions, reinterpret_cast<BA_ONCACHEACQUIREPROGRESS_ARGS*>(pvArgs), reinterpret_cast<BA_ONCACHEACQUIREPROGRESS_RESULTS*>(pvResults)); | ||
927 | break; | ||
928 | case BA_FUNCTIONS_MESSAGE_ONCACHEACQUIRERESOLVING: | ||
929 | hr = BalBaseBAFunctionsProcOnCacheAcquireResolving(pBAFunctions, reinterpret_cast<BA_ONCACHEACQUIRERESOLVING_ARGS*>(pvArgs), reinterpret_cast<BA_ONCACHEACQUIRERESOLVING_RESULTS*>(pvResults)); | ||
930 | break; | ||
931 | case BA_FUNCTIONS_MESSAGE_ONCACHEACQUIRECOMPLETE: | ||
932 | hr = BalBaseBAFunctionsProcOnCacheAcquireComplete(pBAFunctions, reinterpret_cast<BA_ONCACHEACQUIRECOMPLETE_ARGS*>(pvArgs), reinterpret_cast<BA_ONCACHEACQUIRECOMPLETE_RESULTS*>(pvResults)); | ||
933 | break; | ||
934 | case BA_FUNCTIONS_MESSAGE_ONCACHEVERIFYBEGIN: | ||
935 | hr = BalBaseBAFunctionsProcOnCacheVerifyBegin(pBAFunctions, reinterpret_cast<BA_ONCACHEVERIFYBEGIN_ARGS*>(pvArgs), reinterpret_cast<BA_ONCACHEVERIFYBEGIN_RESULTS*>(pvResults)); | ||
936 | break; | ||
937 | case BA_FUNCTIONS_MESSAGE_ONCACHEVERIFYPROGRESS: | ||
938 | hr = BalBaseBAFunctionsProcOnCacheVerifyProgress(pBAFunctions, reinterpret_cast<BA_ONCACHEVERIFYPROGRESS_ARGS*>(pvArgs), reinterpret_cast<BA_ONCACHEVERIFYPROGRESS_RESULTS*>(pvResults)); | ||
939 | break; | ||
940 | case BA_FUNCTIONS_MESSAGE_ONCACHEVERIFYCOMPLETE: | ||
941 | hr = BalBaseBAFunctionsProcOnCacheVerifyComplete(pBAFunctions, reinterpret_cast<BA_ONCACHEVERIFYCOMPLETE_ARGS*>(pvArgs), reinterpret_cast<BA_ONCACHEVERIFYCOMPLETE_RESULTS*>(pvResults)); | ||
942 | break; | ||
943 | case BA_FUNCTIONS_MESSAGE_ONCACHEPACKAGECOMPLETE: | ||
944 | hr = BalBaseBAFunctionsProcOnCachePackageComplete(pBAFunctions, reinterpret_cast<BA_ONCACHEPACKAGECOMPLETE_ARGS*>(pvArgs), reinterpret_cast<BA_ONCACHEPACKAGECOMPLETE_RESULTS*>(pvResults)); | ||
945 | break; | ||
946 | case BA_FUNCTIONS_MESSAGE_ONCACHECOMPLETE: | ||
947 | hr = BalBaseBAFunctionsProcOnCacheComplete(pBAFunctions, reinterpret_cast<BA_ONCACHECOMPLETE_ARGS*>(pvArgs), reinterpret_cast<BA_ONCACHECOMPLETE_RESULTS*>(pvResults)); | ||
948 | break; | ||
949 | case BA_FUNCTIONS_MESSAGE_ONEXECUTEBEGIN: | ||
950 | hr = BalBaseBAFunctionsProcOnExecuteBegin(pBAFunctions, reinterpret_cast<BA_ONEXECUTEBEGIN_ARGS*>(pvArgs), reinterpret_cast<BA_ONEXECUTEBEGIN_RESULTS*>(pvResults)); | ||
951 | break; | ||
952 | case BA_FUNCTIONS_MESSAGE_ONEXECUTEPACKAGEBEGIN: | ||
953 | hr = BalBaseBAFunctionsProcOnExecutePackageBegin(pBAFunctions, reinterpret_cast<BA_ONEXECUTEPACKAGEBEGIN_ARGS*>(pvArgs), reinterpret_cast<BA_ONEXECUTEPACKAGEBEGIN_RESULTS*>(pvResults)); | ||
954 | break; | ||
955 | case BA_FUNCTIONS_MESSAGE_ONEXECUTEPATCHTARGET: | ||
956 | hr = BalBaseBAFunctionsProcOnExecutePatchTarget(pBAFunctions, reinterpret_cast<BA_ONEXECUTEPATCHTARGET_ARGS*>(pvArgs), reinterpret_cast<BA_ONEXECUTEPATCHTARGET_RESULTS*>(pvResults)); | ||
957 | break; | ||
958 | case BA_FUNCTIONS_MESSAGE_ONEXECUTEPROGRESS: | ||
959 | hr = BalBaseBAFunctionsProcOnExecuteProgress(pBAFunctions, reinterpret_cast<BA_ONEXECUTEPROGRESS_ARGS*>(pvArgs), reinterpret_cast<BA_ONEXECUTEPROGRESS_RESULTS*>(pvResults)); | ||
960 | break; | ||
961 | case BA_FUNCTIONS_MESSAGE_ONEXECUTEMSIMESSAGE: | ||
962 | hr = BalBaseBAFunctionsProcOnExecuteMsiMessage(pBAFunctions, reinterpret_cast<BA_ONEXECUTEMSIMESSAGE_ARGS*>(pvArgs), reinterpret_cast<BA_ONEXECUTEMSIMESSAGE_RESULTS*>(pvResults)); | ||
963 | break; | ||
964 | case BA_FUNCTIONS_MESSAGE_ONEXECUTEFILESINUSE: | ||
965 | hr = BalBaseBAFunctionsProcOnExecuteFilesInUse(pBAFunctions, reinterpret_cast<BA_ONEXECUTEFILESINUSE_ARGS*>(pvArgs), reinterpret_cast<BA_ONEXECUTEFILESINUSE_RESULTS*>(pvResults)); | ||
966 | break; | ||
967 | case BA_FUNCTIONS_MESSAGE_ONEXECUTEPACKAGECOMPLETE: | ||
968 | hr = BalBaseBAFunctionsProcOnExecutePackageComplete(pBAFunctions, reinterpret_cast<BA_ONEXECUTEPACKAGECOMPLETE_ARGS*>(pvArgs), reinterpret_cast<BA_ONEXECUTEPACKAGECOMPLETE_RESULTS*>(pvResults)); | ||
969 | break; | ||
970 | case BA_FUNCTIONS_MESSAGE_ONEXECUTECOMPLETE: | ||
971 | hr = BalBaseBAFunctionsProcOnExecuteComplete(pBAFunctions, reinterpret_cast<BA_ONEXECUTECOMPLETE_ARGS*>(pvArgs), reinterpret_cast<BA_ONEXECUTECOMPLETE_RESULTS*>(pvResults)); | ||
972 | break; | ||
973 | case BA_FUNCTIONS_MESSAGE_ONUNREGISTERBEGIN: | ||
974 | hr = BalBaseBAFunctionsProcOnUnregisterBegin(pBAFunctions, reinterpret_cast<BA_ONUNREGISTERBEGIN_ARGS*>(pvArgs), reinterpret_cast<BA_ONUNREGISTERBEGIN_RESULTS*>(pvResults)); | ||
975 | break; | ||
976 | case BA_FUNCTIONS_MESSAGE_ONUNREGISTERCOMPLETE: | ||
977 | hr = BalBaseBAFunctionsProcOnUnregisterComplete(pBAFunctions, reinterpret_cast<BA_ONUNREGISTERCOMPLETE_ARGS*>(pvArgs), reinterpret_cast<BA_ONUNREGISTERCOMPLETE_RESULTS*>(pvResults)); | ||
978 | break; | ||
979 | case BA_FUNCTIONS_MESSAGE_ONAPPLYCOMPLETE: | ||
980 | hr = BalBaseBAFunctionsProcOnApplyComplete(pBAFunctions, reinterpret_cast<BA_ONAPPLYCOMPLETE_ARGS*>(pvArgs), reinterpret_cast<BA_ONAPPLYCOMPLETE_RESULTS*>(pvResults)); | ||
981 | break; | ||
982 | case BA_FUNCTIONS_MESSAGE_ONLAUNCHAPPROVEDEXEBEGIN: | ||
983 | hr = BalBaseBAFunctionsProcOnLaunchApprovedExeBegin(pBAFunctions, reinterpret_cast<BA_ONLAUNCHAPPROVEDEXEBEGIN_ARGS*>(pvArgs), reinterpret_cast<BA_ONLAUNCHAPPROVEDEXEBEGIN_RESULTS*>(pvResults)); | ||
984 | break; | ||
985 | case BA_FUNCTIONS_MESSAGE_ONLAUNCHAPPROVEDEXECOMPLETE: | ||
986 | hr = BalBaseBAFunctionsProcOnLaunchApprovedExeComplete(pBAFunctions, reinterpret_cast<BA_ONLAUNCHAPPROVEDEXECOMPLETE_ARGS*>(pvArgs), reinterpret_cast<BA_ONLAUNCHAPPROVEDEXECOMPLETE_RESULTS*>(pvResults)); | ||
987 | break; | ||
988 | case BA_FUNCTIONS_MESSAGE_ONPLANMSIPACKAGE: | ||
989 | hr = BalBaseBAFunctionsProcOnPlanMsiPackage(pBAFunctions, reinterpret_cast<BA_ONPLANMSIPACKAGE_ARGS*>(pvArgs), reinterpret_cast<BA_ONPLANMSIPACKAGE_RESULTS*>(pvResults)); | ||
990 | break; | ||
991 | case BA_FUNCTIONS_MESSAGE_ONBEGINMSITRANSACTIONBEGIN: | ||
992 | hr = BalBaseBAFunctionsProcOnBeginMsiTransactionBegin(pBAFunctions, reinterpret_cast<BA_ONBEGINMSITRANSACTIONBEGIN_ARGS*>(pvArgs), reinterpret_cast<BA_ONBEGINMSITRANSACTIONBEGIN_RESULTS*>(pvResults)); | ||
993 | break; | ||
994 | case BA_FUNCTIONS_MESSAGE_ONBEGINMSITRANSACTIONCOMPLETE: | ||
995 | hr = BalBaseBAFunctionsProcOnBeginMsiTransactionComplete(pBAFunctions, reinterpret_cast<BA_ONBEGINMSITRANSACTIONCOMPLETE_ARGS*>(pvArgs), reinterpret_cast<BA_ONBEGINMSITRANSACTIONCOMPLETE_RESULTS*>(pvResults)); | ||
996 | break; | ||
997 | case BA_FUNCTIONS_MESSAGE_ONCOMMITMSITRANSACTIONBEGIN: | ||
998 | hr = BalBaseBAFunctionsProcOnCommitMsiTransactionBegin(pBAFunctions, reinterpret_cast<BA_ONCOMMITMSITRANSACTIONBEGIN_ARGS*>(pvArgs), reinterpret_cast<BA_ONCOMMITMSITRANSACTIONBEGIN_RESULTS*>(pvResults)); | ||
999 | break; | ||
1000 | case BA_FUNCTIONS_MESSAGE_ONCOMMITMSITRANSACTIONCOMPLETE: | ||
1001 | hr = BalBaseBAFunctionsProcOnCommitMsiTransactionComplete(pBAFunctions, reinterpret_cast<BA_ONCOMMITMSITRANSACTIONCOMPLETE_ARGS*>(pvArgs), reinterpret_cast<BA_ONCOMMITMSITRANSACTIONCOMPLETE_RESULTS*>(pvResults)); | ||
1002 | break; | ||
1003 | case BA_FUNCTIONS_MESSAGE_ONROLLBACKMSITRANSACTIONBEGIN: | ||
1004 | hr = BalBaseBAFunctionsProcOnRollbackMsiTransactionBegin(pBAFunctions, reinterpret_cast<BA_ONROLLBACKMSITRANSACTIONBEGIN_ARGS*>(pvArgs), reinterpret_cast<BA_ONROLLBACKMSITRANSACTIONBEGIN_RESULTS*>(pvResults)); | ||
1005 | break; | ||
1006 | case BA_FUNCTIONS_MESSAGE_ONROLLBACKMSITRANSACTIONCOMPLETE: | ||
1007 | hr = BalBaseBAFunctionsProcOnRollbackMsiTransactionComplete(pBAFunctions, reinterpret_cast<BA_ONROLLBACKMSITRANSACTIONCOMPLETE_ARGS*>(pvArgs), reinterpret_cast<BA_ONROLLBACKMSITRANSACTIONCOMPLETE_RESULTS*>(pvResults)); | ||
1008 | case BA_FUNCTIONS_MESSAGE_ONPAUSEAUTOMATICUPDATESBEGIN: | ||
1009 | hr = BalBaseBAFunctionsProcOnPauseAutomaticUpdatesBegin(pBAFunctions, reinterpret_cast<BA_ONPAUSEAUTOMATICUPDATESBEGIN_ARGS*>(pvArgs), reinterpret_cast<BA_ONPAUSEAUTOMATICUPDATESBEGIN_RESULTS*>(pvResults)); | ||
1010 | break; | ||
1011 | case BA_FUNCTIONS_MESSAGE_ONPAUSEAUTOMATICUPDATESCOMPLETE: | ||
1012 | hr = BalBaseBAFunctionsProcOnPauseAutomaticUpdatesComplete(pBAFunctions, reinterpret_cast<BA_ONPAUSEAUTOMATICUPDATESCOMPLETE_ARGS*>(pvArgs), reinterpret_cast<BA_ONPAUSEAUTOMATICUPDATESCOMPLETE_RESULTS*>(pvResults)); | ||
1013 | break; | ||
1014 | case BA_FUNCTIONS_MESSAGE_ONSYSTEMRESTOREPOINTBEGIN: | ||
1015 | hr = BalBaseBAFunctionsProcOnSystemRestorePointBegin(pBAFunctions, reinterpret_cast<BA_ONSYSTEMRESTOREPOINTBEGIN_ARGS*>(pvArgs), reinterpret_cast<BA_ONSYSTEMRESTOREPOINTBEGIN_RESULTS*>(pvResults)); | ||
1016 | break; | ||
1017 | case BA_FUNCTIONS_MESSAGE_ONSYSTEMRESTOREPOINTCOMPLETE: | ||
1018 | hr = BalBaseBAFunctionsProcOnSystemRestorePointComplete(pBAFunctions, reinterpret_cast<BA_ONSYSTEMRESTOREPOINTCOMPLETE_ARGS*>(pvArgs), reinterpret_cast<BA_ONSYSTEMRESTOREPOINTCOMPLETE_RESULTS*>(pvResults)); | ||
1019 | break; | ||
1020 | case BA_FUNCTIONS_MESSAGE_ONPLANNEDPACKAGE: | ||
1021 | hr = BalBaseBAFunctionsProcOnPlannedPackage(pBAFunctions, reinterpret_cast<BA_ONPLANNEDPACKAGE_ARGS*>(pvArgs), reinterpret_cast<BA_ONPLANNEDPACKAGE_RESULTS*>(pvResults)); | ||
1022 | break; | ||
1023 | case BA_FUNCTIONS_MESSAGE_ONPLANFORWARDCOMPATIBLEBUNDLE: | ||
1024 | hr = BalBaseBAFunctionsProcOnPlanForwardCompatibleBundle(pBAFunctions, reinterpret_cast<BA_ONPLANFORWARDCOMPATIBLEBUNDLE_ARGS*>(pvArgs), reinterpret_cast<BA_ONPLANFORWARDCOMPATIBLEBUNDLE_RESULTS*>(pvResults)); | ||
1025 | break; | ||
1026 | case BA_FUNCTIONS_MESSAGE_ONCACHECONTAINERORPAYLOADVERIFYBEGIN: | ||
1027 | hr = BalBaseBAFunctionsProcOnCacheContainerOrPayloadVerifyBegin(pBAFunctions, reinterpret_cast<BA_ONCACHECONTAINERORPAYLOADVERIFYBEGIN_ARGS*>(pvArgs), reinterpret_cast<BA_ONCACHECONTAINERORPAYLOADVERIFYBEGIN_RESULTS*>(pvResults)); | ||
1028 | break; | ||
1029 | case BA_FUNCTIONS_MESSAGE_ONCACHECONTAINERORPAYLOADVERIFYPROGRESS: | ||
1030 | hr = BalBaseBAFunctionsProcOnCacheContainerOrPayloadVerifyProgress(pBAFunctions, reinterpret_cast<BA_ONCACHECONTAINERORPAYLOADVERIFYPROGRESS_ARGS*>(pvArgs), reinterpret_cast<BA_ONCACHECONTAINERORPAYLOADVERIFYPROGRESS_RESULTS*>(pvResults)); | ||
1031 | break; | ||
1032 | case BA_FUNCTIONS_MESSAGE_ONCACHECONTAINERORPAYLOADVERIFYCOMPLETE: | ||
1033 | hr = BalBaseBAFunctionsProcOnCacheContainerOrPayloadVerifyComplete(pBAFunctions, reinterpret_cast<BA_ONCACHECONTAINERORPAYLOADVERIFYCOMPLETE_ARGS*>(pvArgs), reinterpret_cast<BA_ONCACHECONTAINERORPAYLOADVERIFYCOMPLETE_RESULTS*>(pvResults)); | ||
1034 | break; | ||
1035 | case BA_FUNCTIONS_MESSAGE_ONCACHEPAYLOADEXTRACTBEGIN: | ||
1036 | hr = BalBaseBAFunctionsProcOnCachePayloadExtractBegin(pBAFunctions, reinterpret_cast<BA_ONCACHEPAYLOADEXTRACTBEGIN_ARGS*>(pvArgs), reinterpret_cast<BA_ONCACHEPAYLOADEXTRACTBEGIN_RESULTS*>(pvResults)); | ||
1037 | break; | ||
1038 | case BA_FUNCTIONS_MESSAGE_ONCACHEPAYLOADEXTRACTPROGRESS: | ||
1039 | hr = BalBaseBAFunctionsProcOnCachePayloadExtractProgress(pBAFunctions, reinterpret_cast<BA_ONCACHEPAYLOADEXTRACTPROGRESS_ARGS*>(pvArgs), reinterpret_cast<BA_ONCACHEPAYLOADEXTRACTPROGRESS_RESULTS*>(pvResults)); | ||
1040 | break; | ||
1041 | case BA_FUNCTIONS_MESSAGE_ONCACHEPAYLOADEXTRACTCOMPLETE: | ||
1042 | hr = BalBaseBAFunctionsProcOnCachePayloadExtractComplete(pBAFunctions, reinterpret_cast<BA_ONCACHEPAYLOADEXTRACTCOMPLETE_ARGS*>(pvArgs), reinterpret_cast<BA_ONCACHEPAYLOADEXTRACTCOMPLETE_RESULTS*>(pvResults)); | ||
1043 | break; | ||
1044 | case BA_FUNCTIONS_MESSAGE_ONPLANROLLBACKBOUNDARY: | ||
1045 | hr = BalBaseBAFunctionsProcOnPlanRollbackBoundary(pBAFunctions, reinterpret_cast<BA_ONPLANROLLBACKBOUNDARY_ARGS*>(pvArgs), reinterpret_cast<BA_ONPLANROLLBACKBOUNDARY_RESULTS*>(pvResults)); | ||
1046 | break; | ||
1047 | case BA_FUNCTIONS_MESSAGE_ONDETECTCOMPATIBLEMSIPACKAGE: | ||
1048 | hr = BalBaseBAFunctionsProcOnDetectCompatiblePackage(pBAFunctions, reinterpret_cast<BA_ONDETECTCOMPATIBLEMSIPACKAGE_ARGS*>(pvArgs), reinterpret_cast<BA_ONDETECTCOMPATIBLEMSIPACKAGE_RESULTS*>(pvResults)); | ||
1049 | break; | ||
1050 | case BA_FUNCTIONS_MESSAGE_ONPLANCOMPATIBLEMSIPACKAGEBEGIN: | ||
1051 | hr = BalBaseBAFunctionsProcOnPlanCompatibleMsiPackageBegin(pBAFunctions, reinterpret_cast<BA_ONPLANCOMPATIBLEMSIPACKAGEBEGIN_ARGS*>(pvArgs), reinterpret_cast<BA_ONPLANCOMPATIBLEMSIPACKAGEBEGIN_RESULTS*>(pvResults)); | ||
1052 | break; | ||
1053 | case BA_FUNCTIONS_MESSAGE_ONPLANCOMPATIBLEMSIPACKAGECOMPLETE: | ||
1054 | hr = BalBaseBAFunctionsProcOnPlanCompatibleMsiPackageComplete(pBAFunctions, reinterpret_cast<BA_ONPLANCOMPATIBLEMSIPACKAGECOMPLETE_ARGS*>(pvArgs), reinterpret_cast<BA_ONPLANCOMPATIBLEMSIPACKAGECOMPLETE_RESULTS*>(pvResults)); | ||
1055 | break; | ||
1056 | case BA_FUNCTIONS_MESSAGE_ONPLANNEDCOMPATIBLEPACKAGE: | ||
1057 | hr = BalBaseBAFunctionsProcOnPlannedCompatiblePackage(pBAFunctions, reinterpret_cast<BA_ONPLANNEDCOMPATIBLEPACKAGE_ARGS*>(pvArgs), reinterpret_cast<BA_ONPLANNEDCOMPATIBLEPACKAGE_RESULTS*>(pvResults)); | ||
1058 | break; | ||
1059 | case BA_FUNCTIONS_MESSAGE_ONPLANRESTORERELATEDBUNDLE: | ||
1060 | hr = BalBaseBAFunctionsProcOnPlanRestoreRelatedBundle(pBAFunctions, reinterpret_cast<BA_ONPLANRESTORERELATEDBUNDLE_ARGS*>(pvArgs), reinterpret_cast<BA_ONPLANRESTORERELATEDBUNDLE_RESULTS*>(pvResults)); | ||
1061 | break; | ||
1062 | case BA_FUNCTIONS_MESSAGE_ONPLANRELATEDBUNDLETYPE: | ||
1063 | hr = BalBaseBAFunctionsProcOnPlanRelatedBundleType(pBAFunctions, reinterpret_cast<BA_ONPLANRELATEDBUNDLETYPE_ARGS*>(pvArgs), reinterpret_cast<BA_ONPLANRELATEDBUNDLETYPE_RESULTS*>(pvResults)); | ||
1064 | break; | ||
1065 | case BA_FUNCTIONS_MESSAGE_ONAPPLYDOWNGRADE: | ||
1066 | hr = BalBaseBAFunctionsProcOnApplyDowngrade(pBAFunctions, reinterpret_cast<BA_ONAPPLYDOWNGRADE_ARGS*>(pvArgs), reinterpret_cast<BA_ONAPPLYDOWNGRADE_RESULTS*>(pvResults)); | ||
1067 | break; | ||
1068 | case BA_FUNCTIONS_MESSAGE_ONEXECUTEPROCESSCANCEL: | ||
1069 | hr = BalBaseBAFunctionsProcOnExecuteProcessCancel(pBAFunctions, reinterpret_cast<BA_ONEXECUTEPROCESSCANCEL_ARGS*>(pvArgs), reinterpret_cast<BA_ONEXECUTEPROCESSCANCEL_RESULTS*>(pvResults)); | ||
1070 | break; | ||
1071 | case BA_FUNCTIONS_MESSAGE_ONDETECTRELATEDBUNDLEPACKAGE: | ||
1072 | hr = BalBaseBAFunctionsProcOnDetectRelatedBundlePackage(pBAFunctions, reinterpret_cast<BA_ONDETECTRELATEDBUNDLEPACKAGE_ARGS*>(pvArgs), reinterpret_cast<BA_ONDETECTRELATEDBUNDLEPACKAGE_RESULTS*>(pvResults)); | ||
1073 | break; | ||
1074 | case BA_FUNCTIONS_MESSAGE_ONCACHEPACKAGENONVITALVALIDATIONFAILURE: | ||
1075 | hr = BalBaseBAFunctionsProcOnCachePackageNonVitalValidationFailure(pBAFunctions, reinterpret_cast<BA_ONCACHEPACKAGENONVITALVALIDATIONFAILURE_ARGS*>(pvArgs), reinterpret_cast<BA_ONCACHEPACKAGENONVITALVALIDATIONFAILURE_RESULTS*>(pvResults)); | ||
1076 | break; | ||
1077 | case BA_FUNCTIONS_MESSAGE_ONTHEMELOADED: | ||
1078 | hr = BalBaseBAFunctionsProcOnThemeLoaded(pBAFunctions, reinterpret_cast<BA_FUNCTIONS_ONTHEMELOADED_ARGS*>(pvArgs), reinterpret_cast<BA_FUNCTIONS_ONTHEMELOADED_RESULTS*>(pvResults)); | ||
1079 | break; | ||
1080 | case BA_FUNCTIONS_MESSAGE_WNDPROC: | ||
1081 | hr = BalBaseBAFunctionsProcWndProc(pBAFunctions, reinterpret_cast<BA_FUNCTIONS_WNDPROC_ARGS*>(pvArgs), reinterpret_cast<BA_FUNCTIONS_WNDPROC_RESULTS*>(pvResults)); | ||
1082 | break; | ||
1083 | case BA_FUNCTIONS_MESSAGE_ONTHEMECONTROLLOADING: | ||
1084 | hr = BalBaseBAFunctionsProcOnThemeControlLoading(pBAFunctions, reinterpret_cast<BA_FUNCTIONS_ONTHEMECONTROLLOADING_ARGS*>(pvArgs), reinterpret_cast<BA_FUNCTIONS_ONTHEMECONTROLLOADING_RESULTS*>(pvResults)); | ||
1085 | break; | ||
1086 | case BA_FUNCTIONS_MESSAGE_ONTHEMECONTROLWMCOMMAND: | ||
1087 | hr = BalBaseBAFunctionsProcOnThemeControlWmCommand(pBAFunctions, reinterpret_cast<BA_FUNCTIONS_ONTHEMECONTROLWMCOMMAND_ARGS*>(pvArgs), reinterpret_cast<BA_FUNCTIONS_ONTHEMECONTROLWMCOMMAND_RESULTS*>(pvResults)); | ||
1088 | break; | ||
1089 | case BA_FUNCTIONS_MESSAGE_ONTHEMECONTROLWMNOTIFY: | ||
1090 | hr = BalBaseBAFunctionsProcOnThemeControlWmNotify(pBAFunctions, reinterpret_cast<BA_FUNCTIONS_ONTHEMECONTROLWMNOTIFY_ARGS*>(pvArgs), reinterpret_cast<BA_FUNCTIONS_ONTHEMECONTROLWMNOTIFY_RESULTS*>(pvResults)); | ||
1091 | break; | ||
1092 | case BA_FUNCTIONS_MESSAGE_ONTHEMECONTROLLOADED: | ||
1093 | hr = BalBaseBAFunctionsProcOnThemeControlLoaded(pBAFunctions, reinterpret_cast<BA_FUNCTIONS_ONTHEMECONTROLLOADED_ARGS*>(pvArgs), reinterpret_cast<BA_FUNCTIONS_ONTHEMECONTROLLOADED_RESULTS*>(pvResults)); | ||
1094 | break; | ||
1095 | } | ||
1096 | } | ||
1097 | |||
1098 | return hr; | ||
1099 | } | ||