Artemis.Utilities.Memory.Memory.Memory C# (CSharp) Méthode

Memory() public méthode

Initializes a new instance of the Memory
public Memory ( System process ) : System
process System Remote process
Résultat System
        public Memory(System.Diagnostics.Process process)
        {
            if (process == null)
                throw new ArgumentNullException("process");

            Process = process;
            processHandle = Win32.OpenProcess(
                Win32.ProcessAccessType.PROCESS_VM_READ | Win32.ProcessAccessType.PROCESS_VM_WRITE |
                Win32.ProcessAccessType.PROCESS_VM_OPERATION, true, (uint) process.Id);
            if (processHandle == IntPtr.Zero)
                throw new InvalidOperationException("Could not open the process");
        }