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
|
#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
enum GENERIC_EXECUTE_MESSAGE_TYPE
{
GENERIC_EXECUTE_MESSAGE_NONE,
GENERIC_EXECUTE_MESSAGE_ERROR,
GENERIC_EXECUTE_MESSAGE_PROGRESS,
GENERIC_EXECUTE_MESSAGE_NETFX_FILES_IN_USE,
GENERIC_EXECUTE_MESSAGE_PROCESS_CANCEL,
GENERIC_EXECUTE_MESSAGE_PROCESS_STARTED,
GENERIC_EXECUTE_MESSAGE_PROCESS_COMPLETED,
};
typedef struct _APPLY_AUTHENTICATION_REQUIRED_DATA
{
BURN_USER_EXPERIENCE* pUX;
LPCWSTR wzPackageOrContainerId;
LPCWSTR wzPayloadId;
} APPLY_AUTHENTICATION_REQUIRED_DATA;
typedef struct _GENERIC_EXECUTE_MESSAGE
{
GENERIC_EXECUTE_MESSAGE_TYPE type;
DWORD dwUIHint;
union
{
struct
{
DWORD dwErrorCode;
LPCWSTR wzMessage;
} error;
struct
{
DWORD dwPercentage;
} progress;
struct
{
DWORD cFiles;
LPCWSTR* rgwzFiles;
} filesInUse;
struct
{
DWORD dwProcessId;
} processCancel;
};
} GENERIC_EXECUTE_MESSAGE;
typedef int (*PFN_GENERICMESSAGEHANDLER)(
__in GENERIC_EXECUTE_MESSAGE* pMessage,
__in LPVOID pvContext
);
void ApplyInitialize();
void ApplyUninitialize();
HRESULT ApplySetVariables(
__in BURN_VARIABLES* pVariables
);
void ApplyReset(
__in BURN_USER_EXPERIENCE* pUX,
__in BURN_PACKAGES* pPackages
);
HRESULT ApplyLock(
__in BOOL fPerMachine,
__out HANDLE* phLock
);
HRESULT ApplyRegister(
__in BURN_ENGINE_STATE* pEngineState
);
HRESULT ApplyUnregister(
__in BURN_ENGINE_STATE* pEngineState,
__in BOOL fFailed,
__in BOOL fSuspend,
__in BOOTSTRAPPER_APPLY_RESTART restart
);
HRESULT ApplyCache(
__in HANDLE hSourceEngineFile,
__in BURN_USER_EXPERIENCE* pUX,
__in BURN_VARIABLES* pVariables,
__in BURN_PLAN* pPlan,
__in HANDLE hPipe,
__in BURN_APPLY_CONTEXT* pContext
);
void ApplyCacheRollback(
__in BURN_USER_EXPERIENCE* pUX,
__in BURN_PLAN* pPlan,
__in HANDLE hPipe,
__in BURN_APPLY_CONTEXT* pContext
);
HRESULT ApplyExecute(
__in BURN_ENGINE_STATE* pEngineState,
__in BURN_APPLY_CONTEXT* pApplyContext,
__out BOOL* pfSuspend,
__out BOOTSTRAPPER_APPLY_RESTART* pRestart
);
void ApplyClean(
__in BURN_USER_EXPERIENCE* pUX,
__in BURN_PLAN* pPlan,
__in HANDLE hPipe
);
#ifdef __cplusplus
}
#endif
|