| 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_ROLE |
| 6 | { |
| 7 | WCHAR wzKey[MAX_DARWIN_KEY + 1]; |
| 8 | WCHAR wzName[MAX_DARWIN_COLUMN + 1]; |
| 9 | |
| 10 | int iPropertyCount; |
| 11 | CPI_PROPERTY* pProperties; |
| 12 | |
| 13 | BOOL fHasComponent; |
| 14 | BOOL fReferencedForInstall; |
| 15 | BOOL fReferencedForUninstall; |
| 16 | BOOL fObjectNotFound; |
| 17 | |
| 18 | INSTALLSTATE isInstalled, isAction; |
| 19 | |
| 20 | CPI_APPLICATION* pApplication; |
| 21 | |
| 22 | ICatalogCollection* piUsersColl; |
| 23 | |
| 24 | CPI_APPLICATION_ROLE* pNext; |
| 25 | }; |
| 26 | |
| 27 | struct CPI_APPLICATION_ROLE_LIST |
| 28 | { |
| 29 | CPI_APPLICATION_ROLE* pFirst; |
| 30 | |
| 31 | int iInstallCount; |
| 32 | int iUninstallCount; |
| 33 | }; |
| 34 | |
| 35 | struct CPI_USER_IN_APPLICATION_ROLE |
| 36 | { |
| 37 | WCHAR wzKey[MAX_DARWIN_KEY + 1]; |
| 38 | LPWSTR pwzAccount; |
| 39 | |
| 40 | INSTALLSTATE isInstalled, isAction; |
| 41 | |
| 42 | CPI_APPLICATION_ROLE* pApplicationRole; |
| 43 | |
| 44 | CPI_USER_IN_APPLICATION_ROLE* pNext; |
| 45 | }; |
| 46 | |
| 47 | struct CPI_USER_IN_APPLICATION_ROLE_LIST |
| 48 | { |
| 49 | CPI_USER_IN_APPLICATION_ROLE* pFirst; |
| 50 | |
| 51 | int iInstallCount; |
| 52 | int iUninstallCount; |
| 53 | }; |
| 54 | |
| 55 | |
| 56 | // function prototypes |
| 57 | |
| 58 | void CpiApplicationRoleListFree( |
| 59 | CPI_APPLICATION_ROLE_LIST* pList |
| 60 | ); |
| 61 | HRESULT CpiApplicationRolesRead( |
| 62 | CPI_APPLICATION_LIST* pAppList, |
| 63 | CPI_APPLICATION_ROLE_LIST* pAppRoleList |
| 64 | ); |
| 65 | HRESULT CpiApplicationRolesVerifyInstall( |
| 66 | CPI_APPLICATION_ROLE_LIST* pList |
| 67 | ); |
| 68 | HRESULT CpiApplicationRolesVerifyUninstall( |
| 69 | CPI_APPLICATION_ROLE_LIST* pList |
| 70 | ); |
| 71 | void CpiApplicationRoleAddReferenceInstall( |
| 72 | CPI_APPLICATION_ROLE* pItm |
| 73 | ); |
| 74 | void CpiApplicationRoleAddReferenceUninstall( |
| 75 | CPI_APPLICATION_ROLE* pItm |
| 76 | ); |
| 77 | HRESULT CpiApplicationRolesInstall( |
| 78 | CPI_APPLICATION_ROLE_LIST* pList, |
| 79 | int iRunMode, |
| 80 | LPWSTR* ppwzActionData, |
| 81 | int* piProgress |
| 82 | ); |
| 83 | HRESULT CpiApplicationRolesUninstall( |
| 84 | CPI_APPLICATION_ROLE_LIST* pList, |
| 85 | int iRunMode, |
| 86 | LPWSTR* ppwzActionData, |
| 87 | int* piProgress |
| 88 | ); |
| 89 | HRESULT CpiApplicationRoleFindByKey( |
| 90 | CPI_APPLICATION_ROLE_LIST* pList, |
| 91 | LPCWSTR pwzKey, |
| 92 | CPI_APPLICATION_ROLE** ppAppRole |
| 93 | ); |
| 94 | void CpiUserInApplicationRoleListFree( |
| 95 | CPI_USER_IN_APPLICATION_ROLE_LIST* pList |
| 96 | ); |
| 97 | HRESULT CpiUsersInApplicationRolesRead( |
| 98 | CPI_APPLICATION_ROLE_LIST* pAppRoleList, |
| 99 | CPI_USER_IN_APPLICATION_ROLE_LIST* pUsrInAppRoleList |
| 100 | ); |
| 101 | HRESULT CpiUsersInApplicationRolesInstall( |
| 102 | CPI_USER_IN_APPLICATION_ROLE_LIST* pList, |
| 103 | int iRunMode, |
| 104 | LPWSTR* ppwzActionData, |
| 105 | int* piProgress |
| 106 | ); |
| 107 | HRESULT CpiUsersInApplicationRolesUninstall( |
| 108 | CPI_USER_IN_APPLICATION_ROLE_LIST* pList, |
| 109 | int iRunMode, |
| 110 | LPWSTR* ppwzActionData, |
| 111 | int* piProgress |
| 112 | ); |