/// <summary> /// Cosntructs a new instance of BaseSpy. /// </summary> public BaseSpy() { _Process = null; _ProcessHandle = IntPtr.Zero; _EventBuffer = new DebugEventException(); _Context = new ProcessContext(); _Context.ContextFlags = NativeMethods.ContextFlags.CONTEXT_CONTROL | NativeMethods.ContextFlags.CONTEXT_INTEGER; _Context64 = new ProcessContext64(); _Context64.ContextFlags = NativeMethods.ContextFlags.CONTEXT_CONTROL | NativeMethods.ContextFlags.CONTEXT_INTEGER; _StopToken = new ManualResetEvent(true); _Breakpoints = new Dictionary <uint, byte>(); _ReplacedCode = new Dictionary <uint, byte[]>(); }
/// <summary> /// Cosntructs a new instance of BaseSpy. /// </summary> public BaseSpy() { _Process = null; _ProcessHandle = IntPtr.Zero; _EventBuffer = new DebugEventException(); _Context = new ProcessContext(); _Context.ContextFlags = NativeMethods.ContextFlags.CONTEXT_CONTROL | NativeMethods.ContextFlags.CONTEXT_INTEGER; _Context64 = new ProcessContext64(); _Context64.ContextFlags = NativeMethods.ContextFlags.CONTEXT_CONTROL | NativeMethods.ContextFlags.CONTEXT_INTEGER; _StopToken = new ManualResetEvent( true ); _Breakpoints = new Dictionary<uint, byte>(); _ReplacedCode = new Dictionary<uint, byte[]>(); }