| 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 eAssemblyAttributes |
| 6 | { |
| 7 | aaEventClass = (1 << 0), |
| 8 | aaDotNetAssembly = (1 << 1), |
| 9 | aaPathFromGAC = (1 << 2), |
| 10 | aaRunInCommit = (1 << 3) |
| 11 | }; |
| 12 | |
| 13 | |
| 14 | // structs |
| 15 | |
| 16 | struct CPISCHED_ROLE_ASSIGNMENT |
| 17 | { |
| 18 | WCHAR wzKey[MAX_DARWIN_KEY + 1]; |
| 19 | |
| 20 | INSTALLSTATE isInstalled, isAction; |
| 21 | |
| 22 | CPI_APPLICATION_ROLE* pApplicationRole; |
| 23 | |
| 24 | CPISCHED_ROLE_ASSIGNMENT* pNext; |
| 25 | }; |
| 26 | |
| 27 | struct CPISCHED_METHOD |
| 28 | { |
| 29 | WCHAR wzKey[MAX_DARWIN_KEY + 1]; |
| 30 | WCHAR wzIndex[11 + 1]; |
| 31 | WCHAR wzName[MAX_DARWIN_COLUMN + 1]; |
| 32 | |
| 33 | int iPropertyCount; |
| 34 | CPI_PROPERTY* pProperties; |
| 35 | |
| 36 | int iRoleInstallCount; |
| 37 | int iRoleUninstallCount; |
| 38 | CPISCHED_ROLE_ASSIGNMENT* pRoles; |
| 39 | |
| 40 | CPISCHED_METHOD* pNext; |
| 41 | }; |
| 42 | |
| 43 | struct CPISCHED_INTERFACE |
| 44 | { |
| 45 | WCHAR wzKey[MAX_DARWIN_KEY + 1]; |
| 46 | WCHAR wzIID[CPI_MAX_GUID + 1]; |
| 47 | |
| 48 | int iPropertyCount; |
| 49 | CPI_PROPERTY* pProperties; |
| 50 | |
| 51 | int iRoleInstallCount; |
| 52 | int iRoleUninstallCount; |
| 53 | CPISCHED_ROLE_ASSIGNMENT* pRoles; |
| 54 | |
| 55 | int iMethodCount; |
| 56 | CPISCHED_METHOD* pMethods; |
| 57 | |
| 58 | CPISCHED_INTERFACE* pNext; |
| 59 | }; |
| 60 | |
| 61 | struct CPISCHED_COMPONENT |
| 62 | { |
| 63 | WCHAR wzKey[MAX_DARWIN_KEY + 1]; |
| 64 | WCHAR wzCLSID[CPI_MAX_GUID + 1]; |
| 65 | |
| 66 | int iPropertyCount; |
| 67 | CPI_PROPERTY* pProperties; |
| 68 | |
| 69 | int iRoleInstallCount; |
| 70 | int iRoleUninstallCount; |
| 71 | CPISCHED_ROLE_ASSIGNMENT* pRoles; |
| 72 | |
| 73 | int iInterfaceCount; |
| 74 | CPISCHED_INTERFACE* pInterfaces; |
| 75 | |
| 76 | ICatalogCollection* piSubsColl; |
| 77 | |
| 78 | CPISCHED_COMPONENT* pNext; |
| 79 | }; |
| 80 | |
| 81 | struct CPI_ASSEMBLY |
| 82 | { |
| 83 | WCHAR wzKey[MAX_DARWIN_KEY + 1]; |
| 84 | WCHAR wzModule[MAX_DARWIN_KEY + 1]; |
| 85 | LPWSTR pwzAssemblyName; |
| 86 | LPWSTR pwzDllPath; |
| 87 | LPWSTR pwzTlbPath; |
| 88 | LPWSTR pwzPSDllPath; |
| 89 | int iAttributes; |
| 90 | |
| 91 | int iComponentCount; |
| 92 | CPISCHED_COMPONENT* pComponents; |
| 93 | |
| 94 | BOOL fReferencedForInstall; |
| 95 | BOOL fReferencedForUninstall; |
| 96 | BOOL fIgnore; |
| 97 | |
| 98 | int iRoleAssignmentsInstallCount; |
| 99 | int iRoleAssignmentsUninstallCount; |
| 100 | |
| 101 | INSTALLSTATE isInstalled, isAction; |
| 102 | |
| 103 | CPI_APPLICATION* pApplication; |
| 104 | |
| 105 | CPI_ASSEMBLY* pPrev; |
| 106 | CPI_ASSEMBLY* pNext; |
| 107 | }; |
| 108 | |
| 109 | struct CPI_ASSEMBLY_LIST |
| 110 | { |
| 111 | CPI_ASSEMBLY* pFirst; |
| 112 | CPI_ASSEMBLY* pLast; |
| 113 | |
| 114 | int iInstallCount; |
| 115 | int iCommitCount; |
| 116 | int iUninstallCount; |
| 117 | |
| 118 | int iRoleInstallCount; |
| 119 | int iRoleCommitCount; |
| 120 | int iRoleUninstallCount; |
| 121 | }; |
| 122 | |
| 123 | |
| 124 | // function prototypes |
| 125 | |
| 126 | void CpiAssemblyListFree( |
| 127 | CPI_ASSEMBLY_LIST* pList |
| 128 | ); |
| 129 | HRESULT CpiAssembliesRead( |
| 130 | CPI_APPLICATION_LIST* pAppList, |
| 131 | CPI_APPLICATION_ROLE_LIST* pAppRoleList, |
| 132 | CPI_ASSEMBLY_LIST* pAsmList |
| 133 | ); |
| 134 | HRESULT CpiAssembliesVerifyInstall( |
| 135 | CPI_ASSEMBLY_LIST* pList |
| 136 | ); |
| 137 | HRESULT CpiAssembliesVerifyUninstall( |
| 138 | CPI_ASSEMBLY_LIST* pList |
| 139 | ); |
| 140 | HRESULT CpiAssembliesInstall( |
| 141 | CPI_ASSEMBLY_LIST* pList, |
| 142 | int iRunMode, |
| 143 | LPWSTR* ppwzActionData, |
| 144 | int* piProgress |
| 145 | ); |
| 146 | HRESULT CpiAssembliesUninstall( |
| 147 | CPI_ASSEMBLY_LIST* pList, |
| 148 | int iRunMode, |
| 149 | LPWSTR* ppwzActionData, |
| 150 | int* piProgress |
| 151 | ); |
| 152 | HRESULT CpiRoleAssignmentsInstall( |
| 153 | CPI_ASSEMBLY_LIST* pList, |
| 154 | int iRunMode, |
| 155 | LPWSTR* ppwzActionData, |
| 156 | int* piProgress |
| 157 | ); |
| 158 | HRESULT CpiRoleAssignmentsUninstall( |
| 159 | CPI_ASSEMBLY_LIST* pList, |
| 160 | int iRunMode, |
| 161 | LPWSTR* ppwzActionData, |
| 162 | int* piProgress |
| 163 | ); |
| 164 | HRESULT CpiGetSubscriptionsCollForComponent( |
| 165 | CPI_ASSEMBLY* pAsm, |
| 166 | CPISCHED_COMPONENT* pComp, |
| 167 | ICatalogCollection** ppiSubsColl |
| 168 | ); |