aboutsummaryrefslogtreecommitdiff
path: root/src/ext/Iis/ca/scaapppool.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ext/Iis/ca/scaapppool.h')
-rw-r--r--src/ext/Iis/ca/scaapppool.h88
1 files changed, 88 insertions, 0 deletions
diff --git a/src/ext/Iis/ca/scaapppool.h b/src/ext/Iis/ca/scaapppool.h
new file mode 100644
index 00000000..68575fcb
--- /dev/null
+++ b/src/ext/Iis/ca/scaapppool.h
@@ -0,0 +1,88 @@
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#include "scauser.h"
6
7// Identity
8#define APATTR_NETSERVICE 0x0001 // Network Service
9#define APATTR_LOCSERVICE 0x0002 // Local Service
10#define APATTR_LOCSYSTEM 0x0004 // Local System
11#define APATTR_OTHERUSER 0x0008 // Other User
12
13struct SCA_APPPOOL
14{
15 // iis app pool configuation information
16 WCHAR wzAppPool[MAX_DARWIN_KEY + 1];
17 WCHAR wzName[METADATA_MAX_NAME_LEN + 1];
18 WCHAR wzKey[METADATA_MAX_NAME_LEN + 1];
19 WCHAR wzComponent[METADATA_MAX_NAME_LEN + 1];
20 BOOL fHasComponent;
21 INSTALLSTATE isInstalled;
22 INSTALLSTATE isAction;
23 INT iAttributes;
24
25 SCA_USER suUser;
26
27 INT iRecycleRequests;
28 INT iRecycleMinutes;
29 WCHAR wzRecycleTimes[MAX_DARWIN_KEY + 1];
30 INT iVirtualMemory;
31 INT iPrivateMemory;
32
33 INT iIdleTimeout;
34 INT iQueueLimit;
35 WCHAR wzCpuMon[MAX_DARWIN_KEY + 1];
36 INT iMaxProcesses;
37 WCHAR wzManagedPipelineMode[MAX_DARWIN_KEY + 1];
38 WCHAR wzManagedRuntimeVersion[MAX_DARWIN_KEY + 1];
39
40 int iCompAttributes;
41
42 SCA_APPPOOL *psapNext;
43};
44
45
46// prototypes
47
48HRESULT ScaAppPoolRead(
49 __inout SCA_APPPOOL** ppsapList,
50 __in WCA_WRAPQUERY_HANDLE hUserQuery,
51 __inout LPWSTR *ppwzCustomActionData
52 );
53
54void ScaAppPoolFreeList(
55 __in SCA_APPPOOL* psapList
56 );
57
58HRESULT ScaFindAppPool(
59 __in IMSAdminBase* piMetabase,
60 __in LPCWSTR wzAppPool,
61 __out_ecount(cchName) LPWSTR wzName,
62 __in DWORD cchName,
63 __in SCA_APPPOOL *psapList
64 );
65
66HRESULT ScaAppPoolInstall(
67 __in IMSAdminBase* piMetabase,
68 __in SCA_APPPOOL* psapList
69 );
70
71HRESULT ScaAppPoolUninstall(
72 __in IMSAdminBase* piMetabase,
73 __in SCA_APPPOOL* psapList
74 );
75
76HRESULT ScaWriteAppPool(
77 __in IMSAdminBase* piMetabase,
78 __in SCA_APPPOOL* psap
79 );
80
81HRESULT ScaRemoveAppPool(
82 __in IMSAdminBase* piMetabase,
83 __in SCA_APPPOOL* psap
84 );
85
86HRESULT AddAppPoolToList(
87 __in SCA_APPPOOL** ppsapList
88 );