Binarysharp.MemoryManagement.Modules.ModuleFactory.Inject C# (CSharp) Method

Inject() public method

Injects the specified module into the address space of the remote process.
public Inject ( string path, bool mustBeDisposed = true ) : InjectedModule
path string The path of the module. This can be either a library module (a .dll file) or an executable module (an .exe file).
mustBeDisposed bool The module will be ejected when the finalizer collects the object.
return InjectedModule
        public InjectedModule Inject(string path, bool mustBeDisposed = true)
        {
            // Injects the module
            var module = InjectedModule.InternalInject(MemorySharp, path);
            // Add the module in the list
            InternalInjectedModules.Add(module);
            // Return the module
            return module;
        }