示例#1
0
        /// <summary>
        /// Reads the WoW X64 structure.
        /// </summary>
        /// <param name="pointer">The pointer.</param>
        private static ThreadContext ReadWowX64Structure(IntPtr pointer)
        {
            WOW64_CONTEXT structure = (WOW64_CONTEXT)Marshal.PtrToStructure(pointer, typeof(WOW64_CONTEXT));

            return(new ThreadContext()
            {
                InstructionPointer = structure.Eip,
                StackPointer = structure.Esp,
                FramePointer = structure.Ebp,
                Bytes = ReadBytes(pointer, typeof(WOW64_CONTEXT)),
            });
        }
示例#2
0
        /// <summary>
        /// Reads the WoW X64 structure.
        /// </summary>
        /// <param name="pointer">The pointer.</param>
        private static ThreadContext ReadWowX64Structure(IntPtr pointer)
        {
            WOW64_CONTEXT structure = (WOW64_CONTEXT)Marshal.PtrToStructure(pointer, typeof(WOW64_CONTEXT));

            return(new WindowsThreadContext(structure.Eip, structure.Esp, structure.Ebp, ReadBytes(pointer, typeof(WOW64_CONTEXT))));
        }
示例#3
0
 public static extern bool Wow64SetThreadContext(IntPtr hThread, ref WOW64_CONTEXT lpContext);
示例#4
0
 public static extern bool Wow64SetThreadContext( IntPtr hThread, ref WOW64_CONTEXT lpContext );