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
|
#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 LoggingOpen(
__in BURN_LOGGING* pLog,
__in BURN_VARIABLES* pVariables,
__in BOOTSTRAPPER_DISPLAY display,
__in_z LPCWSTR wzBundleName
);
void LoggingOpenFailed();
void LoggingIncrementPackageSequence();
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
);
LPCSTR LoggingBurnActionToString(
__in BOOTSTRAPPER_ACTION action
);
LPCSTR LoggingBurnMessageToString(
__in UINT message
);
LPCSTR LoggingActionStateToString(
__in BOOTSTRAPPER_ACTION_STATE actionState
);
LPCSTR LoggingDependencyActionToString(
BURN_DEPENDENCY_ACTION action
);
LPCSTR LoggingBoolToString(
__in BOOL f
);
LPCSTR LoggingTrueFalseToString(
__in BOOL f
);
LPCSTR LoggingPackageStateToString(
__in BOOTSTRAPPER_PACKAGE_STATE packageState
);
LPCSTR LoggingPackageRegistrationStateToString(
__in BOOL fCanAffectRegistration,
__in BURN_PACKAGE_REGISTRATION_STATE registrationState
);
LPCSTR LoggingCacheStateToString(
__in BURN_CACHE_STATE cacheState
);
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 LoggingPerMachineToString(
__in BOOL fPerMachine
);
LPCSTR LoggingRestartToString(
__in BOOTSTRAPPER_APPLY_RESTART restart
);
LPCSTR LoggingResumeModeToString(
__in BURN_RESUME_MODE resumeMode
);
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
);
#if defined(__cplusplus)
}
#endif
|