| 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 "scawebapp.h" |
| 6 | #include "scawebprop.h" |
| 7 | #include "scahttpheader.h" |
| 8 | #include "scaweberr.h" |
| 9 | #include "scassl.h" |
| 10 | #include "scaapppool.h" |
| 11 | #include "scaweblog.h" |
| 12 | |
| 13 | // globals |
| 14 | #define MAX_ADDRESSES_PER_WEB 10 |
| 15 | |
| 16 | // structs |
| 17 | struct SCA_WEB7 |
| 18 | { |
| 19 | // darwin information |
| 20 | WCHAR wzKey[MAX_DARWIN_KEY + 1]; |
| 21 | WCHAR wzComponent[MAX_DARWIN_KEY + 1]; |
| 22 | BOOL fHasComponent; |
| 23 | INSTALLSTATE isInstalled; |
| 24 | INSTALLSTATE isAction; |
| 25 | |
| 26 | int iSiteId; |
| 27 | |
| 28 | // metabase information |
| 29 | WCHAR wzWebBase[METADATA_MAX_NAME_LEN + 1]; |
| 30 | BOOL fBaseExists; |
| 31 | |
| 32 | // iis configuation information |
| 33 | SCA_WEB_ADDRESS swaBinding; |
| 34 | |
| 35 | SCA_WEB_ADDRESS swaExtraAddresses[MAX_ADDRESSES_PER_WEB + 1]; |
| 36 | DWORD cExtraAddresses; |
| 37 | |
| 38 | WCHAR wzDirectory[MAX_PATH]; |
| 39 | WCHAR wzDescription[MAX_DARWIN_COLUMN + 1]; |
| 40 | |
| 41 | int iState; |
| 42 | int iAttributes; |
| 43 | |
| 44 | BOOL fHasProperties; |
| 45 | SCA_WEB_PROPERTIES swp; |
| 46 | |
| 47 | BOOL fHasApplication; |
| 48 | SCA_WEB_APPLICATION swapp; |
| 49 | |
| 50 | BOOL fHasSecurity; |
| 51 | int dwAccessPermissions; |
| 52 | int iConnectionTimeout; |
| 53 | |
| 54 | SCA_WEB_SSL_CERTIFICATE* pswscList; |
| 55 | SCA_HTTP_HEADER* pshhList; |
| 56 | SCA_WEB_ERROR* psweList; |
| 57 | |
| 58 | BOOL fHasLog; |
| 59 | SCA_WEB_LOG swl; |
| 60 | |
| 61 | SCA_WEB7* pswNext; |
| 62 | }; |
| 63 | |
| 64 | |
| 65 | // prototypes |
| 66 | HRESULT ScaWebsRead7( |
| 67 | __in SCA_WEB7** ppswList, |
| 68 | __in SCA_HTTP_HEADER** ppshhList, |
| 69 | __in SCA_WEB_ERROR** ppsweList, |
| 70 | __in WCA_WRAPQUERY_HANDLE hUserQuery, |
| 71 | __in WCA_WRAPQUERY_HANDLE hWebDirPropQuery, |
| 72 | __in WCA_WRAPQUERY_HANDLE hSslCertQuery, |
| 73 | __in WCA_WRAPQUERY_HANDLE hWebLogQuery, |
| 74 | __in WCA_WRAPQUERY_HANDLE hWebAppQuery, |
| 75 | __in WCA_WRAPQUERY_HANDLE hWebAppExtQuery, |
| 76 | __inout LPWSTR *ppwzCustomActionData |
| 77 | ); |
| 78 | |
| 79 | HRESULT ScaWebsGetBase7( |
| 80 | __in SCA_WEB7* pswList, |
| 81 | __in LPCWSTR pswWebKey, |
| 82 | __out_ecount(cchDest) LPWSTR pswWeb, |
| 83 | __in DWORD_PTR cchDest |
| 84 | ); |
| 85 | |
| 86 | HRESULT ScaWebsInstall7( |
| 87 | __in SCA_WEB7* pswList, |
| 88 | __in SCA_APPPOOL * psapList |
| 89 | ); |
| 90 | |
| 91 | HRESULT ScaWebsUninstall7( |
| 92 | __in SCA_WEB7* pswList |
| 93 | ); |
| 94 | |
| 95 | void ScaWebsFreeList7( |
| 96 | __in SCA_WEB7* pswHead |
| 97 | ); |