blob: d19e240fe29b6ba778e2d5b2619b092fbea78d14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
#pragma once
// 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.
// constants
enum UTIL_SEARCH_TYPE
{
UTIL_SEARCH_TYPE_NONE,
UTIL_SEARCH_TYPE_WINDOWS_FEATURE_SEARCH,
};
enum UTIL_WINDOWS_FEATURE_SEARCH_TYPE
{
UTIL_WINDOWS_FEATURE_SEARCH_TYPE_NONE,
UTIL_WINDOWS_FEATURE_SEARCH_TYPE_SHA2_CODE_SIGNING,
};
// structs
typedef struct _UTIL_SEARCH
{
LPWSTR sczId;
UTIL_SEARCH_TYPE Type;
union
{
struct
{
UTIL_WINDOWS_FEATURE_SEARCH_TYPE type;
} WindowsFeatureSearch;
};
} UTIL_SEARCH;
typedef struct _UTIL_SEARCHES
{
UTIL_SEARCH* rgSearches;
DWORD cSearches;
} UTIL_SEARCHES;
// function declarations
STDMETHODIMP UtilSearchParseFromXml(
__in UTIL_SEARCHES* pSearches,
__in IXMLDOMNode* pixnBootstrapperExtension
);
void UtilSearchUninitialize(
__in UTIL_SEARCHES* pSearches
);
STDMETHODIMP UtilSearchExecute(
__in UTIL_SEARCHES* pSearches,
__in LPCWSTR wzSearchId,
__in LPCWSTR wzVariable,
__in IBootstrapperExtensionEngine* pEngine
);
STDMETHODIMP UtilSearchFindById(
__in UTIL_SEARCHES* pSearches,
__in LPCWSTR wzId,
__out UTIL_SEARCH** ppSearch
);
|