blob: ce6df977ba109a2bd34a5dac6660b5ea297b4ac7 (
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
|
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
//
//
// Contains VM implementation of code:ICLRPrivTypeCacheReflectionOnlyWinRT for code:CLRPrivBinderReflectionOnlyWinRT binder.
//
//=====================================================================================================================
#ifdef FEATURE_HOSTED_BINDER
#ifdef FEATURE_REFLECTION_ONLY_LOAD
#pragma once
#include "internalunknownimpl.h"
#include "clrprivbinding.h"
//=====================================================================================================================
// Forward declarations
class DomainAssembly;
//=====================================================================================================================
class CLRPrivTypeCacheReflectionOnlyWinRT :
public IUnknownCommon<IUnknown>
{
public:
//=============================================================================================
// Class methods
// S_OK - pAssembly contains type wszTypeName
// S_FALSE - pAssembly does not contain type wszTypeName
STDMETHOD(ContainsType)(
ICLRPrivAssembly * pAssembly,
LPCWSTR wszTypeName);
#ifndef DACCESS_COMPILE
// Raises user event NamespaceResolveEvent to get a list of files for this namespace.
void RaiseNamespaceResolveEvent(
LPCWSTR wszNamespace,
DomainAssembly * pParentAssembly,
CLRPrivBinderUtil::WStringListHolder * pFileNameList);
#endif //!DACCESS_COMPILE
// Implementation of QCall System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMetadata.nResolveNamespace
// It's basically a PInvoke wrapper into Win8 API RoResolveNamespace
static
void QCALLTYPE ResolveNamespace(
LPCWSTR wszNamespace,
LPCWSTR wszWindowsSdkPath,
LPCWSTR * rgPackageGraphPaths,
INT32 cPackageGraphPaths,
QCall::ObjectHandleOnStack retFileNames);
}; // class CLRPrivTypeCaheReflectionOnlyWinRT
#endif //FEATURE_REFLECTION_ONLY_LOAD
#endif // FEATURE_HOSTED_BINDER
|