aboutsummaryrefslogtreecommitdiff
path: root/src/api/burn/balutil
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/burn/balutil')
-rw-r--r--src/api/burn/balutil/BalBootstrapperEngine.cpp8
-rw-r--r--src/api/burn/balutil/balutil.cpp10
-rw-r--r--src/api/burn/balutil/inc/BootstrapperApplicationBase.h14
-rw-r--r--src/api/burn/balutil/inc/IBootstrapperApplication.h14
-rw-r--r--src/api/burn/balutil/inc/IBootstrapperEngine.h2
-rw-r--r--src/api/burn/balutil/inc/balutil.h4
-rw-r--r--src/api/burn/balutil/msg.cpp78
7 files changed, 65 insertions, 65 deletions
diff --git a/src/api/burn/balutil/BalBootstrapperEngine.cpp b/src/api/burn/balutil/BalBootstrapperEngine.cpp
index 28608cb9..61e7e31b 100644
--- a/src/api/burn/balutil/BalBootstrapperEngine.cpp
+++ b/src/api/burn/balutil/BalBootstrapperEngine.cpp
@@ -319,7 +319,7 @@ public: // IBootstrapperEngine
319 } 319 }
320 320
321 virtual STDMETHODIMP GetRelatedBundleVariable( 321 virtual STDMETHODIMP GetRelatedBundleVariable(
322 __in_z LPCWSTR wzBundleId, 322 __in_z LPCWSTR wzBundleCode,
323 __in_z LPCWSTR wzVariable, 323 __in_z LPCWSTR wzVariable,
324 __out_ecount_opt(*pcchValue) LPWSTR wzValue, 324 __out_ecount_opt(*pcchValue) LPWSTR wzValue,
325 __inout SIZE_T* pcchValue 325 __inout SIZE_T* pcchValue
@@ -338,7 +338,7 @@ public: // IBootstrapperEngine
338 338
339 // Init send structs. 339 // Init send structs.
340 args.dwApiVersion = WIX_5_BOOTSTRAPPER_APPLICATION_API_VERSION; 340 args.dwApiVersion = WIX_5_BOOTSTRAPPER_APPLICATION_API_VERSION;
341 args.wzBundleId = wzBundleId; 341 args.wzBundleCode = wzBundleCode;
342 args.wzVariable = wzVariable; 342 args.wzVariable = wzVariable;
343 343
344 results.dwApiVersion = WIX_5_BOOTSTRAPPER_APPLICATION_API_VERSION; 344 results.dwApiVersion = WIX_5_BOOTSTRAPPER_APPLICATION_API_VERSION;
@@ -349,8 +349,8 @@ public: // IBootstrapperEngine
349 hr = BuffWriteNumberToBuffer(&bufferArgs, args.dwApiVersion); 349 hr = BuffWriteNumberToBuffer(&bufferArgs, args.dwApiVersion);
350 ExitOnFailure(hr, "Failed to write API version of GetRelatedBundleVariable args."); 350 ExitOnFailure(hr, "Failed to write API version of GetRelatedBundleVariable args.");
351 351
352 hr = BuffWriteStringToBuffer(&bufferArgs, args.wzBundleId); 352 hr = BuffWriteStringToBuffer(&bufferArgs, args.wzBundleCode);
353 ExitOnFailure(hr, "Failed to write bundle id of GetRelatedBundleVariable args."); 353 ExitOnFailure(hr, "Failed to write bundle code of GetRelatedBundleVariable args.");
354 354
355 hr = BuffWriteStringToBuffer(&bufferArgs, args.wzVariable); 355 hr = BuffWriteStringToBuffer(&bufferArgs, args.wzVariable);
356 ExitOnFailure(hr, "Failed to write variable name of GetRelatedBundleVariable args."); 356 ExitOnFailure(hr, "Failed to write variable name of GetRelatedBundleVariable args.");
diff --git a/src/api/burn/balutil/balutil.cpp b/src/api/burn/balutil/balutil.cpp
index 716f82d3..3cca38a4 100644
--- a/src/api/burn/balutil/balutil.cpp
+++ b/src/api/burn/balutil/balutil.cpp
@@ -551,7 +551,7 @@ LExit:
551} 551}
552 552
553DAPI_(HRESULT) BalGetRelatedBundleVariable( 553DAPI_(HRESULT) BalGetRelatedBundleVariable(
554 __in_z LPCWSTR wzBundleId, 554 __in_z LPCWSTR wzBundleCode,
555 __in_z LPCWSTR wzVariable, 555 __in_z LPCWSTR wzVariable,
556 __inout LPWSTR* psczValue 556 __inout LPWSTR* psczValue
557) 557)
@@ -564,7 +564,7 @@ DAPI_(HRESULT) BalGetRelatedBundleVariable(
564 ExitOnRootFailure(hr, "BalInitialize() must be called first."); 564 ExitOnRootFailure(hr, "BalInitialize() must be called first.");
565 } 565 }
566 566
567 hr = BalGetRelatedBundleVariableFromEngine(vpEngine, wzBundleId, wzVariable, psczValue); 567 hr = BalGetRelatedBundleVariableFromEngine(vpEngine, wzBundleCode, wzVariable, psczValue);
568 568
569LExit: 569LExit:
570 return hr; 570 return hr;
@@ -572,7 +572,7 @@ LExit:
572 572
573DAPI_(HRESULT) BalGetRelatedBundleVariableFromEngine( 573DAPI_(HRESULT) BalGetRelatedBundleVariableFromEngine(
574 __in IBootstrapperEngine* pEngine, 574 __in IBootstrapperEngine* pEngine,
575 __in_z LPCWSTR wzBundleId, 575 __in_z LPCWSTR wzBundleCode,
576 __in_z LPCWSTR wzVariable, 576 __in_z LPCWSTR wzVariable,
577 __inout LPWSTR* psczValue 577 __inout LPWSTR* psczValue
578) 578)
@@ -586,7 +586,7 @@ DAPI_(HRESULT) BalGetRelatedBundleVariableFromEngine(
586 ExitOnFailure(hr, "Failed to determine length of value."); 586 ExitOnFailure(hr, "Failed to determine length of value.");
587 } 587 }
588 588
589 hr = pEngine->GetRelatedBundleVariable(wzBundleId, wzVariable, *psczValue, &cch); 589 hr = pEngine->GetRelatedBundleVariable(wzBundleCode, wzVariable, *psczValue, &cch);
590 if (E_MOREDATA == hr) 590 if (E_MOREDATA == hr)
591 { 591 {
592 ++cch; 592 ++cch;
@@ -594,7 +594,7 @@ DAPI_(HRESULT) BalGetRelatedBundleVariableFromEngine(
594 hr = StrAllocSecure(psczValue, cch); 594 hr = StrAllocSecure(psczValue, cch);
595 ExitOnFailure(hr, "Failed to allocate value."); 595 ExitOnFailure(hr, "Failed to allocate value.");
596 596
597 hr = pEngine->GetRelatedBundleVariable(wzBundleId, wzVariable, *psczValue, &cch); 597 hr = pEngine->GetRelatedBundleVariable(wzBundleCode, wzVariable, *psczValue, &cch);
598 } 598 }
599 599
600LExit: 600LExit:
diff --git a/src/api/burn/balutil/inc/BootstrapperApplicationBase.h b/src/api/burn/balutil/inc/BootstrapperApplicationBase.h
index a3a3643f..80bfd361 100644
--- a/src/api/burn/balutil/inc/BootstrapperApplicationBase.h
+++ b/src/api/burn/balutil/inc/BootstrapperApplicationBase.h
@@ -129,7 +129,7 @@ public: // IBootstrapperApplication
129 } 129 }
130 130
131 virtual STDMETHODIMP OnDetectForwardCompatibleBundle( 131 virtual STDMETHODIMP OnDetectForwardCompatibleBundle(
132 __in_z LPCWSTR /*wzBundleId*/, 132 __in_z LPCWSTR /*wzBundleCode*/,
133 __in BOOTSTRAPPER_RELATION_TYPE /*relationType*/, 133 __in BOOTSTRAPPER_RELATION_TYPE /*relationType*/,
134 __in_z LPCWSTR /*wzBundleTag*/, 134 __in_z LPCWSTR /*wzBundleTag*/,
135 __in BOOL /*fPerMachine*/, 135 __in BOOL /*fPerMachine*/,
@@ -179,7 +179,7 @@ public: // IBootstrapperApplication
179 } 179 }
180 180
181 virtual STDMETHODIMP OnDetectRelatedBundle( 181 virtual STDMETHODIMP OnDetectRelatedBundle(
182 __in_z LPCWSTR /*wzBundleId*/, 182 __in_z LPCWSTR /*wzBundleCode*/,
183 __in BOOTSTRAPPER_RELATION_TYPE /*relationType*/, 183 __in BOOTSTRAPPER_RELATION_TYPE /*relationType*/,
184 __in_z LPCWSTR /*wzBundleTag*/, 184 __in_z LPCWSTR /*wzBundleTag*/,
185 __in BOOL /*fPerMachine*/, 185 __in BOOL /*fPerMachine*/,
@@ -276,7 +276,7 @@ public: // IBootstrapperApplication
276 } 276 }
277 277
278 virtual STDMETHODIMP OnPlanRelatedBundle( 278 virtual STDMETHODIMP OnPlanRelatedBundle(
279 __in_z LPCWSTR /*wzBundleId*/, 279 __in_z LPCWSTR /*wzBundleCode*/,
280 __in BOOTSTRAPPER_REQUEST_STATE /*recommendedState*/, 280 __in BOOTSTRAPPER_REQUEST_STATE /*recommendedState*/,
281 __inout BOOTSTRAPPER_REQUEST_STATE* /*pRequestedState*/, 281 __inout BOOTSTRAPPER_REQUEST_STATE* /*pRequestedState*/,
282 __inout BOOL* pfCancel 282 __inout BOOL* pfCancel
@@ -995,7 +995,7 @@ public: // IBootstrapperApplication
995 } 995 }
996 996
997 virtual STDMETHODIMP OnPlanForwardCompatibleBundle( 997 virtual STDMETHODIMP OnPlanForwardCompatibleBundle(
998 __in_z LPCWSTR /*wzBundleId*/, 998 __in_z LPCWSTR /*wzBundleCode*/,
999 __in BOOTSTRAPPER_RELATION_TYPE /*relationType*/, 999 __in BOOTSTRAPPER_RELATION_TYPE /*relationType*/,
1000 __in_z LPCWSTR /*wzBundleTag*/, 1000 __in_z LPCWSTR /*wzBundleTag*/,
1001 __in BOOL /*fPerMachine*/, 1001 __in BOOL /*fPerMachine*/,
@@ -1074,7 +1074,7 @@ public: // IBootstrapperApplication
1074 } 1074 }
1075 1075
1076 virtual STDMETHODIMP OnPlanRestoreRelatedBundle( 1076 virtual STDMETHODIMP OnPlanRestoreRelatedBundle(
1077 __in_z LPCWSTR /*wzBundleId*/, 1077 __in_z LPCWSTR /*wzBundleCode*/,
1078 __in BOOTSTRAPPER_REQUEST_STATE /*recommendedState*/, 1078 __in BOOTSTRAPPER_REQUEST_STATE /*recommendedState*/,
1079 __inout BOOTSTRAPPER_REQUEST_STATE* /*pRequestedState*/, 1079 __inout BOOTSTRAPPER_REQUEST_STATE* /*pRequestedState*/,
1080 __inout BOOL* pfCancel 1080 __inout BOOL* pfCancel
@@ -1085,7 +1085,7 @@ public: // IBootstrapperApplication
1085 } 1085 }
1086 1086
1087 virtual STDMETHODIMP OnPlanRelatedBundleType( 1087 virtual STDMETHODIMP OnPlanRelatedBundleType(
1088 __in_z LPCWSTR /*wzBundleId*/, 1088 __in_z LPCWSTR /*wzBundleCode*/,
1089 __in BOOTSTRAPPER_RELATED_BUNDLE_PLAN_TYPE /*recommendedType*/, 1089 __in BOOTSTRAPPER_RELATED_BUNDLE_PLAN_TYPE /*recommendedType*/,
1090 __inout BOOTSTRAPPER_RELATED_BUNDLE_PLAN_TYPE* /*pRequestedType*/, 1090 __inout BOOTSTRAPPER_RELATED_BUNDLE_PLAN_TYPE* /*pRequestedType*/,
1091 __inout BOOL* pfCancel 1091 __inout BOOL* pfCancel
@@ -1115,7 +1115,7 @@ public: // IBootstrapperApplication
1115 1115
1116 virtual STDMETHODIMP OnDetectRelatedBundlePackage( 1116 virtual STDMETHODIMP OnDetectRelatedBundlePackage(
1117 __in_z LPCWSTR /*wzPackageId*/, 1117 __in_z LPCWSTR /*wzPackageId*/,
1118 __in_z LPCWSTR /*wzBundleId*/, 1118 __in_z LPCWSTR /*wzBundleCode*/,
1119 __in BOOTSTRAPPER_RELATION_TYPE /*relationType*/, 1119 __in BOOTSTRAPPER_RELATION_TYPE /*relationType*/,
1120 __in BOOL /*fPerMachine*/, 1120 __in BOOL /*fPerMachine*/,
1121 __in_z LPCWSTR /*wzVersion*/, 1121 __in_z LPCWSTR /*wzVersion*/,
diff --git a/src/api/burn/balutil/inc/IBootstrapperApplication.h b/src/api/burn/balutil/inc/IBootstrapperApplication.h
index a08f6863..a3b24bc3 100644
--- a/src/api/burn/balutil/inc/IBootstrapperApplication.h
+++ b/src/api/burn/balutil/inc/IBootstrapperApplication.h
@@ -56,7 +56,7 @@ DECLARE_INTERFACE_IID_(IBootstrapperApplication, IUnknown, "53C31D56-49C0-426B-A
56 56
57 // OnDetectForwardCompatibleBundle - called when the engine detects a forward compatible bundle. 57 // OnDetectForwardCompatibleBundle - called when the engine detects a forward compatible bundle.
58 STDMETHOD(OnDetectForwardCompatibleBundle)( 58 STDMETHOD(OnDetectForwardCompatibleBundle)(
59 __in_z LPCWSTR wzBundleId, 59 __in_z LPCWSTR wzBundleCode,
60 __in BOOTSTRAPPER_RELATION_TYPE relationType, 60 __in BOOTSTRAPPER_RELATION_TYPE relationType,
61 __in_z LPCWSTR wzBundleTag, 61 __in_z LPCWSTR wzBundleTag,
62 __in BOOL fPerMachine, 62 __in BOOL fPerMachine,
@@ -95,7 +95,7 @@ DECLARE_INTERFACE_IID_(IBootstrapperApplication, IUnknown, "53C31D56-49C0-426B-A
95 95
96 // OnDetectRelatedBundle - called when the engine detects a related bundle. 96 // OnDetectRelatedBundle - called when the engine detects a related bundle.
97 STDMETHOD(OnDetectRelatedBundle)( 97 STDMETHOD(OnDetectRelatedBundle)(
98 __in_z LPCWSTR wzBundleId, 98 __in_z LPCWSTR wzBundleCode,
99 __in BOOTSTRAPPER_RELATION_TYPE relationType, 99 __in BOOTSTRAPPER_RELATION_TYPE relationType,
100 __in_z LPCWSTR wzBundleTag, 100 __in_z LPCWSTR wzBundleTag,
101 __in BOOL fPerMachine, 101 __in BOOL fPerMachine,
@@ -170,7 +170,7 @@ DECLARE_INTERFACE_IID_(IBootstrapperApplication, IUnknown, "53C31D56-49C0-426B-A
170 170
171 // OnPlanRelatedBundle - called when the engine begins planning a related bundle. 171 // OnPlanRelatedBundle - called when the engine begins planning a related bundle.
172 STDMETHOD(OnPlanRelatedBundle)( 172 STDMETHOD(OnPlanRelatedBundle)(
173 __in_z LPCWSTR wzBundleId, 173 __in_z LPCWSTR wzBundleCode,
174 __in BOOTSTRAPPER_REQUEST_STATE recommendedState, 174 __in BOOTSTRAPPER_REQUEST_STATE recommendedState,
175 __inout BOOTSTRAPPER_REQUEST_STATE* pRequestedState, 175 __inout BOOTSTRAPPER_REQUEST_STATE* pRequestedState,
176 __inout BOOL* pfCancel 176 __inout BOOL* pfCancel
@@ -649,7 +649,7 @@ DECLARE_INTERFACE_IID_(IBootstrapperApplication, IUnknown, "53C31D56-49C0-426B-A
649 ) = 0; 649 ) = 0;
650 650
651 STDMETHOD(OnPlanForwardCompatibleBundle)( 651 STDMETHOD(OnPlanForwardCompatibleBundle)(
652 __in_z LPCWSTR wzBundleId, 652 __in_z LPCWSTR wzBundleCode,
653 __in BOOTSTRAPPER_RELATION_TYPE relationType, 653 __in BOOTSTRAPPER_RELATION_TYPE relationType,
654 __in_z LPCWSTR wzBundleTag, 654 __in_z LPCWSTR wzBundleTag,
655 __in BOOL fPerMachine, 655 __in BOOL fPerMachine,
@@ -703,7 +703,7 @@ DECLARE_INTERFACE_IID_(IBootstrapperApplication, IUnknown, "53C31D56-49C0-426B-A
703 703
704 // OnPlanRestoreRelatedBundle - called when the engine begins planning an upgrade related bundle for restoring in case of failure. 704 // OnPlanRestoreRelatedBundle - called when the engine begins planning an upgrade related bundle for restoring in case of failure.
705 STDMETHOD(OnPlanRestoreRelatedBundle)( 705 STDMETHOD(OnPlanRestoreRelatedBundle)(
706 __in_z LPCWSTR wzBundleId, 706 __in_z LPCWSTR wzBundleCode,
707 __in BOOTSTRAPPER_REQUEST_STATE recommendedState, 707 __in BOOTSTRAPPER_REQUEST_STATE recommendedState,
708 __inout BOOTSTRAPPER_REQUEST_STATE* pRequestedState, 708 __inout BOOTSTRAPPER_REQUEST_STATE* pRequestedState,
709 __inout BOOL* pfCancel 709 __inout BOOL* pfCancel
@@ -711,7 +711,7 @@ DECLARE_INTERFACE_IID_(IBootstrapperApplication, IUnknown, "53C31D56-49C0-426B-A
711 711
712 // OnPlanRelatedBundleType - called when the engine begins planning the related bundle relation type. 712 // OnPlanRelatedBundleType - called when the engine begins planning the related bundle relation type.
713 STDMETHOD(OnPlanRelatedBundleType)( 713 STDMETHOD(OnPlanRelatedBundleType)(
714 __in_z LPCWSTR wzBundleId, 714 __in_z LPCWSTR wzBundleCode,
715 __in BOOTSTRAPPER_RELATED_BUNDLE_PLAN_TYPE recommendedType, 715 __in BOOTSTRAPPER_RELATED_BUNDLE_PLAN_TYPE recommendedType,
716 __inout BOOTSTRAPPER_RELATED_BUNDLE_PLAN_TYPE* pRequestedType, 716 __inout BOOTSTRAPPER_RELATED_BUNDLE_PLAN_TYPE* pRequestedType,
717 __inout BOOL* pfCancel 717 __inout BOOL* pfCancel
@@ -736,7 +736,7 @@ DECLARE_INTERFACE_IID_(IBootstrapperApplication, IUnknown, "53C31D56-49C0-426B-A
736 // OnDetectRelatedBundlePackage - called when the engine detects a related bundle for a BundlePackage. 736 // OnDetectRelatedBundlePackage - called when the engine detects a related bundle for a BundlePackage.
737 STDMETHOD(OnDetectRelatedBundlePackage)( 737 STDMETHOD(OnDetectRelatedBundlePackage)(
738 __in_z LPCWSTR wzPackageId, 738 __in_z LPCWSTR wzPackageId,
739 __in_z LPCWSTR wzBundleId, 739 __in_z LPCWSTR wzBundleCode,
740 __in BOOTSTRAPPER_RELATION_TYPE relationType, 740 __in BOOTSTRAPPER_RELATION_TYPE relationType,
741 __in BOOL fPerMachine, 741 __in BOOL fPerMachine,
742 __in_z LPCWSTR wzVersion, 742 __in_z LPCWSTR wzVersion,
diff --git a/src/api/burn/balutil/inc/IBootstrapperEngine.h b/src/api/burn/balutil/inc/IBootstrapperEngine.h
index 02094aa5..57fc9be9 100644
--- a/src/api/burn/balutil/inc/IBootstrapperEngine.h
+++ b/src/api/burn/balutil/inc/IBootstrapperEngine.h
@@ -142,7 +142,7 @@ DECLARE_INTERFACE_IID_(IBootstrapperEngine, IUnknown, "6480D616-27A0-44D7-905B-8
142 ) = 0; 142 ) = 0;
143 143
144 STDMETHOD(GetRelatedBundleVariable)( 144 STDMETHOD(GetRelatedBundleVariable)(
145 __in_z LPCWSTR wzBundleId, 145 __in_z LPCWSTR wzBundleCode,
146 __in_z LPCWSTR wzVariable, 146 __in_z LPCWSTR wzVariable,
147 __out_ecount_opt(*pcchValue) LPWSTR wzValue, 147 __out_ecount_opt(*pcchValue) LPWSTR wzValue,
148 __inout SIZE_T* pcchValue 148 __inout SIZE_T* pcchValue
diff --git a/src/api/burn/balutil/inc/balutil.h b/src/api/burn/balutil/inc/balutil.h
index 03575883..4c8550ee 100644
--- a/src/api/burn/balutil/inc/balutil.h
+++ b/src/api/burn/balutil/inc/balutil.h
@@ -141,7 +141,7 @@ BalGetRelatedBundleVariable - gets a string from a shared variable in the engine
141Note: Use StrFree() to release psczValue. 141Note: Use StrFree() to release psczValue.
142********************************************************************/ 142********************************************************************/
143DAPI_(HRESULT) BalGetRelatedBundleVariable( 143DAPI_(HRESULT) BalGetRelatedBundleVariable(
144 __in_z LPCWSTR wzBundleId, 144 __in_z LPCWSTR wzBundleCode,
145 __in_z LPCWSTR wzVariable, 145 __in_z LPCWSTR wzVariable,
146 __inout LPWSTR* psczValue 146 __inout LPWSTR* psczValue
147); 147);
@@ -153,7 +153,7 @@ BalGetRelatedBundleVariableFromEngine - gets a string from a shared variable in
153********************************************************************/ 153********************************************************************/
154DAPI_(HRESULT) BalGetRelatedBundleVariableFromEngine( 154DAPI_(HRESULT) BalGetRelatedBundleVariableFromEngine(
155 __in IBootstrapperEngine* pEngine, 155 __in IBootstrapperEngine* pEngine,
156 __in_z LPCWSTR wzBundleId, 156 __in_z LPCWSTR wzBundleCode,
157 __in_z LPCWSTR wzVariable, 157 __in_z LPCWSTR wzVariable,
158 __inout LPWSTR* psczValue 158 __inout LPWSTR* psczValue
159); 159);
diff --git a/src/api/burn/balutil/msg.cpp b/src/api/burn/balutil/msg.cpp
index 690108a5..b728cc83 100644
--- a/src/api/burn/balutil/msg.cpp
+++ b/src/api/burn/balutil/msg.cpp
@@ -1768,7 +1768,7 @@ static HRESULT OnDetectForwardCompatibleBundle(
1768 HRESULT hr = S_OK; 1768 HRESULT hr = S_OK;
1769 BA_ONDETECTFORWARDCOMPATIBLEBUNDLE_ARGS args = { }; 1769 BA_ONDETECTFORWARDCOMPATIBLEBUNDLE_ARGS args = { };
1770 BA_ONDETECTFORWARDCOMPATIBLEBUNDLE_RESULTS results = { }; 1770 BA_ONDETECTFORWARDCOMPATIBLEBUNDLE_RESULTS results = { };
1771 LPWSTR sczBundleId = NULL; 1771 LPWSTR sczBundleCode = NULL;
1772 LPWSTR sczBundleTag = NULL; 1772 LPWSTR sczBundleTag = NULL;
1773 LPWSTR sczVersion = NULL; 1773 LPWSTR sczVersion = NULL;
1774 1774
@@ -1776,10 +1776,10 @@ static HRESULT OnDetectForwardCompatibleBundle(
1776 hr = BuffReaderReadNumber(pReaderArgs, &args.dwApiVersion); 1776 hr = BuffReaderReadNumber(pReaderArgs, &args.dwApiVersion);
1777 ExitOnFailure(hr, "Failed to read API version of OnDetectForwardCompatibleBundle args."); 1777 ExitOnFailure(hr, "Failed to read API version of OnDetectForwardCompatibleBundle args.");
1778 1778
1779 hr = BuffReaderReadString(pReaderArgs, &sczBundleId); 1779 hr = BuffReaderReadString(pReaderArgs, &sczBundleCode);
1780 ExitOnFailure(hr, "Failed to read bundle id of OnDetectForwardCompatibleBundle args."); 1780 ExitOnFailure(hr, "Failed to read bundle code of OnDetectForwardCompatibleBundle args.");
1781 1781
1782 args.wzBundleId = sczBundleId; 1782 args.wzBundleCode = sczBundleCode;
1783 1783
1784 hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.relationType)); 1784 hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.relationType));
1785 ExitOnFailure(hr, "Failed to read relation type of OnDetectForwardCompatibleBundle args."); 1785 ExitOnFailure(hr, "Failed to read relation type of OnDetectForwardCompatibleBundle args.");
@@ -1809,7 +1809,7 @@ static HRESULT OnDetectForwardCompatibleBundle(
1809 1809
1810 if (E_NOTIMPL == hr) 1810 if (E_NOTIMPL == hr)
1811 { 1811 {
1812 hr = pApplication->OnDetectForwardCompatibleBundle(args.wzBundleId, args.relationType, args.wzBundleTag, args.fPerMachine, args.wzVersion, args.fMissingFromCache, &results.fCancel); 1812 hr = pApplication->OnDetectForwardCompatibleBundle(args.wzBundleCode, args.relationType, args.wzBundleTag, args.fPerMachine, args.wzVersion, args.fMissingFromCache, &results.fCancel);
1813 } 1813 }
1814 1814
1815 pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTFORWARDCOMPATIBLEBUNDLE, &args, &results, &hr); 1815 pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTFORWARDCOMPATIBLEBUNDLE, &args, &results, &hr);
@@ -1825,7 +1825,7 @@ static HRESULT OnDetectForwardCompatibleBundle(
1825LExit: 1825LExit:
1826 ReleaseStr(sczVersion); 1826 ReleaseStr(sczVersion);
1827 ReleaseStr(sczBundleTag); 1827 ReleaseStr(sczBundleTag);
1828 ReleaseStr(sczBundleId); 1828 ReleaseStr(sczBundleCode);
1829 return hr; 1829 return hr;
1830} 1830}
1831 1831
@@ -1999,7 +1999,7 @@ static HRESULT OnDetectRelatedBundle(
1999 HRESULT hr = S_OK; 1999 HRESULT hr = S_OK;
2000 BA_ONDETECTRELATEDBUNDLE_ARGS args = { }; 2000 BA_ONDETECTRELATEDBUNDLE_ARGS args = { };
2001 BA_ONDETECTRELATEDBUNDLE_RESULTS results = { }; 2001 BA_ONDETECTRELATEDBUNDLE_RESULTS results = { };
2002 LPWSTR sczBundleId = NULL; 2002 LPWSTR sczBundleCode = NULL;
2003 LPWSTR sczBundleTag = NULL; 2003 LPWSTR sczBundleTag = NULL;
2004 LPWSTR sczVersion = NULL; 2004 LPWSTR sczVersion = NULL;
2005 2005
@@ -2007,10 +2007,10 @@ static HRESULT OnDetectRelatedBundle(
2007 hr = BuffReaderReadNumber(pReaderArgs, &args.dwApiVersion); 2007 hr = BuffReaderReadNumber(pReaderArgs, &args.dwApiVersion);
2008 ExitOnFailure(hr, "Failed to read API version of OnDetectRelatedBundle args."); 2008 ExitOnFailure(hr, "Failed to read API version of OnDetectRelatedBundle args.");
2009 2009
2010 hr = BuffReaderReadString(pReaderArgs, &sczBundleId); 2010 hr = BuffReaderReadString(pReaderArgs, &sczBundleCode);
2011 ExitOnFailure(hr, "Failed to read bundle id of OnDetectRelatedBundle args."); 2011 ExitOnFailure(hr, "Failed to read bundle code of OnDetectRelatedBundle args.");
2012 2012
2013 args.wzBundleId = sczBundleId; 2013 args.wzBundleCode = sczBundleCode;
2014 2014
2015 hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.relationType)); 2015 hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.relationType));
2016 ExitOnFailure(hr, "Failed to read relation type of OnDetectRelatedBundle args."); 2016 ExitOnFailure(hr, "Failed to read relation type of OnDetectRelatedBundle args.");
@@ -2040,7 +2040,7 @@ static HRESULT OnDetectRelatedBundle(
2040 2040
2041 if (E_NOTIMPL == hr) 2041 if (E_NOTIMPL == hr)
2042 { 2042 {
2043 hr = pApplication->OnDetectRelatedBundle(args.wzBundleId, args.relationType, args.wzBundleTag, args.fPerMachine, args.wzVersion, args.fMissingFromCache, &results.fCancel); 2043 hr = pApplication->OnDetectRelatedBundle(args.wzBundleCode, args.relationType, args.wzBundleTag, args.fPerMachine, args.wzVersion, args.fMissingFromCache, &results.fCancel);
2044 } 2044 }
2045 2045
2046 pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTRELATEDBUNDLE, &args, &results, &hr); 2046 pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTRELATEDBUNDLE, &args, &results, &hr);
@@ -2056,7 +2056,7 @@ static HRESULT OnDetectRelatedBundle(
2056LExit: 2056LExit:
2057 ReleaseStr(sczVersion); 2057 ReleaseStr(sczVersion);
2058 ReleaseStr(sczBundleTag); 2058 ReleaseStr(sczBundleTag);
2059 ReleaseStr(sczBundleId); 2059 ReleaseStr(sczBundleCode);
2060 return hr; 2060 return hr;
2061} 2061}
2062 2062
@@ -2071,7 +2071,7 @@ static HRESULT OnDetectRelatedBundlePackage(
2071 BA_ONDETECTRELATEDBUNDLEPACKAGE_ARGS args = { }; 2071 BA_ONDETECTRELATEDBUNDLEPACKAGE_ARGS args = { };
2072 BA_ONDETECTRELATEDBUNDLEPACKAGE_RESULTS results = { }; 2072 BA_ONDETECTRELATEDBUNDLEPACKAGE_RESULTS results = { };
2073 LPWSTR sczPackageId = NULL; 2073 LPWSTR sczPackageId = NULL;
2074 LPWSTR sczBundleId = NULL; 2074 LPWSTR sczBundleCode = NULL;
2075 LPWSTR sczVersion = NULL; 2075 LPWSTR sczVersion = NULL;
2076 2076
2077 // Read args. 2077 // Read args.
@@ -2083,10 +2083,10 @@ static HRESULT OnDetectRelatedBundlePackage(
2083 2083
2084 args.wzPackageId = sczPackageId; 2084 args.wzPackageId = sczPackageId;
2085 2085
2086 hr = BuffReaderReadString(pReaderArgs, &sczBundleId); 2086 hr = BuffReaderReadString(pReaderArgs, &sczBundleCode);
2087 ExitOnFailure(hr, "Failed to read bundle id of OnDetectRelatedBundlePackage args."); 2087 ExitOnFailure(hr, "Failed to read bundle code of OnDetectRelatedBundlePackage args.");
2088 2088
2089 args.wzBundleId = sczBundleId; 2089 args.wzBundleCode = sczBundleCode;
2090 2090
2091 hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.relationType)); 2091 hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.relationType));
2092 ExitOnFailure(hr, "Failed to read relation type of OnDetectRelatedBundlePackage args."); 2092 ExitOnFailure(hr, "Failed to read relation type of OnDetectRelatedBundlePackage args.");
@@ -2108,7 +2108,7 @@ static HRESULT OnDetectRelatedBundlePackage(
2108 2108
2109 if (E_NOTIMPL == hr) 2109 if (E_NOTIMPL == hr)
2110 { 2110 {
2111 hr = pApplication->OnDetectRelatedBundlePackage(args.wzPackageId, args.wzBundleId, args.relationType, args.fPerMachine, args.wzVersion, &results.fCancel); 2111 hr = pApplication->OnDetectRelatedBundlePackage(args.wzPackageId, args.wzBundleCode, args.relationType, args.fPerMachine, args.wzVersion, &results.fCancel);
2112 } 2112 }
2113 2113
2114 pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTRELATEDBUNDLEPACKAGE, &args, &results, &hr); 2114 pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONDETECTRELATEDBUNDLEPACKAGE, &args, &results, &hr);
@@ -2123,7 +2123,7 @@ static HRESULT OnDetectRelatedBundlePackage(
2123 2123
2124LExit: 2124LExit:
2125 ReleaseStr(sczVersion); 2125 ReleaseStr(sczVersion);
2126 ReleaseStr(sczBundleId); 2126 ReleaseStr(sczBundleCode);
2127 ReleaseStr(sczPackageId); 2127 ReleaseStr(sczPackageId);
2128 return hr; 2128 return hr;
2129} 2129}
@@ -3650,7 +3650,7 @@ static HRESULT OnPlanForwardCompatibleBundle(
3650 HRESULT hr = S_OK; 3650 HRESULT hr = S_OK;
3651 BA_ONPLANFORWARDCOMPATIBLEBUNDLE_ARGS args = { }; 3651 BA_ONPLANFORWARDCOMPATIBLEBUNDLE_ARGS args = { };
3652 BA_ONPLANFORWARDCOMPATIBLEBUNDLE_RESULTS results = { }; 3652 BA_ONPLANFORWARDCOMPATIBLEBUNDLE_RESULTS results = { };
3653 LPWSTR sczBundleId = NULL; 3653 LPWSTR sczBundleCode = NULL;
3654 LPWSTR sczBundleTag = NULL; 3654 LPWSTR sczBundleTag = NULL;
3655 LPWSTR sczVersion = NULL; 3655 LPWSTR sczVersion = NULL;
3656 3656
@@ -3658,10 +3658,10 @@ static HRESULT OnPlanForwardCompatibleBundle(
3658 hr = BuffReaderReadNumber(pReaderArgs, &args.dwApiVersion); 3658 hr = BuffReaderReadNumber(pReaderArgs, &args.dwApiVersion);
3659 ExitOnFailure(hr, "Failed to read API version of OnPlanForwardCompatibleBundle args."); 3659 ExitOnFailure(hr, "Failed to read API version of OnPlanForwardCompatibleBundle args.");
3660 3660
3661 hr = BuffReaderReadString(pReaderArgs, &sczBundleId); 3661 hr = BuffReaderReadString(pReaderArgs, &sczBundleCode);
3662 ExitOnFailure(hr, "Failed to read bundle id of OnPlanForwardCompatibleBundle args."); 3662 ExitOnFailure(hr, "Failed to read bundle code of OnPlanForwardCompatibleBundle args.");
3663 3663
3664 args.wzBundleId = sczBundleId; 3664 args.wzBundleCode = sczBundleCode;
3665 3665
3666 hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.relationType)); 3666 hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.relationType));
3667 ExitOnFailure(hr, "Failed to read relation type of OnPlanForwardCompatibleBundle args."); 3667 ExitOnFailure(hr, "Failed to read relation type of OnPlanForwardCompatibleBundle args.");
@@ -3694,7 +3694,7 @@ static HRESULT OnPlanForwardCompatibleBundle(
3694 3694
3695 if (E_NOTIMPL == hr) 3695 if (E_NOTIMPL == hr)
3696 { 3696 {
3697 hr = pApplication->OnPlanForwardCompatibleBundle(args.wzBundleId, args.relationType, args.wzBundleTag, args.fPerMachine, args.wzVersion, args.fRecommendedIgnoreBundle, &results.fCancel, &results.fIgnoreBundle); 3697 hr = pApplication->OnPlanForwardCompatibleBundle(args.wzBundleCode, args.relationType, args.wzBundleTag, args.fPerMachine, args.wzVersion, args.fRecommendedIgnoreBundle, &results.fCancel, &results.fIgnoreBundle);
3698 } 3698 }
3699 3699
3700 pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANFORWARDCOMPATIBLEBUNDLE, &args, &results, &hr); 3700 pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANFORWARDCOMPATIBLEBUNDLE, &args, &results, &hr);
@@ -3713,7 +3713,7 @@ static HRESULT OnPlanForwardCompatibleBundle(
3713LExit: 3713LExit:
3714 ReleaseStr(sczVersion); 3714 ReleaseStr(sczVersion);
3715 ReleaseStr(sczBundleTag); 3715 ReleaseStr(sczBundleTag);
3716 ReleaseStr(sczBundleId); 3716 ReleaseStr(sczBundleCode);
3717 return hr; 3717 return hr;
3718} 3718}
3719 3719
@@ -4049,16 +4049,16 @@ static HRESULT OnPlanRelatedBundle(
4049 HRESULT hr = S_OK; 4049 HRESULT hr = S_OK;
4050 BA_ONPLANRELATEDBUNDLE_ARGS args = { }; 4050 BA_ONPLANRELATEDBUNDLE_ARGS args = { };
4051 BA_ONPLANRELATEDBUNDLE_RESULTS results = { }; 4051 BA_ONPLANRELATEDBUNDLE_RESULTS results = { };
4052 LPWSTR sczBundleId = NULL; 4052 LPWSTR sczBundleCode = NULL;
4053 4053
4054 // Read args. 4054 // Read args.
4055 hr = BuffReaderReadNumber(pReaderArgs, &args.dwApiVersion); 4055 hr = BuffReaderReadNumber(pReaderArgs, &args.dwApiVersion);
4056 ExitOnFailure(hr, "Failed to read API version of OnPlanRelatedBundle args."); 4056 ExitOnFailure(hr, "Failed to read API version of OnPlanRelatedBundle args.");
4057 4057
4058 hr = BuffReaderReadString(pReaderArgs, &sczBundleId); 4058 hr = BuffReaderReadString(pReaderArgs, &sczBundleCode);
4059 ExitOnFailure(hr, "Failed to read package id of OnPlanRelatedBundle args."); 4059 ExitOnFailure(hr, "Failed to read package id of OnPlanRelatedBundle args.");
4060 4060
4061 args.wzBundleId = sczBundleId; 4061 args.wzBundleCode = sczBundleCode;
4062 4062
4063 hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.recommendedState)); 4063 hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.recommendedState));
4064 ExitOnFailure(hr, "Failed to read recommended state of OnPlanRelatedBundle args."); 4064 ExitOnFailure(hr, "Failed to read recommended state of OnPlanRelatedBundle args.");
@@ -4075,7 +4075,7 @@ static HRESULT OnPlanRelatedBundle(
4075 4075
4076 if (E_NOTIMPL == hr) 4076 if (E_NOTIMPL == hr)
4077 { 4077 {
4078 hr = pApplication->OnPlanRelatedBundle(args.wzBundleId, args.recommendedState, &results.requestedState, &results.fCancel); 4078 hr = pApplication->OnPlanRelatedBundle(args.wzBundleCode, args.recommendedState, &results.requestedState, &results.fCancel);
4079 } 4079 }
4080 4080
4081 pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANRELATEDBUNDLE, &args, &results, &hr); 4081 pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANRELATEDBUNDLE, &args, &results, &hr);
@@ -4092,7 +4092,7 @@ static HRESULT OnPlanRelatedBundle(
4092 ExitOnFailure(hr, "Failed to write requested state of OnPlanRelatedBundle struct."); 4092 ExitOnFailure(hr, "Failed to write requested state of OnPlanRelatedBundle struct.");
4093 4093
4094LExit: 4094LExit:
4095 ReleaseStr(sczBundleId); 4095 ReleaseStr(sczBundleCode);
4096 return hr; 4096 return hr;
4097} 4097}
4098 4098
@@ -4106,16 +4106,16 @@ static HRESULT OnPlanRelatedBundleType(
4106 HRESULT hr = S_OK; 4106 HRESULT hr = S_OK;
4107 BA_ONPLANRELATEDBUNDLETYPE_ARGS args = { }; 4107 BA_ONPLANRELATEDBUNDLETYPE_ARGS args = { };
4108 BA_ONPLANRELATEDBUNDLETYPE_RESULTS results = { }; 4108 BA_ONPLANRELATEDBUNDLETYPE_RESULTS results = { };
4109 LPWSTR sczBundleId = NULL; 4109 LPWSTR sczBundleCode = NULL;
4110 4110
4111 // Read args. 4111 // Read args.
4112 hr = BuffReaderReadNumber(pReaderArgs, &args.dwApiVersion); 4112 hr = BuffReaderReadNumber(pReaderArgs, &args.dwApiVersion);
4113 ExitOnFailure(hr, "Failed to read API version of OnPlanRelatedBundleType args."); 4113 ExitOnFailure(hr, "Failed to read API version of OnPlanRelatedBundleType args.");
4114 4114
4115 hr = BuffReaderReadString(pReaderArgs, &sczBundleId); 4115 hr = BuffReaderReadString(pReaderArgs, &sczBundleCode);
4116 ExitOnFailure(hr, "Failed to read package id of OnPlanRelatedBundleType args."); 4116 ExitOnFailure(hr, "Failed to read package id of OnPlanRelatedBundleType args.");
4117 4117
4118 args.wzBundleId = sczBundleId; 4118 args.wzBundleCode = sczBundleCode;
4119 4119
4120 hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.recommendedType)); 4120 hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.recommendedType));
4121 ExitOnFailure(hr, "Failed to read recommended type of OnPlanRelatedBundleType args."); 4121 ExitOnFailure(hr, "Failed to read recommended type of OnPlanRelatedBundleType args.");
@@ -4132,7 +4132,7 @@ static HRESULT OnPlanRelatedBundleType(
4132 4132
4133 if (E_NOTIMPL == hr) 4133 if (E_NOTIMPL == hr)
4134 { 4134 {
4135 hr = pApplication->OnPlanRelatedBundleType(args.wzBundleId, args.recommendedType, &results.requestedType, &results.fCancel); 4135 hr = pApplication->OnPlanRelatedBundleType(args.wzBundleCode, args.recommendedType, &results.requestedType, &results.fCancel);
4136 } 4136 }
4137 4137
4138 pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANRELATEDBUNDLETYPE, &args, &results, &hr); 4138 pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANRELATEDBUNDLETYPE, &args, &results, &hr);
@@ -4149,7 +4149,7 @@ static HRESULT OnPlanRelatedBundleType(
4149 ExitOnFailure(hr, "Failed to write requested type of OnPlanRelatedBundleType struct."); 4149 ExitOnFailure(hr, "Failed to write requested type of OnPlanRelatedBundleType struct.");
4150 4150
4151LExit: 4151LExit:
4152 ReleaseStr(sczBundleId); 4152 ReleaseStr(sczBundleCode);
4153 return hr; 4153 return hr;
4154} 4154}
4155 4155
@@ -4163,16 +4163,16 @@ static HRESULT OnPlanRestoreRelatedBundle(
4163 HRESULT hr = S_OK; 4163 HRESULT hr = S_OK;
4164 BA_ONPLANRESTORERELATEDBUNDLE_ARGS args = { }; 4164 BA_ONPLANRESTORERELATEDBUNDLE_ARGS args = { };
4165 BA_ONPLANRESTORERELATEDBUNDLE_RESULTS results = { }; 4165 BA_ONPLANRESTORERELATEDBUNDLE_RESULTS results = { };
4166 LPWSTR sczBundleId = NULL; 4166 LPWSTR sczBundleCode = NULL;
4167 4167
4168 // Read args. 4168 // Read args.
4169 hr = BuffReaderReadNumber(pReaderArgs, &args.dwApiVersion); 4169 hr = BuffReaderReadNumber(pReaderArgs, &args.dwApiVersion);
4170 ExitOnFailure(hr, "Failed to read API version of OnPlanRestoreRelatedBundle args."); 4170 ExitOnFailure(hr, "Failed to read API version of OnPlanRestoreRelatedBundle args.");
4171 4171
4172 hr = BuffReaderReadString(pReaderArgs, &sczBundleId); 4172 hr = BuffReaderReadString(pReaderArgs, &sczBundleCode);
4173 ExitOnFailure(hr, "Failed to read package id of OnPlanRestoreRelatedBundle args."); 4173 ExitOnFailure(hr, "Failed to read package id of OnPlanRestoreRelatedBundle args.");
4174 4174
4175 args.wzBundleId = sczBundleId; 4175 args.wzBundleCode = sczBundleCode;
4176 4176
4177 hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.recommendedState)); 4177 hr = BuffReaderReadNumber(pReaderArgs, reinterpret_cast<DWORD*>(&args.recommendedState));
4178 ExitOnFailure(hr, "Failed to read recommended state of OnPlanRestoreRelatedBundle args."); 4178 ExitOnFailure(hr, "Failed to read recommended state of OnPlanRestoreRelatedBundle args.");
@@ -4189,7 +4189,7 @@ static HRESULT OnPlanRestoreRelatedBundle(
4189 4189
4190 if (E_NOTIMPL == hr) 4190 if (E_NOTIMPL == hr)
4191 { 4191 {
4192 hr = pApplication->OnPlanRestoreRelatedBundle(args.wzBundleId, args.recommendedState, &results.requestedState, &results.fCancel); 4192 hr = pApplication->OnPlanRestoreRelatedBundle(args.wzBundleCode, args.recommendedState, &results.requestedState, &results.fCancel);
4193 } 4193 }
4194 4194
4195 pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANRESTORERELATEDBUNDLE, &args, &results, &hr); 4195 pApplication->BAProcFallback(BOOTSTRAPPER_APPLICATION_MESSAGE_ONPLANRESTORERELATEDBUNDLE, &args, &results, &hr);
@@ -4206,7 +4206,7 @@ static HRESULT OnPlanRestoreRelatedBundle(
4206 ExitOnFailure(hr, "Failed to write requested state of OnPlanRestoreRelatedBundle struct."); 4206 ExitOnFailure(hr, "Failed to write requested state of OnPlanRestoreRelatedBundle struct.");
4207 4207
4208LExit: 4208LExit:
4209 ReleaseStr(sczBundleId); 4209 ReleaseStr(sczBundleCode);
4210 return hr; 4210 return hr;
4211} 4211}
4212 4212