| 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 | struct CPI_APPLICATION |
| 6 | { |
| 7 | WCHAR wzKey[MAX_DARWIN_KEY + 1]; |
| 8 | WCHAR wzID[CPI_MAX_GUID + 1]; |
| 9 | WCHAR wzName[MAX_DARWIN_COLUMN + 1]; |
| 10 | |
| 11 | int iPropertyCount; |
| 12 | CPI_PROPERTY* pProperties; |
| 13 | |
| 14 | BOOL fHasComponent; |
| 15 | BOOL fReferencedForInstall; |
| 16 | BOOL fReferencedForUninstall; |
| 17 | BOOL fObjectNotFound; |
| 18 | |
| 19 | INSTALLSTATE isInstalled, isAction; |
| 20 | |
| 21 | CPI_PARTITION* pPartition; |
| 22 | |
| 23 | ICatalogCollection* piRolesColl; |
| 24 | ICatalogCollection* piCompsColl; |
| 25 | |
| 26 | CPI_APPLICATION* pNext; |
| 27 | }; |
| 28 | |
| 29 | struct CPI_APPLICATION_LIST |
| 30 | { |
| 31 | CPI_APPLICATION* pFirst; |
| 32 | |
| 33 | int iInstallCount; |
| 34 | int iUninstallCount; |
| 35 | }; |
| 36 | |
| 37 | |
| 38 | // function prototypes |
| 39 | |
| 40 | void CpiApplicationListFree( |
| 41 | CPI_APPLICATION_LIST* pList |
| 42 | ); |
| 43 | HRESULT CpiApplicationsRead( |
| 44 | CPI_PARTITION_LIST* pPartList, |
| 45 | CPI_APPLICATION_LIST* pAppList |
| 46 | ); |
| 47 | HRESULT CpiApplicationsVerifyInstall( |
| 48 | CPI_APPLICATION_LIST* pList |
| 49 | ); |
| 50 | HRESULT CpiApplicationsVerifyUninstall( |
| 51 | CPI_APPLICATION_LIST* pList |
| 52 | ); |
| 53 | void CpiApplicationAddReferenceInstall( |
| 54 | CPI_APPLICATION* pItm |
| 55 | ); |
| 56 | void CpiApplicationAddReferenceUninstall( |
| 57 | CPI_APPLICATION* pItm |
| 58 | ); |
| 59 | HRESULT CpiApplicationsInstall( |
| 60 | CPI_APPLICATION_LIST* pList, |
| 61 | int iRunMode, |
| 62 | LPWSTR* ppwzActionData, |
| 63 | int* piProgress |
| 64 | ); |
| 65 | HRESULT CpiApplicationsUninstall( |
| 66 | CPI_APPLICATION_LIST* pList, |
| 67 | int iRunMode, |
| 68 | LPWSTR* ppwzActionData, |
| 69 | int* piProgress |
| 70 | ); |
| 71 | HRESULT CpiApplicationFindByKey( |
| 72 | CPI_APPLICATION_LIST* pList, |
| 73 | LPCWSTR pwzKey, |
| 74 | CPI_APPLICATION** ppApp |
| 75 | ); |
| 76 | HRESULT CpiGetRolesCollForApplication( |
| 77 | CPI_APPLICATION* pApp, |
| 78 | ICatalogCollection** ppiRolesColl |
| 79 | ); |
| 80 | HRESULT CpiGetComponentsCollForApplication( |
| 81 | CPI_APPLICATION* pApp, |
| 82 | ICatalogCollection** ppiCompsColl |
| 83 | ); |