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