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