diff options
Diffstat (limited to 'src/ext/ComPlus/ca/cputilsched.h')
-rw-r--r-- | src/ext/ComPlus/ca/cputilsched.h | 132 |
1 files changed, 132 insertions, 0 deletions
diff --git a/src/ext/ComPlus/ca/cputilsched.h b/src/ext/ComPlus/ca/cputilsched.h new file mode 100644 index 00000000..1f315576 --- /dev/null +++ b/src/ext/ComPlus/ca/cputilsched.h | |||
@@ -0,0 +1,132 @@ | |||
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 | enum eRunMode { rmDeferred = 1, rmCommit, rmRollback }; | ||
6 | |||
7 | enum eComPlusPropertyType { cpptNone = 0, cpptBoolean, cpptInteger, cpptString, cpptUser }; | ||
8 | |||
9 | enum eComPlusTables | ||
10 | { | ||
11 | cptComPlusPartition = (1 << 0), | ||
12 | cptComPlusPartitionProperty = (1 << 1), | ||
13 | cptComPlusPartitionRole = (1 << 2), | ||
14 | cptComPlusUserInPartitionRole = (1 << 3), | ||
15 | cptComPlusGroupInPartitionRole = (1 << 4), | ||
16 | cptComPlusPartitionUser = (1 << 5), | ||
17 | cptComPlusApplication = (1 << 6), | ||
18 | cptComPlusApplicationProperty = (1 << 7), | ||
19 | cptComPlusApplicationRole = (1 << 8), | ||
20 | cptComPlusApplicationRoleProperty = (1 << 9), | ||
21 | cptComPlusUserInApplicationRole = (1 << 10), | ||
22 | cptComPlusGroupInApplicationRole = (1 << 11), | ||
23 | cptComPlusAssembly = (1 << 12), | ||
24 | cptComPlusAssemblyDependency = (1 << 13), | ||
25 | cptComPlusComponent = (1 << 14), | ||
26 | cptComPlusComponentProperty = (1 << 15), | ||
27 | cptComPlusRoleForComponent = (1 << 16), | ||
28 | cptComPlusInterface = (1 << 17), | ||
29 | cptComPlusInterfaceProperty = (1 << 18), | ||
30 | cptComPlusRoleForInterface = (1 << 19), | ||
31 | cptComPlusMethod = (1 << 20), | ||
32 | cptComPlusMethodProperty = (1 << 21), | ||
33 | cptComPlusRoleForMethod = (1 << 22), | ||
34 | cptComPlusSubscription = (1 << 23), | ||
35 | cptComPlusSubscriptionProperty = (1 << 24) | ||
36 | }; | ||
37 | |||
38 | |||
39 | // structs | ||
40 | |||
41 | struct CPI_PROPERTY_DEFINITION | ||
42 | { | ||
43 | LPCWSTR pwzName; | ||
44 | int iType; | ||
45 | int iMinVersionNT; | ||
46 | }; | ||
47 | |||
48 | |||
49 | // function prototypes | ||
50 | |||
51 | void CpiSchedInitialize(); | ||
52 | void CpiSchedFinalize(); | ||
53 | BOOL CpiTableExists( | ||
54 | int iTable | ||
55 | ); | ||
56 | HRESULT CpiSchedGetAdminCatalog( | ||
57 | ICOMAdminCatalog** ppiCatalog | ||
58 | ); | ||
59 | HRESULT CpiSchedGetCatalogCollection( | ||
60 | LPCWSTR pwzName, | ||
61 | ICatalogCollection** ppiColl | ||
62 | ); | ||
63 | HRESULT CpiSchedGetCatalogCollection( | ||
64 | ICatalogCollection* piColl, | ||
65 | ICatalogObject* piObj, | ||
66 | LPCWSTR pwzName, | ||
67 | ICatalogCollection** ppiColl | ||
68 | ); | ||
69 | HRESULT CpiGetKeyForObject( | ||
70 | ICatalogObject* piObj, | ||
71 | LPWSTR pwzKey, | ||
72 | SIZE_T cchKey | ||
73 | ); | ||
74 | HRESULT CpiFindCollectionObject( | ||
75 | ICatalogCollection* piColl, | ||
76 | LPCWSTR pwzID, | ||
77 | LPCWSTR pwzName, | ||
78 | ICatalogObject** ppiObj | ||
79 | ); | ||
80 | HRESULT CpiSchedGetPartitionsCollection( | ||
81 | ICatalogCollection** ppiPartColl | ||
82 | ); | ||
83 | HRESULT CpiSchedGetApplicationsCollection( | ||
84 | ICatalogCollection** ppiAppColl | ||
85 | ); | ||
86 | HRESULT CpiAddActionTextToActionData( | ||
87 | LPCWSTR pwzAction, | ||
88 | LPWSTR* ppwzActionData | ||
89 | ); | ||
90 | HRESULT CpiVerifyComponentArchitecure( | ||
91 | LPCWSTR pwzComponent, | ||
92 | BOOL* pfMatchingArchitecture | ||
93 | ); | ||
94 | HRESULT CpiPropertiesRead( | ||
95 | LPCWSTR pwzQuery, | ||
96 | LPCWSTR pwzKey, | ||
97 | CPI_PROPERTY_DEFINITION* pPropDefList, | ||
98 | CPI_PROPERTY** ppPropList, | ||
99 | int* piCount | ||
100 | ); | ||
101 | void CpiPropertiesFreeList( | ||
102 | CPI_PROPERTY* pList | ||
103 | ); | ||
104 | HRESULT CpiAddPropertiesToActionData( | ||
105 | int iPropCount, | ||
106 | CPI_PROPERTY* pPropList, | ||
107 | LPWSTR* ppwzActionData | ||
108 | ); | ||
109 | HRESULT CpiBuildAccountName( | ||
110 | LPCWSTR pwzDomain, | ||
111 | LPCWSTR pwzName, | ||
112 | LPWSTR* ppwzAccount | ||
113 | ); | ||
114 | HRESULT CpiGetTempFileName( | ||
115 | LPWSTR* ppwzTempFile | ||
116 | ); | ||
117 | HRESULT CpiCreateId( | ||
118 | LPWSTR pwzDest, | ||
119 | SIZE_T cchDest | ||
120 | ); | ||
121 | BOOL CpiIsInstalled( | ||
122 | INSTALLSTATE isInstalled | ||
123 | ); | ||
124 | BOOL CpiWillBeInstalled( | ||
125 | INSTALLSTATE isInstalled, | ||
126 | INSTALLSTATE isAction | ||
127 | ); | ||
128 | HRESULT PcaGuidToRegFormat( | ||
129 | LPWSTR pwzGuid, | ||
130 | LPWSTR pwzDest, | ||
131 | SIZE_T cchDest | ||
132 | ); | ||