From 3b47496ef2656333684526cf71478253a207c1a5 Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Mon, 3 Dec 2018 16:11:29 -0800 Subject: Refactor all FCalls out of AppDomain.cs (#21337) This saves the unmanaged->managed->unmanaged trip to initialize the assembly binder. Includes small bits of unrelated cleanup. --- src/vm/clrprivbinderwinrt.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/vm/clrprivbinderwinrt.h') diff --git a/src/vm/clrprivbinderwinrt.h b/src/vm/clrprivbinderwinrt.h index 2bf1061d18..3515874ce0 100644 --- a/src/vm/clrprivbinderwinrt.h +++ b/src/vm/clrprivbinderwinrt.h @@ -210,26 +210,23 @@ public: // Binds WinRT assemblies only. HRESULT BindWinRTAssemblyByName( IAssemblyName * pIAssemblyName, - CLRPrivAssemblyWinRT ** ppAssembly, - BOOL fPreBind = FALSE); + CLRPrivAssemblyWinRT ** ppAssembly); // Binds WinRT assemblies only. HRESULT BindWinRTAssemblyByName( IAssemblyName * pIAssemblyName, - ICLRPrivAssembly ** ppPrivAssembly, - BOOL fPreBind = FALSE); + ICLRPrivAssembly ** ppPrivAssembly); // Binds WinRT assemblies only. HRESULT BindWinRTAssemblyByName( IAssemblyName * pIAssemblyName, - IBindResult ** ppIBindResult, - BOOL fPreBind = FALSE); + IBindResult ** ppIBindResult); HRESULT GetAssemblyAndTryFindNativeImage(SString &sWinmdFilename, LPCWSTR pwzSimpleName, BINDER_SPACE::Assembly ** ppAssembly); // On Phone the application's APP_PATH CoreCLR hosting config property is used as the app // package graph for RoResolveNamespace to find 3rd party WinMDs. This method wires up // the app paths so the WinRT binder will find 3rd party WinMDs. - HRESULT SetApplicationContext(BINDER_SPACE::ApplicationContext *pApplicationContext, SString &appLocalWinMD); + HRESULT SetApplicationContext(BINDER_SPACE::ApplicationContext *pApplicationContext, LPCWSTR pwzAppLocalWinMD); // Finds assembly with WinRT type if it is already loaded // Note: This method could implement interface code:ICLRPrivWinRtTypeBinder if it is ever needed PTR_Assembly FindAssemblyForTypeIfLoaded( -- cgit v1.2.3