ZombieAPI.RemoteMemory.RemoteMemory C# (CSharp) Method

RemoteMemory() public method

public RemoteMemory ( Process proc ) : System
proc System.Diagnostics.Process
return System
        public RemoteMemory(Process proc)
        {
            _process = proc;
            _pid = proc.Id;
            _encoding = Encoding.Default;
            if (_phandle == IntPtr.Zero) // fixed memory leak (open process only if it wasnt oppened)
                _phandle = I.OpenProcess(0x0080 | 0x0002 | 0x0040 | 0x0400 | 0x1000 | 0x0200 | 0x0100 | 0x0800 | 0x0001 | 0x0008 | 0x0010 | 0x0020 | 0x00100000, false, _pid);
            if (_phandle == IntPtr.Zero) throw new Win32Exception(Marshal.GetLastWin32Error());
        }