Beispiel #1
0
 private void SetThreadContext(IntPtr hThread, ref NativeMethods.CONTEXT context)
 {
     if (!NativeMethods.SetThreadContext(hThread, ref context))
     {
         throw new Win32Exception();
     }
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
		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 );
		}