aboutsummaryrefslogtreecommitdiff
path: root/src/ext/Iis/ca/scaapppool.h
blob: 68575fcb43e7235af523e50f8f9f62ad1078dd77 (plain)
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
#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.


#include "scauser.h"

// Identity
#define APATTR_NETSERVICE 0x0001 // Network Service
#define APATTR_LOCSERVICE 0x0002 // Local Service
#define APATTR_LOCSYSTEM 0x0004 // Local System
#define APATTR_OTHERUSER 0x0008 // Other User

struct SCA_APPPOOL
{
    // iis app pool configuation information
    WCHAR wzAppPool[MAX_DARWIN_KEY + 1];
    WCHAR wzName[METADATA_MAX_NAME_LEN + 1];
    WCHAR wzKey[METADATA_MAX_NAME_LEN + 1];
    WCHAR wzComponent[METADATA_MAX_NAME_LEN + 1];
    BOOL fHasComponent;
    INSTALLSTATE isInstalled;
    INSTALLSTATE isAction;
    INT iAttributes;

    SCA_USER suUser;

    INT iRecycleRequests;
    INT iRecycleMinutes;
    WCHAR wzRecycleTimes[MAX_DARWIN_KEY + 1];
    INT iVirtualMemory;
    INT iPrivateMemory;

    INT iIdleTimeout;
    INT iQueueLimit;
    WCHAR wzCpuMon[MAX_DARWIN_KEY + 1];
    INT iMaxProcesses;
    WCHAR wzManagedPipelineMode[MAX_DARWIN_KEY + 1];
    WCHAR wzManagedRuntimeVersion[MAX_DARWIN_KEY + 1];

    int iCompAttributes;

    SCA_APPPOOL *psapNext;
};


// prototypes

HRESULT ScaAppPoolRead(
    __inout SCA_APPPOOL** ppsapList,
    __in WCA_WRAPQUERY_HANDLE hUserQuery,
    __inout LPWSTR *ppwzCustomActionData
    );

void ScaAppPoolFreeList(
    __in SCA_APPPOOL* psapList
    );

HRESULT ScaFindAppPool(
    __in IMSAdminBase* piMetabase,
    __in LPCWSTR wzAppPool,
    __out_ecount(cchName) LPWSTR wzName,
    __in DWORD cchName,
    __in SCA_APPPOOL *psapList
    );

HRESULT ScaAppPoolInstall(
    __in IMSAdminBase* piMetabase,
    __in SCA_APPPOOL* psapList
    );

HRESULT ScaAppPoolUninstall(
    __in IMSAdminBase* piMetabase,
    __in SCA_APPPOOL* psapList
    );

HRESULT ScaWriteAppPool(
    __in IMSAdminBase* piMetabase,
    __in SCA_APPPOOL* psap
    );

HRESULT ScaRemoveAppPool(
    __in IMSAdminBase* piMetabase,
    __in SCA_APPPOOL* psap
    );

HRESULT AddAppPoolToList(
    __in SCA_APPPOOL** ppsapList
    );