예제 #1
0
        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);
        }
예제 #2
0
 private void InternalEject(RemoteModule module)
 {
     m_Process.Threads.CreateAndJoin(m_Process["kernel32"]["FreeLibrary"].BaseAddress, module.BaseAddress);
 }