main
h 33 lines 980 Bytes
Raw
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 eMimeMapParentType { mmptVDir = 1, mmptWeb = 2 };
6
7 struct SCA_MIMEMAP
8 {
9 // iis configuation information
10 WCHAR wzMimeMap[MAX_DARWIN_KEY + 1];
11 int iParentType;
12 WCHAR wzParentValue[MAX_DARWIN_KEY + 1];
13 WCHAR wzMimeType[MAX_DARWIN_KEY + 1];
14 WCHAR wzExtension[MAX_DARWIN_KEY + 1];
15
16
17 SCA_MIMEMAP* psmmNext;
18 };
19
20
21 // prototypes
22
23 HRESULT __stdcall ScaMimeMapRead(SCA_MIMEMAP** ppsmmList, __inout LPWSTR *ppwzCustomActionData);
24
25 HRESULT ScaGetMimeMap(int iParentType, LPCWSTR wzParentValue, SCA_MIMEMAP **psmmList, SCA_MIMEMAP **ppsmmOut);
26
27 HRESULT ScaMimeMapCheckList(SCA_MIMEMAP* psmmList);
28
29 void ScaMimeMapFreeList(SCA_MIMEMAP* psmmList);
30
31 HRESULT ScaWriteMimeMap(IMSAdminBase* piMetabase, LPCWSTR wzRootOfWeb,
32 SCA_MIMEMAP* psmmList);
33