Fix inject problems (#820)

* CoreCLR: resolve and load nethost on demand instead of requiring it on load

* Remove nethost loading from C# side

* Added option to not chain Process.Dispose; see for last error only if result is empty
This commit is contained in:
kizer 2022-04-25 17:13:32 +09:00 committed by GitHub
parent 5b4833a6f7
commit 9a38a9470c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 57 additions and 94 deletions

View file

@ -5,8 +5,10 @@
#include "nethost/nethost.h"
class CoreCLR {
public:
explicit CoreCLR();
void* const m_calling_module;
public:
explicit CoreCLR(void* calling_module);
~CoreCLR() = default;
int load_hostfxr();
@ -32,7 +34,7 @@ class CoreCLR {
void* reserved,
void** delegate) const;
private:
private:
/* HostFXR delegates. */
hostfxr_initialize_for_runtime_config_fn m_hostfxr_initialize_for_runtime_config_fptr{};
hostfxr_get_runtime_delegate_fn m_hostfxr_get_runtime_delegate_fptr{};