| 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 | // global sql queries provided for optimization |
| 8 | extern LPCWSTR vcsWebDirPropertiesQuery; |
| 9 | |
| 10 | |
| 11 | // structs |
| 12 | struct SCA_WEB_PROPERTIES |
| 13 | { |
| 14 | WCHAR wzKey[MAX_DARWIN_KEY + 1]; |
| 15 | |
| 16 | int iAccess; |
| 17 | |
| 18 | int iAuthorization; |
| 19 | BOOL fHasUser; |
| 20 | SCA_USER scau; |
| 21 | BOOL fIIsControlledPassword; |
| 22 | |
| 23 | BOOL fLogVisits; |
| 24 | BOOL fIndex; |
| 25 | |
| 26 | BOOL fHasDefaultDoc; |
| 27 | WCHAR wzDefaultDoc[MAX_DARWIN_COLUMN + 1]; |
| 28 | |
| 29 | BOOL fHasHttpExp; |
| 30 | WCHAR wzHttpExp[MAX_DARWIN_COLUMN + 1]; |
| 31 | |
| 32 | BOOL fAspDetailedError; |
| 33 | |
| 34 | int iCacheControlMaxAge; |
| 35 | |
| 36 | BOOL fHasCacheControlCustom; |
| 37 | WCHAR wzCacheControlCustom[MAX_DARWIN_COLUMN + 1]; |
| 38 | |
| 39 | BOOL fNoCustomError; |
| 40 | |
| 41 | int iAccessSSLFlags; |
| 42 | |
| 43 | WCHAR wzAuthenticationProviders[MAX_DARWIN_COLUMN + 1]; |
| 44 | }; |
| 45 | |
| 46 | |
| 47 | // prototypes |
| 48 | HRESULT ScaGetWebDirProperties( |
| 49 | __in LPCWSTR pwzProperties, |
| 50 | __in WCA_WRAPQUERY_HANDLE hUserQuery, |
| 51 | __in WCA_WRAPQUERY_HANDLE hWebDirPropQuery, |
| 52 | __inout SCA_WEB_PROPERTIES* pswp |
| 53 | ); |
| 54 | |
| 55 | HRESULT ScaWriteWebDirProperties( |
| 56 | __in IMSAdminBase* piMetabase, |
| 57 | __in LPCWSTR wzRootOfWeb, |
| 58 | __inout SCA_WEB_PROPERTIES* pswp |
| 59 | ); |
| 60 |