Class representing an injected module in a remote process.
Inheritance: RemoteModule, IDisposableState
Example #1
0
        /// <summary>
        /// Injects the specified module into the address space of the remote process.
        /// </summary>
        /// <param name="path">The path of the module. This can be either a library module (a .dll file) or an executable module (an .exe file).</param>
        /// <param name="mustBeDisposed">The module will be ejected when the finalizer collects the object.</param>
        /// <returns>A new instance of the <see cref="InjectedModule"/>class.</returns>
        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);
        }