| 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 | enum eHttpHeaderParentType { hhptVDir = 1, hhptWeb }; |
| 6 | |
| 7 | struct SCA_HTTP_HEADER |
| 8 | { |
| 9 | int iParentType; |
| 10 | WCHAR wzParentValue[MAX_DARWIN_KEY + 1]; |
| 11 | |
| 12 | WCHAR wzName[MAX_PATH]; |
| 13 | WCHAR wzValue[MAX_PATH]; |
| 14 | int iAttributes; |
| 15 | |
| 16 | SCA_HTTP_HEADER* pshhNext; |
| 17 | }; |
| 18 | |
| 19 | // prototypes |
| 20 | HRESULT ScaHttpHeaderRead( |
| 21 | __in SCA_HTTP_HEADER **ppshhList, |
| 22 | __inout LPWSTR *ppwzCustomActionData |
| 23 | ); |
| 24 | void ScaHttpHeaderFreeList( |
| 25 | __in SCA_HTTP_HEADER *pshhList |
| 26 | ); |
| 27 | HRESULT ScaHttpHeaderCheckList( |
| 28 | __in SCA_HTTP_HEADER* pshhList |
| 29 | ); |
| 30 | HRESULT ScaGetHttpHeader( |
| 31 | __in int iParentType, |
| 32 | __in LPCWSTR wzParentValue, |
| 33 | __in SCA_HTTP_HEADER** ppshhList, |
| 34 | __out SCA_HTTP_HEADER** ppshhOut |
| 35 | ); |
| 36 | HRESULT ScaWriteHttpHeader( |
| 37 | __in IMSAdminBase* piMetabase, |
| 38 | LPCWSTR wzRoot, |
| 39 | SCA_HTTP_HEADER* pshhList |
| 40 | ); |