private void SetThreadContext(IntPtr hThread, ref NativeMethods.CONTEXT context) { if (!NativeMethods.SetThreadContext(hThread, ref context)) { throw new Win32Exception(); } }
public Spy() { m_ContextBuffer = new NativeMethods.CONTEXT(); m_ContextBuffer.ContextFlags = NativeMethods.ContextFlags.CONTEXT_CONTROL | NativeMethods.ContextFlags.CONTEXT_INTEGER; m_DEventBuffer = new NativeMethods.DEBUG_EVENT_EXCEPTION(); m_ToStop = false; m_Stopped = new ManualResetEvent(true); }
public Spy() { m_ContextBuffer = new NativeMethods.CONTEXT(); m_ContextBuffer.ContextFlags = NativeMethods.ContextFlags.CONTEXT_CONTROL | NativeMethods.ContextFlags.CONTEXT_INTEGER; m_DEventBuffer = new NativeMethods.DEBUG_EVENT_EXCEPTION(); m_ToStop = false; m_Stopped = new ManualResetEvent( true ); }