1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
#pragma once
// 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.
struct CPI_PARTITION
{
WCHAR wzKey[MAX_DARWIN_KEY + 1];
WCHAR wzID[CPI_MAX_GUID + 1];
WCHAR wzName[MAX_DARWIN_COLUMN + 1];
int iPropertyCount;
CPI_PROPERTY* pProperties;
BOOL fHasComponent;
BOOL fReferencedForInstall;
BOOL fReferencedForUninstall;
BOOL fObjectNotFound;
INSTALLSTATE isInstalled, isAction;
ICatalogCollection* piApplicationsColl;
ICatalogCollection* piRolesColl;
CPI_PARTITION* pNext;
};
struct CPI_PARTITION_LIST
{
CPI_PARTITION* pFirst;
int iInstallCount;
int iUninstallCount;
};
struct CPI_PARTITION_USER
{
WCHAR wzKey[MAX_DARWIN_KEY + 1];
LPWSTR pwzAccount;
BOOL fNoFind;
INSTALLSTATE isInstalled, isAction;
CPI_PARTITION* pPartition;
CPI_PARTITION_USER* pNext;
};
struct CPI_PARTITION_USER_LIST
{
CPI_PARTITION_USER* pFirst;
int iInstallCount;
int iUninstallCount;
};
// function prototypes
void CpiPartitionListFree(
CPI_PARTITION_LIST* pList
);
HRESULT CpiPartitionsRead(
CPI_PARTITION_LIST* pPartList
);
HRESULT CpiPartitionsVerifyInstall(
CPI_PARTITION_LIST* pList
);
HRESULT CpiPartitionsVerifyUninstall(
CPI_PARTITION_LIST* pList
);
void CpiPartitionAddReferenceInstall(
CPI_PARTITION* pItm
);
void CpiPartitionAddReferenceUninstall(
CPI_PARTITION* pItm
);
HRESULT CpiPartitionsInstall(
CPI_PARTITION_LIST* pList,
int iRunMode,
LPWSTR* ppwzActionData,
int* piProgress
);
HRESULT CpiPartitionsUninstall(
CPI_PARTITION_LIST* pList,
int iRunMode,
LPWSTR* ppwzActionData,
int* piProgress
);
HRESULT CpiPartitionFindByKey(
CPI_PARTITION_LIST* pList,
LPCWSTR wzKey,
CPI_PARTITION** ppItm
);
HRESULT CpiGetApplicationsCollForPartition(
CPI_PARTITION* pPart,
ICatalogCollection** ppiAppColl
);
HRESULT CpiGetPartitionUsersCollection(
CPI_PARTITION* pPart,
ICatalogCollection** ppiPartUsrColl
);
HRESULT CpiGetRolesCollForPartition(
CPI_PARTITION* pPart,
ICatalogCollection** ppiRolesColl
);
void CpiPartitionUserListFree(
CPI_PARTITION_USER_LIST* pList
);
HRESULT CpiPartitionUsersRead(
CPI_PARTITION_LIST* pPartList,
CPI_PARTITION_USER_LIST* pPartUsrList
);
HRESULT CpiPartitionUsersInstall(
CPI_PARTITION_USER_LIST* pList,
int iRunMode,
LPWSTR* ppwzActionData,
int* piProgress
);
HRESULT CpiPartitionUsersUninstall(
CPI_PARTITION_USER_LIST* pList,
int iRunMode,
LPWSTR* ppwzActionData,
int* piProgress
);
|