From fa393914f12f6d6bc88a73e4d5b009da765f6dd5 Mon Sep 17 00:00:00 2001 From: Jacob Hoover Date: Thu, 10 Nov 2022 10:48:23 -0600 Subject: WIXFEAT-3704 - Allow access to persisted variables from related bundles --- src/burn/engine/externalengine.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/burn/engine/externalengine.cpp') diff --git a/src/burn/engine/externalengine.cpp b/src/burn/engine/externalengine.cpp index 262bb1a9..c38d8fc3 100644 --- a/src/burn/engine/externalengine.cpp +++ b/src/burn/engine/externalengine.cpp @@ -801,6 +801,26 @@ LExit: return hr; } +HRESULT ExternalEngineGetRelatedBundleVariable( + __in BURN_ENGINE_STATE* /*pEngineState*/, + __in_z LPCWSTR wzBundleId, + __in_z LPCWSTR wzVariable, + __out_ecount_opt(*pcchValue) LPWSTR wzValue, + __inout SIZE_T* pcchValue + ) +{ + HRESULT hr = S_OK; + if (wzVariable && *wzVariable && pcchValue) + { + hr = BundleGetBundleVariableFixed(wzBundleId, wzVariable, wzValue, pcchValue); + } + else + { + hr = E_INVALIDARG; + } + return hr; +} + // TODO: callers need to provide the original size (at the time of first public release) of the struct instead of the current size. HRESULT WINAPI ExternalEngineValidateMessageParameter( __in_opt const LPVOID pv, -- cgit v1.2.3-55-g6feb