main
h 71 lines 1.95 KB
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 #include "scawebprop.h"
6 #include "scawebapp.h"
7 #include "scamimemap.h"
8 #include "scaapppool.h"
9
10 enum eVDirQuery { vdqWeb = 1, vdqVDir, vdqComponent , vdqAlias, vdqDirectory, vdqProperties, vdqApplication, vdqInstalled, vdqAction, vdqSourcePath, vdqTargetPath };
11
12 struct SCA_VDIR
13 {
14 // darwin information
15 WCHAR wzKey[MAX_DARWIN_KEY + 1];
16 WCHAR wzComponent[MAX_DARWIN_KEY + 1];
17 INSTALLSTATE isInstalled;
18 INSTALLSTATE isAction;
19
20 // metabase information
21 WCHAR wzWebKey[MAX_DARWIN_KEY + 1];
22 WCHAR wzWebBase[METADATA_MAX_NAME_LEN + 1];
23 WCHAR wzVDirRoot[METADATA_MAX_NAME_LEN + 1];
24
25 // iis configuation information
26 WCHAR wzDirectory[MAX_PATH];
27
28 BOOL fHasProperties;
29 SCA_WEB_PROPERTIES swp;
30
31 BOOL fHasApplication;
32 SCA_WEB_APPLICATION swapp;
33
34 SCA_MIMEMAP* psmm; // mime mappings
35 SCA_HTTP_HEADER* pshh; // custom web errors
36 SCA_WEB_ERROR* pswe; // custom web errors
37
38 SCA_VDIR* psvdNext;
39 };
40
41
42 // prototypes
43 HRESULT __stdcall ScaVirtualDirsRead(
44 __in IMSAdminBase* piMetabase,
45 __in SCA_WEB* pswList,
46 __in SCA_VDIR** ppsvdList,
47 __in SCA_MIMEMAP** ppsmmList,
48 __in SCA_HTTP_HEADER** ppshhList,
49 __in SCA_WEB_ERROR** ppsweList,
50 __in WCA_WRAPQUERY_HANDLE hUserQuery,
51 __in WCA_WRAPQUERY_HANDLE hWebBaseQuery,
52 __in WCA_WRAPQUERY_HANDLE hWebDirPropQuery,
53 __in WCA_WRAPQUERY_HANDLE hWebAppQuery,
54 __in WCA_WRAPQUERY_HANDLE hWebAppExtQuery,
55 __inout LPWSTR *ppwzCustomActionData
56 );
57
58 HRESULT ScaVirtualDirsInstall(
59 __in IMSAdminBase* piMetabase,
60 __in SCA_VDIR* psvdList,
61 __in SCA_APPPOOL * psapList
62 );
63
64 HRESULT ScaVirtualDirsUninstall(
65 __in IMSAdminBase* piMetabase,
66 __in SCA_VDIR* psvdList
67 );
68
69 void ScaVirtualDirsFreeList(
70 __in SCA_VDIR* psvdList
71 );