diff options
Diffstat (limited to 'src/ca/cppartrolesched.h')
| -rw-r--r-- | src/ca/cppartrolesched.h | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/src/ca/cppartrolesched.h b/src/ca/cppartrolesched.h new file mode 100644 index 00000000..ff1275d9 --- /dev/null +++ b/src/ca/cppartrolesched.h | |||
| @@ -0,0 +1,76 @@ | |||
| 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_ROLE | ||
| 6 | { | ||
| 7 | WCHAR wzKey[MAX_DARWIN_KEY + 1]; | ||
| 8 | WCHAR wzName[MAX_DARWIN_COLUMN + 1]; | ||
| 9 | |||
| 10 | CPI_PARTITION* pPartition; | ||
| 11 | |||
| 12 | ICatalogCollection* piUsersColl; | ||
| 13 | |||
| 14 | CPI_PARTITION_ROLE* pNext; | ||
| 15 | }; | ||
| 16 | |||
| 17 | struct CPI_PARTITION_ROLE_LIST | ||
| 18 | { | ||
| 19 | CPI_PARTITION_ROLE* pFirst; | ||
| 20 | }; | ||
| 21 | |||
| 22 | struct CPI_USER_IN_PARTITION_ROLE | ||
| 23 | { | ||
| 24 | WCHAR wzKey[MAX_DARWIN_KEY + 1]; | ||
| 25 | LPWSTR pwzAccount; | ||
| 26 | |||
| 27 | INSTALLSTATE isInstalled, isAction; | ||
| 28 | |||
| 29 | CPI_PARTITION_ROLE* pPartitionRole; | ||
| 30 | |||
| 31 | CPI_USER_IN_PARTITION_ROLE* pNext; | ||
| 32 | }; | ||
| 33 | |||
| 34 | struct CPI_USER_IN_PARTITION_ROLE_LIST | ||
| 35 | { | ||
| 36 | CPI_USER_IN_PARTITION_ROLE* pFirst; | ||
| 37 | |||
| 38 | int iInstallCount; | ||
| 39 | int iUninstallCount; | ||
| 40 | }; | ||
| 41 | |||
| 42 | |||
| 43 | // function prototypes | ||
| 44 | |||
| 45 | void CpiPartitionRoleListFree( | ||
| 46 | CPI_PARTITION_ROLE_LIST* pList | ||
| 47 | ); | ||
| 48 | HRESULT CpiPartitionRolesRead( | ||
| 49 | CPI_PARTITION_LIST* pPartList, | ||
| 50 | CPI_PARTITION_ROLE_LIST* pPartRoleList | ||
| 51 | ); | ||
| 52 | HRESULT CpiPartitionRoleFindByKey( | ||
| 53 | CPI_PARTITION_ROLE_LIST* pList, | ||
| 54 | LPCWSTR pwzKey, | ||
| 55 | CPI_PARTITION_ROLE** ppPartRole | ||
| 56 | ); | ||
| 57 | |||
| 58 | void CpiUserInPartitionRoleListFree( | ||
| 59 | CPI_USER_IN_PARTITION_ROLE_LIST* pList | ||
| 60 | ); | ||
| 61 | HRESULT CpiUsersInPartitionRolesRead( | ||
| 62 | CPI_PARTITION_ROLE_LIST* pPartRoleList, | ||
| 63 | CPI_USER_IN_PARTITION_ROLE_LIST* pUsrInPartRoleList | ||
| 64 | ); | ||
| 65 | HRESULT CpiUsersInPartitionRolesInstall( | ||
| 66 | CPI_USER_IN_PARTITION_ROLE_LIST* pList, | ||
| 67 | int iRunMode, | ||
| 68 | LPWSTR* ppwzActionData, | ||
| 69 | int* piProgress | ||
| 70 | ); | ||
| 71 | HRESULT CpiUsersInPartitionRolesUninstall( | ||
| 72 | CPI_USER_IN_PARTITION_ROLE_LIST* pList, | ||
| 73 | int iRunMode, | ||
| 74 | LPWSTR* ppwzActionData, | ||
| 75 | int* piProgress | ||
| 76 | ); | ||
