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
|
#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.
enum eAssemblyAttributes
{
aaEventClass = (1 << 0),
aaDotNetAssembly = (1 << 1),
aaPathFromGAC = (1 << 2),
aaRunInCommit = (1 << 3)
};
// structs
struct CPISCHED_ROLE_ASSIGNMENT
{
WCHAR wzKey[MAX_DARWIN_KEY + 1];
INSTALLSTATE isInstalled, isAction;
CPI_APPLICATION_ROLE* pApplicationRole;
CPISCHED_ROLE_ASSIGNMENT* pNext;
};
struct CPISCHED_METHOD
{
WCHAR wzKey[MAX_DARWIN_KEY + 1];
WCHAR wzIndex[11 + 1];
WCHAR wzName[MAX_DARWIN_COLUMN + 1];
int iPropertyCount;
CPI_PROPERTY* pProperties;
int iRoleInstallCount;
int iRoleUninstallCount;
CPISCHED_ROLE_ASSIGNMENT* pRoles;
CPISCHED_METHOD* pNext;
};
struct CPISCHED_INTERFACE
{
WCHAR wzKey[MAX_DARWIN_KEY + 1];
WCHAR wzIID[CPI_MAX_GUID + 1];
int iPropertyCount;
CPI_PROPERTY* pProperties;
int iRoleInstallCount;
int iRoleUninstallCount;
CPISCHED_ROLE_ASSIGNMENT* pRoles;
int iMethodCount;
CPISCHED_METHOD* pMethods;
CPISCHED_INTERFACE* pNext;
};
struct CPISCHED_COMPONENT
{
WCHAR wzKey[MAX_DARWIN_KEY + 1];
WCHAR wzCLSID[CPI_MAX_GUID + 1];
int iPropertyCount;
CPI_PROPERTY* pProperties;
int iRoleInstallCount;
int iRoleUninstallCount;
CPISCHED_ROLE_ASSIGNMENT* pRoles;
int iInterfaceCount;
CPISCHED_INTERFACE* pInterfaces;
ICatalogCollection* piSubsColl;
CPISCHED_COMPONENT* pNext;
};
struct CPI_ASSEMBLY
{
WCHAR wzKey[MAX_DARWIN_KEY + 1];
WCHAR wzModule[MAX_DARWIN_KEY + 1];
LPWSTR pwzAssemblyName;
LPWSTR pwzDllPath;
LPWSTR pwzTlbPath;
LPWSTR pwzPSDllPath;
int iAttributes;
int iComponentCount;
CPISCHED_COMPONENT* pComponents;
BOOL fReferencedForInstall;
BOOL fReferencedForUninstall;
BOOL fIgnore;
int iRoleAssignmentsInstallCount;
int iRoleAssignmentsUninstallCount;
INSTALLSTATE isInstalled, isAction;
CPI_APPLICATION* pApplication;
CPI_ASSEMBLY* pPrev;
CPI_ASSEMBLY* pNext;
};
struct CPI_ASSEMBLY_LIST
{
CPI_ASSEMBLY* pFirst;
CPI_ASSEMBLY* pLast;
int iInstallCount;
int iCommitCount;
int iUninstallCount;
int iRoleInstallCount;
int iRoleCommitCount;
int iRoleUninstallCount;
};
// function prototypes
void CpiAssemblyListFree(
CPI_ASSEMBLY_LIST* pList
);
HRESULT CpiAssembliesRead(
CPI_APPLICATION_LIST* pAppList,
CPI_APPLICATION_ROLE_LIST* pAppRoleList,
CPI_ASSEMBLY_LIST* pAsmList
);
HRESULT CpiAssembliesVerifyInstall(
CPI_ASSEMBLY_LIST* pList
);
HRESULT CpiAssembliesVerifyUninstall(
CPI_ASSEMBLY_LIST* pList
);
HRESULT CpiAssembliesInstall(
CPI_ASSEMBLY_LIST* pList,
int iRunMode,
LPWSTR* ppwzActionData,
int* piProgress
);
HRESULT CpiAssembliesUninstall(
CPI_ASSEMBLY_LIST* pList,
int iRunMode,
LPWSTR* ppwzActionData,
int* piProgress
);
HRESULT CpiRoleAssignmentsInstall(
CPI_ASSEMBLY_LIST* pList,
int iRunMode,
LPWSTR* ppwzActionData,
int* piProgress
);
HRESULT CpiRoleAssignmentsUninstall(
CPI_ASSEMBLY_LIST* pList,
int iRunMode,
LPWSTR* ppwzActionData,
int* piProgress
);
HRESULT CpiGetSubscriptionsCollForComponent(
CPI_ASSEMBLY* pAsm,
CPISCHED_COMPONENT* pComp,
ICatalogCollection** ppiSubsColl
);
|