PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/Visual Studio 2008/CppOfficeManagedCOMAddInShim/CLRLoader.h

#
C++ Header | 24 lines | 19 code | 4 blank | 1 comment | 0 complexity | 541dcedb8d2af5f9e65cad5be043fedd MD5 | raw file
 1// CLRLoader.h
 2#pragma once
 3
 4class CCLRLoader
 5{
 6public:
 7    CCLRLoader(void);
 8    virtual ~CCLRLoader(void);
 9
10    HRESULT CreateAggregatedAddIn(
11        IUnknown* pOuter,
12        LPCWSTR szAssemblyName, 
13        LPCWSTR szClassName, 
14        LPCWSTR szAssemblyConfigName);
15    HRESULT Unload(void);
16
17private:
18    HRESULT LoadCLR();
19    HRESULT CreateAppDomain(LPCWSTR szAssemblyConfigName);
20    HRESULT GetDllDirectory(TCHAR *szPath, DWORD nPathBufferSize);
21
22    ICorRuntimeHost *m_pCorRuntimeHost;
23    mscorlib::_AppDomain *m_pAppDomain;
24};