blob: 677c593fce31d71ba65d48b2827120c81f239f56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#pragma once
// 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.
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _BAL_CONDITION
{
LPWSTR sczCondition;
LPWSTR sczMessage;
} BAL_CONDITION;
typedef struct _BAL_CONDITIONS
{
BAL_CONDITION* rgConditions;
DWORD cConditions;
} BAL_CONDITIONS;
/*******************************************************************
BalConditionsParseFromXml - loads the conditions from the UX manifest.
********************************************************************/
DAPI_(HRESULT) BalConditionsParseFromXml(
__in BAL_CONDITIONS* pConditions,
__in IXMLDOMDocument* pixdManifest,
__in_opt WIX_LOCALIZATION* pWixLoc
);
/*******************************************************************
BalConditionEvaluate - evaluates condition against the provided IBurnCore.
NOTE: psczMessage is optional.
********************************************************************/
DAPI_(HRESULT) BalConditionEvaluate(
__in BAL_CONDITION* pCondition,
__in IBootstrapperEngine* pEngine,
__out BOOL* pfResult,
__out_z_opt LPWSTR* psczMessage
);
/*******************************************************************
BalConditionsUninitialize - uninitializes any conditions previously loaded.
********************************************************************/
DAPI_(void) BalConditionsUninitialize(
__in BAL_CONDITIONS* pConditions
);
#ifdef __cplusplus
}
#endif
|