예제 #1
0
        /// <summary>
        /// Initializes a new instance.
        /// </summary>
        public BaseSpy()
        {
            m_ContextBuffer = new NativeMethods.CONTEXT();
            m_ContextBuffer.ContextFlags = NativeMethods.ContextFlags.CONTEXT_CONTROL | NativeMethods.ContextFlags.CONTEXT_INTEGER;
            m_EventBuffer = new NativeMethods.DEBUG_EVENT_EXCEPTION();

            m_ToStop  = false;
            m_Stopped = new ManualResetEvent(true);

            m_Dictionary = new Dictionary <uint, byte[]>();
        }
        // --------------------------------------------------------------
        #region CONSTRUCTOR
        // --------------------------------------------------------------

        /// <summary>
        /// Initializes a new instance.
        /// </summary>
        public BaseSpy()
        {
            // initialize the context buffer
            m_ContextBuffer = new NativeMethods.CONTEXT
            {
                ContextFlags = NativeMethods.ContextFlags.CONTEXT_CONTROL | NativeMethods.ContextFlags.CONTEXT_INTEGER
            };

            // initialize the event buffer
            m_EventBuffer = new NativeMethods.DEBUG_EVENT_EXCEPTION();

            // reset the stop flags
            m_ToStop  = false;
            m_Stopped = new ManualResetEvent(true);

            // initialize the data dictionary
            m_Dictionary = new Dictionary <uint, byte[]>();
        }