aboutsummaryrefslogtreecommitdiff
path: root/src/be/utilsearch.h
blob: 1e0ca96d33ced25abebe54e6d68f2c48018fb7b3 (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
#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_DETECT_SHA2_SUPPORT,
};


// structs

typedef struct _UTIL_SEARCH
{
    LPWSTR sczId;

    UTIL_SEARCH_TYPE Type;
} UTIL_SEARCH;

typedef struct _UTIL_SEARCHES
{
    UTIL_SEARCH* rgSearches;
    DWORD cSearches;
} UTIL_SEARCHES;


// function declarations

STDMETHODIMP UtilSearchParseFromXml(
    __in UTIL_SEARCHES* pSearches,
    __in IXMLDOMNode* pixnBundleExtension
    );

void UtilSearchUninitialize(
    __in UTIL_SEARCHES* pSearches
    );

STDMETHODIMP UtilSearchExecute(
    __in UTIL_SEARCHES* pSearches,
    __in LPCWSTR wzSearchId,
    __in LPCWSTR wzVariable,
    __in IBundleExtensionEngine* pEngine
    );

STDMETHODIMP UtilSearchFindById(
    __in UTIL_SEARCHES* pSearches,
    __in LPCWSTR wzId,
    __out UTIL_SEARCH** ppSearch
    );