diff options
Diffstat (limited to 'src/api/burn/bextutil/inc/BextBaseBundleExtensionProc.h')
-rw-r--r-- | src/api/burn/bextutil/inc/BextBaseBundleExtensionProc.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/api/burn/bextutil/inc/BextBaseBundleExtensionProc.h b/src/api/burn/bextutil/inc/BextBaseBundleExtensionProc.h deleted file mode 100644 index cd7e3cb3..00000000 --- a/src/api/burn/bextutil/inc/BextBaseBundleExtensionProc.h +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
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 <windows.h> | ||
6 | |||
7 | #include <IBundleExtensionEngine.h> | ||
8 | #include <IBundleExtension.h> | ||
9 | |||
10 | static HRESULT BextBaseBEProcSearch( | ||
11 | __in IBundleExtension* pBE, | ||
12 | __in BUNDLE_EXTENSION_SEARCH_ARGS* pArgs, | ||
13 | __inout BUNDLE_EXTENSION_SEARCH_RESULTS* /*pResults*/ | ||
14 | ) | ||
15 | { | ||
16 | return pBE->Search(pArgs->wzId, pArgs->wzVariable); | ||
17 | } | ||
18 | |||
19 | /******************************************************************* | ||
20 | BextBaseBundleExtensionProc - requires pvContext to be of type IBundleExtension. | ||
21 | Provides a default mapping between the message based | ||
22 | BundleExtension interface and the COM-based BundleExtension interface. | ||
23 | |||
24 | *******************************************************************/ | ||
25 | static HRESULT WINAPI BextBaseBundleExtensionProc( | ||
26 | __in BUNDLE_EXTENSION_MESSAGE message, | ||
27 | __in const LPVOID pvArgs, | ||
28 | __inout LPVOID pvResults, | ||
29 | __in_opt LPVOID pvContext | ||
30 | ) | ||
31 | { | ||
32 | IBundleExtension* pBE = reinterpret_cast<IBundleExtension*>(pvContext); | ||
33 | HRESULT hr = pBE->BundleExtensionProc(message, pvArgs, pvResults, pvContext); | ||
34 | |||
35 | if (E_NOTIMPL == hr) | ||
36 | { | ||
37 | switch (message) | ||
38 | { | ||
39 | case BUNDLE_EXTENSION_MESSAGE_SEARCH: | ||
40 | hr = BextBaseBEProcSearch(pBE, reinterpret_cast<BUNDLE_EXTENSION_SEARCH_ARGS*>(pvArgs), reinterpret_cast<BUNDLE_EXTENSION_SEARCH_RESULTS*>(pvResults)); | ||
41 | break; | ||
42 | } | ||
43 | } | ||
44 | |||
45 | return hr; | ||
46 | } | ||