diff options
Diffstat (limited to 'src/ext/Iis/ca/scamimemap.h')
-rw-r--r-- | src/ext/Iis/ca/scamimemap.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/ext/Iis/ca/scamimemap.h b/src/ext/Iis/ca/scamimemap.h new file mode 100644 index 00000000..b50e82e9 --- /dev/null +++ b/src/ext/Iis/ca/scamimemap.h | |||
@@ -0,0 +1,33 @@ | |||
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 | |||