aboutsummaryrefslogtreecommitdiff
path: root/src/dutil/inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/dutil/inc')
-rw-r--r--src/dutil/inc/butil.h35
1 files changed, 32 insertions, 3 deletions
diff --git a/src/dutil/inc/butil.h b/src/dutil/inc/butil.h
index a42cac11..d1ec73bc 100644
--- a/src/dutil/inc/butil.h
+++ b/src/dutil/inc/butil.h
@@ -12,15 +12,44 @@ enum BUNDLE_INSTALL_CONTEXT
12 BUNDLE_INSTALL_CONTEXT_USER, 12 BUNDLE_INSTALL_CONTEXT_USER,
13}; 13};
14 14
15
16/********************************************************************
17BundleGetBundleInfo - Queries the bundle installation metadata for a given property
18
19RETURNS:
20 E_INVALIDARG
21 An invalid parameter was passed to the function.
22 HRESULT_FROM_WIN32(ERROR_UNKNOWN_PRODUCT)
23 The bundle is not installed
24 HRESULT_FROM_WIN32(ERROR_UNKNOWN_PROPERTY)
25 The property is unrecognized
26 HRESULT_FROM_WIN32(ERROR_MORE_DATA)
27 A buffer is too small to hold the requested data.
28 E_NOTIMPL:
29 Tried to read a bundle attribute for a type which has not been implemented
30
31 All other returns are unexpected returns from other dutil methods.
32********************************************************************/
15HRESULT DAPI BundleGetBundleInfo( 33HRESULT DAPI BundleGetBundleInfo(
16 __in LPCWSTR szBundleId, // Bundle code 34 __in_z LPCWSTR szBundleId, // Bundle code
17 __in LPCWSTR szAttribute, // attribute name 35 __in_z LPCWSTR szAttribute, // attribute name
18 __out_ecount_opt(*pcchValueBuf) LPWSTR lpValueBuf, // returned value, NULL if not desired 36 __out_ecount_opt(*pcchValueBuf) LPWSTR lpValueBuf, // returned value, NULL if not desired
19 __inout_opt LPDWORD pcchValueBuf // in/out buffer character count 37 __inout_opt LPDWORD pcchValueBuf // in/out buffer character count
20 ); 38 );
21 39
40/********************************************************************
41BundleEnumRelatedBundle - Queries the bundle installation metadata for installs with the given upgrade code
42
43NOTE: lpBundleIdBuff is a buffer to receive the bundle GUID. This buffer must be 39 characters long.
44 The first 38 characters are for the GUID, and the last character is for the terminating null character.
45RETURNS:
46 E_INVALIDARG
47 An invalid parameter was passed to the function.
48
49 All other returns are unexpected returns from other dutil methods.
50********************************************************************/
22HRESULT DAPI BundleEnumRelatedBundle( 51HRESULT DAPI BundleEnumRelatedBundle(
23 __in LPCWSTR lpUpgradeCode, 52 __in_z LPCWSTR lpUpgradeCode,
24 __in BUNDLE_INSTALL_CONTEXT context, 53 __in BUNDLE_INSTALL_CONTEXT context,
25 __inout PDWORD pdwStartIndex, 54 __inout PDWORD pdwStartIndex,
26 __out_ecount(MAX_GUID_CHARS+1) LPWSTR lpBundleIdBuf 55 __out_ecount(MAX_GUID_CHARS+1) LPWSTR lpBundleIdBuf