public void Eject(RemoteModule module) { if (!module.IsValid) { return; } var injected = m_InjectedModules.FirstOrDefault(m => m.Equals(module)); if (injected != null) { m_InjectedModules.Remove(injected); } InternalEject(module); }
private void InternalEject(RemoteModule module) { m_Process.Threads.CreateAndJoin(m_Process["kernel32"]["FreeLibrary"].BaseAddress, module.BaseAddress); }