diff options
author | Rob Mensching <rob@firegiant.com> | 2021-05-04 11:41:55 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-05-04 11:41:55 -0700 |
commit | 337124bed6a57b40fca11c5c2f5b554f570522a6 (patch) | |
tree | 06e8552b11852309a2275e4bd63ee61320061876 /src/ext/ComPlus/ca/cputilexec.h | |
parent | eab57c2ddebc3dc8cebc22f5337f50062f415c0d (diff) | |
download | wix-337124bed6a57b40fca11c5c2f5b554f570522a6.tar.gz wix-337124bed6a57b40fca11c5c2f5b554f570522a6.tar.bz2 wix-337124bed6a57b40fca11c5c2f5b554f570522a6.zip |
Move ComPlus.wixext into ext
Diffstat (limited to 'src/ext/ComPlus/ca/cputilexec.h')
-rw-r--r-- | src/ext/ComPlus/ca/cputilexec.h | 193 |
1 files changed, 193 insertions, 0 deletions
diff --git a/src/ext/ComPlus/ca/cputilexec.h b/src/ext/ComPlus/ca/cputilexec.h new file mode 100644 index 00000000..b900883d --- /dev/null +++ b/src/ext/ComPlus/ca/cputilexec.h | |||
@@ -0,0 +1,193 @@ | |||
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 | #define CPI_MAX_GUID 38 | ||
6 | |||
7 | enum eActionType { atNoOp = 0, atCreate, atRemove }; | ||
8 | |||
9 | |||
10 | // structs | ||
11 | |||
12 | struct CPI_PROPERTY | ||
13 | { | ||
14 | WCHAR wzName[MAX_DARWIN_KEY + 1]; | ||
15 | LPWSTR pwzValue; | ||
16 | |||
17 | CPI_PROPERTY* pNext; | ||
18 | }; | ||
19 | |||
20 | struct CPI_ROLLBACK_DATA | ||
21 | { | ||
22 | WCHAR wzKey[MAX_DARWIN_KEY + 1]; | ||
23 | int iStatus; | ||
24 | |||
25 | CPI_ROLLBACK_DATA* pNext; | ||
26 | }; | ||
27 | |||
28 | |||
29 | // function prototypes | ||
30 | |||
31 | void CpiExecInitialize(); | ||
32 | void CpiExecFinalize(); | ||
33 | HRESULT CpiActionStartMessage( | ||
34 | LPWSTR* ppwzActionData, | ||
35 | BOOL fSuppress | ||
36 | ); | ||
37 | HRESULT CpiActionDataMessage( | ||
38 | DWORD cArgs, | ||
39 | ... | ||
40 | ); | ||
41 | HRESULT CpiExecGetAdminCatalog( | ||
42 | ICOMAdminCatalog** ppiCatalog | ||
43 | ); | ||
44 | HRESULT CpiLogCatalogErrorInfo(); | ||
45 | HRESULT CpiExecGetCatalogCollection( | ||
46 | LPCWSTR pwzName, | ||
47 | ICatalogCollection** ppiColl | ||
48 | ); | ||
49 | HRESULT CpiExecGetCatalogCollection( | ||
50 | ICatalogCollection* piColl, | ||
51 | ICatalogObject* piObj, | ||
52 | LPCWSTR pwzName, | ||
53 | ICatalogCollection** ppiColl | ||
54 | ); | ||
55 | HRESULT CpiAddCollectionObject( | ||
56 | ICatalogCollection* piColl, | ||
57 | ICatalogObject** ppiObj | ||
58 | ); | ||
59 | HRESULT CpiPutCollectionObjectValue( | ||
60 | ICatalogObject* piObj, | ||
61 | LPCWSTR pwzPropName, | ||
62 | LPCWSTR pwzValue | ||
63 | ); | ||
64 | HRESULT CpiPutCollectionObjectValues( | ||
65 | ICatalogObject* piObj, | ||
66 | CPI_PROPERTY* pPropList | ||
67 | ); | ||
68 | HRESULT CpiGetCollectionObjectValue( | ||
69 | ICatalogObject* piObj, | ||
70 | LPCWSTR szPropName, | ||
71 | LPWSTR* ppwzValue | ||
72 | ); | ||
73 | HRESULT CpiResetObjectProperty( | ||
74 | ICatalogCollection* piColl, | ||
75 | ICatalogObject* piObj, | ||
76 | LPCWSTR pwzPropName | ||
77 | ); | ||
78 | HRESULT CpiRemoveCollectionObject( | ||
79 | ICatalogCollection* piColl, | ||
80 | LPCWSTR pwzID, | ||
81 | LPCWSTR pwzName, | ||
82 | BOOL fResetDeleteable | ||
83 | ); | ||
84 | HRESULT CpiRemoveUserCollectionObject( | ||
85 | ICatalogCollection* piColl, | ||
86 | PSID pSid | ||
87 | ); | ||
88 | HRESULT CpiFindCollectionObjectByStringKey( | ||
89 | ICatalogCollection* piColl, | ||
90 | LPCWSTR pwzKey, | ||
91 | ICatalogObject** ppiObj | ||
92 | ); | ||
93 | HRESULT CpiFindCollectionObjectByIntegerKey( | ||
94 | ICatalogCollection* piColl, | ||
95 | long lKey, | ||
96 | ICatalogObject** ppiObj | ||
97 | ); | ||
98 | HRESULT CpiFindCollectionObjectByName( | ||
99 | ICatalogCollection* piColl, | ||
100 | LPCWSTR pwzName, | ||
101 | ICatalogObject** ppiObj | ||
102 | ); | ||
103 | HRESULT CpiFindUserCollectionObject( | ||
104 | ICatalogCollection* piColl, | ||
105 | PSID pSid, | ||
106 | ICatalogObject** ppiObj | ||
107 | ); | ||
108 | HRESULT CpiExecGetPartitionsCollection( | ||
109 | ICatalogCollection** ppiPartColl | ||
110 | ); | ||
111 | HRESULT CpiGetPartitionRolesCollection( | ||
112 | LPCWSTR pwzPartID, | ||
113 | ICatalogCollection** ppiRolesColl | ||
114 | ); | ||
115 | HRESULT CpiGetUsersInPartitionRoleCollection( | ||
116 | LPCWSTR pwzPartID, | ||
117 | LPCWSTR pwzRoleName, | ||
118 | ICatalogCollection** ppiUsrInRoleColl | ||
119 | ); | ||
120 | HRESULT CpiGetPartitionUsersCollection( | ||
121 | ICatalogCollection** ppiUserColl | ||
122 | ); | ||
123 | HRESULT CpiExecGetApplicationsCollection( | ||
124 | LPCWSTR pwzPartID, | ||
125 | ICatalogCollection** ppiAppColl | ||
126 | ); | ||
127 | HRESULT CpiGetRolesCollection( | ||
128 | LPCWSTR pwzPartID, | ||
129 | LPCWSTR pwzAppID, | ||
130 | ICatalogCollection** ppiRolesColl | ||
131 | ); | ||
132 | HRESULT CpiGetUsersInRoleCollection( | ||
133 | LPCWSTR pwzPartID, | ||
134 | LPCWSTR pwzAppID, | ||
135 | LPCWSTR pwzRoleName, | ||
136 | ICatalogCollection** ppiUsrInRoleColl | ||
137 | ); | ||
138 | HRESULT CpiGetComponentsCollection( | ||
139 | LPCWSTR pwzPartID, | ||
140 | LPCWSTR pwzAppID, | ||
141 | ICatalogCollection** ppiCompsColl | ||
142 | ); | ||
143 | HRESULT CpiGetInterfacesCollection( | ||
144 | ICatalogCollection* piCompColl, | ||
145 | ICatalogObject* piCompObj, | ||
146 | ICatalogCollection** ppiIntfColl | ||
147 | ); | ||
148 | HRESULT CpiGetMethodsCollection( | ||
149 | ICatalogCollection* piIntfColl, | ||
150 | ICatalogObject* piIntfObj, | ||
151 | ICatalogCollection** ppiMethColl | ||
152 | ); | ||
153 | HRESULT CpiGetSubscriptionsCollection( | ||
154 | LPCWSTR pwzPartID, | ||
155 | LPCWSTR pwzAppID, | ||
156 | LPCWSTR pwzCompCLSID, | ||
157 | ICatalogCollection** ppiCompsColl | ||
158 | ); | ||
159 | HRESULT CpiReadPropertyList( | ||
160 | LPWSTR* ppwzData, | ||
161 | CPI_PROPERTY** ppPropList | ||
162 | ); | ||
163 | void CpiFreePropertyList( | ||
164 | CPI_PROPERTY* pList | ||
165 | ); | ||
166 | HRESULT CpiWriteKeyToRollbackFile( | ||
167 | HANDLE hFile, | ||
168 | LPCWSTR pwzKey | ||
169 | ); | ||
170 | HRESULT CpiWriteIntegerToRollbackFile( | ||
171 | HANDLE hFile, | ||
172 | int i | ||
173 | ); | ||
174 | HRESULT CpiReadRollbackDataList( | ||
175 | HANDLE hFile, | ||
176 | CPI_ROLLBACK_DATA** pprdList | ||
177 | ); | ||
178 | void CpiFreeRollbackDataList( | ||
179 | CPI_ROLLBACK_DATA* pList | ||
180 | ); | ||
181 | HRESULT CpiFindRollbackStatus( | ||
182 | CPI_ROLLBACK_DATA* pList, | ||
183 | LPCWSTR pwzKey, | ||
184 | int* piStatus | ||
185 | ); | ||
186 | HRESULT CpiAccountNameToSid( | ||
187 | LPCWSTR pwzAccountName, | ||
188 | PSID* ppSid | ||
189 | ); | ||
190 | HRESULT CpiSidToAccountName( | ||
191 | PSID pSid, | ||
192 | LPWSTR* ppwzAccountName | ||
193 | ); | ||