From fdc9998609263d9f531079e2cbe0f3f31eba3382 Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Thu, 4 Apr 2019 11:04:13 -0700 Subject: Runtime support for upcoming .NET Core WinRT Host (#23402) * First pass at adding winrt host entry-point. * There's no way to specify HResult-swapping on a function called via hosted-interop so just return the HResult instead. * Use the WindowsRuntimeMarshal class to create the activation factory and initialize it. * Implement loading the dependent assemblies of a WinRT assembly into an isolated load context. * PR Feedback. * Fail to get the activation factory if the found type is not a managed type exported from a winmd. * Rearrange parameters based on PR feedback. * Remove unneeded include. * Make ActivationFactoryLoader internal. * Fix null-ref in WinRT-dependent-assembly loading * Remove extraneous "System." --- src/vm/interoputil.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vm/interoputil.h') diff --git a/src/vm/interoputil.h b/src/vm/interoputil.h index 872848b9df..311cedd102 100644 --- a/src/vm/interoputil.h +++ b/src/vm/interoputil.h @@ -443,7 +443,7 @@ MethodTable* GetClassFromIProvideClassInfo(IUnknown* pUnk); //-------------------------------------------------------------------------------- // Try to load a WinRT type. -TypeHandle GetWinRTType(SString* ssTypeName, BOOL bThrowIfNotFound); +TypeHandle LoadWinRTType(SString* ssTypeName, BOOL bThrowIfNotFound, ICLRPrivBinder* loadBinder = nullptr); //-------------------------------------------------------------------------------- // Try to get the class from IInspectable. -- cgit v1.2.3