diff options
Diffstat (limited to 'src/ca/cppartsched.h')
| -rw-r--r-- | src/ca/cppartsched.h | 125 |
1 files changed, 125 insertions, 0 deletions
diff --git a/src/ca/cppartsched.h b/src/ca/cppartsched.h new file mode 100644 index 00000000..55085912 --- /dev/null +++ b/src/ca/cppartsched.h | |||
| @@ -0,0 +1,125 @@ | |||
| 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_PARTITION | ||
| 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 | ICatalogCollection* piApplicationsColl; | ||
| 22 | ICatalogCollection* piRolesColl; | ||
| 23 | |||
| 24 | CPI_PARTITION* pNext; | ||
| 25 | }; | ||
| 26 | |||
| 27 | struct CPI_PARTITION_LIST | ||
| 28 | { | ||
| 29 | CPI_PARTITION* pFirst; | ||
| 30 | |||
| 31 | int iInstallCount; | ||
| 32 | int iUninstallCount; | ||
| 33 | }; | ||
| 34 | |||
| 35 | struct CPI_PARTITION_USER | ||
| 36 | { | ||
| 37 | WCHAR wzKey[MAX_DARWIN_KEY + 1]; | ||
| 38 | LPWSTR pwzAccount; | ||
| 39 | |||
| 40 | BOOL fNoFind; | ||
| 41 | |||
| 42 | INSTALLSTATE isInstalled, isAction; | ||
| 43 | |||
| 44 | CPI_PARTITION* pPartition; | ||
| 45 | |||
| 46 | CPI_PARTITION_USER* pNext; | ||
| 47 | }; | ||
| 48 | |||
| 49 | struct CPI_PARTITION_USER_LIST | ||
| 50 | { | ||
| 51 | CPI_PARTITION_USER* pFirst; | ||
| 52 | |||
| 53 | int iInstallCount; | ||
| 54 | int iUninstallCount; | ||
| 55 | }; | ||
| 56 | |||
| 57 | |||
| 58 | // function prototypes | ||
| 59 | |||
| 60 | void CpiPartitionListFree( | ||
| 61 | CPI_PARTITION_LIST* pList | ||
| 62 | ); | ||
| 63 | HRESULT CpiPartitionsRead( | ||
| 64 | CPI_PARTITION_LIST* pPartList | ||
| 65 | ); | ||
| 66 | HRESULT CpiPartitionsVerifyInstall( | ||
| 67 | CPI_PARTITION_LIST* pList | ||
| 68 | ); | ||
| 69 | HRESULT CpiPartitionsVerifyUninstall( | ||
| 70 | CPI_PARTITION_LIST* pList | ||
| 71 | ); | ||
| 72 | void CpiPartitionAddReferenceInstall( | ||
| 73 | CPI_PARTITION* pItm | ||
| 74 | ); | ||
| 75 | void CpiPartitionAddReferenceUninstall( | ||
| 76 | CPI_PARTITION* pItm | ||
| 77 | ); | ||
| 78 | HRESULT CpiPartitionsInstall( | ||
| 79 | CPI_PARTITION_LIST* pList, | ||
| 80 | int iRunMode, | ||
| 81 | LPWSTR* ppwzActionData, | ||
| 82 | int* piProgress | ||
| 83 | ); | ||
| 84 | HRESULT CpiPartitionsUninstall( | ||
| 85 | CPI_PARTITION_LIST* pList, | ||
| 86 | int iRunMode, | ||
| 87 | LPWSTR* ppwzActionData, | ||
| 88 | int* piProgress | ||
| 89 | ); | ||
| 90 | HRESULT CpiPartitionFindByKey( | ||
| 91 | CPI_PARTITION_LIST* pList, | ||
| 92 | LPCWSTR wzKey, | ||
| 93 | CPI_PARTITION** ppItm | ||
| 94 | ); | ||
| 95 | HRESULT CpiGetApplicationsCollForPartition( | ||
| 96 | CPI_PARTITION* pPart, | ||
| 97 | ICatalogCollection** ppiAppColl | ||
| 98 | ); | ||
| 99 | HRESULT CpiGetPartitionUsersCollection( | ||
| 100 | CPI_PARTITION* pPart, | ||
| 101 | ICatalogCollection** ppiPartUsrColl | ||
| 102 | ); | ||
| 103 | HRESULT CpiGetRolesCollForPartition( | ||
| 104 | CPI_PARTITION* pPart, | ||
| 105 | ICatalogCollection** ppiRolesColl | ||
| 106 | ); | ||
| 107 | void CpiPartitionUserListFree( | ||
| 108 | CPI_PARTITION_USER_LIST* pList | ||
| 109 | ); | ||
| 110 | HRESULT CpiPartitionUsersRead( | ||
| 111 | CPI_PARTITION_LIST* pPartList, | ||
| 112 | CPI_PARTITION_USER_LIST* pPartUsrList | ||
| 113 | ); | ||
| 114 | HRESULT CpiPartitionUsersInstall( | ||
| 115 | CPI_PARTITION_USER_LIST* pList, | ||
| 116 | int iRunMode, | ||
| 117 | LPWSTR* ppwzActionData, | ||
| 118 | int* piProgress | ||
| 119 | ); | ||
| 120 | HRESULT CpiPartitionUsersUninstall( | ||
| 121 | CPI_PARTITION_USER_LIST* pList, | ||
| 122 | int iRunMode, | ||
| 123 | LPWSTR* ppwzActionData, | ||
| 124 | int* piProgress | ||
| 125 | ); | ||
