summaryrefslogtreecommitdiff
path: root/src/libs/dutil/WixToolset.DUtil/inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/dutil/WixToolset.DUtil/inc')
-rw-r--r--src/libs/dutil/WixToolset.DUtil/inc/butil.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/libs/dutil/WixToolset.DUtil/inc/butil.h b/src/libs/dutil/WixToolset.DUtil/inc/butil.h
index 9c2010ee..0d3eefe3 100644
--- a/src/libs/dutil/WixToolset.DUtil/inc/butil.h
+++ b/src/libs/dutil/WixToolset.DUtil/inc/butil.h
@@ -12,6 +12,37 @@ typedef enum _BUNDLE_INSTALL_CONTEXT
12 BUNDLE_INSTALL_CONTEXT_USER, 12 BUNDLE_INSTALL_CONTEXT_USER,
13} BUNDLE_INSTALL_CONTEXT; 13} BUNDLE_INSTALL_CONTEXT;
14 14
15typedef enum _BUNDLE_QUERY_CALLBACK_RESULT
16{
17 BUNDLE_QUERY_CALLBACK_RESULT_CONTINUE,
18 BUNDLE_QUERY_CALLBACK_RESULT_CANCEL,
19} BUNDLE_QUERY_CALLBACK_RESULT;
20
21typedef enum _BUNDLE_RELATION_TYPE
22{
23 BUNDLE_RELATION_NONE,
24 BUNDLE_RELATION_DETECT,
25 BUNDLE_RELATION_UPGRADE,
26 BUNDLE_RELATION_ADDON,
27 BUNDLE_RELATION_PATCH,
28 BUNDLE_RELATION_DEPENDENT,
29 BUNDLE_RELATION_UPDATE,
30} BUNDLE_RELATION_TYPE;
31
32typedef struct _BUNDLE_QUERY_RELATED_BUNDLE_RESULT
33{
34 LPCWSTR wzBundleId;
35 BUNDLE_INSTALL_CONTEXT installContext;
36 REG_KEY_BITNESS regBitness;
37 HKEY hkBundle;
38 BUNDLE_RELATION_TYPE relationType;
39} BUNDLE_QUERY_RELATED_BUNDLE_RESULT;
40
41typedef BUNDLE_QUERY_CALLBACK_RESULT(CALLBACK *PFNBUNDLE_QUERY_RELATED_BUNDLE_CALLBACK)(
42 __in const BUNDLE_QUERY_RELATED_BUNDLE_RESULT* pBundle,
43 __in_opt LPVOID pvContext
44 );
45
15 46
16/******************************************************************** 47/********************************************************************
17BundleGetBundleInfo - Queries the bundle installation metadata for a given property, 48BundleGetBundleInfo - Queries the bundle installation metadata for a given property,
@@ -155,6 +186,24 @@ HRESULT DAPI BundleGetBundleVariableFixed(
155 __inout SIZE_T* pcchValue 186 __inout SIZE_T* pcchValue
156 ); 187 );
157 188
189/********************************************************************
190BundleQueryRelatedBundles - Queries the bundle installation metadata for installs with the given detect, upgrade, addon, and patch codes.
191 Passes each related bundle to the callback function.
192********************************************************************/
193HRESULT BundleQueryRelatedBundles(
194 __in BUNDLE_INSTALL_CONTEXT installContext,
195 __in_z_opt LPCWSTR* rgwzDetectCodes,
196 __in DWORD cDetectCodes,
197 __in_z_opt LPCWSTR* rgwzUpgradeCodes,
198 __in DWORD cUpgradeCodes,
199 __in_z_opt LPCWSTR* rgwzAddonCodes,
200 __in DWORD cAddonCodes,
201 __in_z_opt LPCWSTR* rgwzPatchCodes,
202 __in DWORD cPatchCodes,
203 __in PFNBUNDLE_QUERY_RELATED_BUNDLE_CALLBACK pfnCallback,
204 __in_opt LPVOID pvContext
205 );
206
158 207
159#ifdef __cplusplus 208#ifdef __cplusplus
160} 209}