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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
|
#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.
#if defined(__cplusplus)
extern "C" {
#endif
// constants
enum BURN_LOGGING_STATE
{
BURN_LOGGING_STATE_CLOSED,
BURN_LOGGING_STATE_OPEN,
BURN_LOGGING_STATE_DISABLED,
};
enum BURN_LOGGING_ATTRIBUTE
{
BURN_LOGGING_ATTRIBUTE_APPEND = 0x1,
BURN_LOGGING_ATTRIBUTE_VERBOSE = 0x2,
BURN_LOGGING_ATTRIBUTE_EXTRADEBUG = 0x4,
};
// structs
typedef struct _BURN_LOGGING
{
BURN_LOGGING_STATE state;
LPWSTR sczPathVariable;
DWORD dwAttributes;
LPWSTR sczPath;
LPWSTR sczPrefix;
LPWSTR sczExtension;
} BURN_LOGGING;
// function declarations
HRESULT LoggingParseFromXml(
__in BURN_LOGGING* pLog,
__in IXMLDOMNode* pixnBundle
);
HRESULT LoggingOpen(
__in BURN_LOGGING* pLog,
__in BURN_ENGINE_COMMAND* pInternalCommand,
__in BOOTSTRAPPER_COMMAND* pCommand,
__in BURN_VARIABLES* pVariables,
__in_z LPCWSTR wzBundleName
);
void LoggingOpenFailed();
void LoggingIncrementPackageSequence();
HRESULT LoggingSetCompatiblePackageVariable(
__in BURN_PACKAGE* pPackage,
__in BURN_LOGGING* pLog,
__in BURN_VARIABLES* pVariables,
__out_opt LPWSTR* psczLogPath
);
HRESULT LoggingSetPackageVariable(
__in BURN_PACKAGE* pPackage,
__in_z_opt LPCWSTR wzSuffix,
__in BOOL fRollback,
__in BURN_LOGGING* pLog,
__in BURN_VARIABLES* pVariables,
__out_opt LPWSTR* psczLogPath
);
HRESULT LoggingSetTransactionVariable(
__in BURN_ROLLBACK_BOUNDARY* pRollbackBoundary,
__in_z_opt LPCWSTR wzSuffix,
__in BURN_LOGGING* pLog,
__in BURN_VARIABLES* pVariables
);
LPCSTR LoggingBurnActionToString(
__in BOOTSTRAPPER_ACTION action
);
LPCSTR LoggingBurnMessageToString(
__in UINT message
);
LPCSTR LoggingActionStateToString(
__in BOOTSTRAPPER_ACTION_STATE actionState
);
LPCSTR LoggingCacheTypeToString(
BOOTSTRAPPER_CACHE_TYPE cacheType
);
LPCSTR LoggingCachePackageTypeToString(
BURN_CACHE_PACKAGE_TYPE cachePackageType
);
LPCSTR LoggingDependencyActionToString(
BURN_DEPENDENCY_ACTION action
);
LPCSTR LoggingBoolToString(
__in BOOL f
);
LPCSTR LoggingTrueFalseToString(
__in BOOL f
);
LPCSTR LoggingExitCodeTypeToString(
__in BURN_EXE_EXIT_CODE_TYPE exitCodeType
);
LPCSTR LoggingPackageStateToString(
__in BOOTSTRAPPER_PACKAGE_STATE packageState
);
LPCSTR LoggingPackageRegistrationStateToString(
__in BOOL fCanAffectRegistration,
__in BURN_PACKAGE_REGISTRATION_STATE registrationState
);
LPCSTR LoggingMsiFileVersioningToString(
__in BOOTSTRAPPER_MSI_FILE_VERSIONING fileVersioning
);
LPCSTR LoggingMsiFeatureStateToString(
__in BOOTSTRAPPER_FEATURE_STATE featureState
);
LPCSTR LoggingMsiFeatureActionToString(
__in BOOTSTRAPPER_FEATURE_ACTION featureAction
);
LPCSTR LoggingMsiInstallContext(
__in MSIINSTALLCONTEXT context
);
LPCWSTR LoggingBurnMsiPropertyToString(
__in BURN_MSI_PROPERTY burnMsiProperty
);
LPCSTR LoggingMspTargetActionToString(
__in BOOTSTRAPPER_ACTION_STATE action,
__in BURN_PATCH_SKIP_STATE skipState
);
LPCSTR LoggingPerMachineToString(
__in BOOL fPerMachine
);
LPCSTR LoggingPlannedCacheToString(
__in const BURN_PACKAGE* pPackage
);
LPCSTR LoggingRegistrationTypeToString(
__in BOOTSTRAPPER_REGISTRATION_TYPE registrationType
);
LPCSTR LoggingRestartToString(
__in BOOTSTRAPPER_APPLY_RESTART restart
);
LPCSTR LoggingResumeModeToString(
__in BURN_RESUME_MODE resumeMode
);
LPCSTR LoggingPlanRelationTypeToString(
__in BOOTSTRAPPER_RELATED_BUNDLE_PLAN_TYPE type
);
LPCSTR LoggingRegistrationOptionsToString(
__in DWORD dwRegistrationOptions
);
LPCSTR LoggingRelationTypeToString(
__in BOOTSTRAPPER_RELATION_TYPE type
);
LPCSTR LoggingRelatedOperationToString(
__in BOOTSTRAPPER_RELATED_OPERATION operation
);
LPCSTR LoggingRequestStateToString(
__in BOOTSTRAPPER_REQUEST_STATE requestState
);
LPCSTR LoggingRollbackOrExecute(
__in BOOL fRollback
);
LPWSTR LoggingStringOrUnknownIfNull(
__in LPCWSTR wz
);
LPCSTR LoggingInstallScopeToString(
__in BOOL fPerMachine
);
#if defined(__cplusplus)
}
#endif
|