Пример #1
0
 public Context(Process process)
 {
     isContext64 = process.IsWin64;
     if (process.IsWin64)
     {
         context64 = new CONTEXT();
         context64.ContextFlags = CONTEXT_FLAGS.CONTEXT_ALL;
     }
     else
     {
         context32 = new Context32();
         context32.ContextFlags = CONTEXT_FLAGS.CONTEXT_ALL;
     }
 }
Пример #2
0
 public Context(Process process, IntPtr hThread)
 {
     isContext64 = process.IsWin64;
     if (process.IsWin64)
     {
         context64 = new CONTEXT();
         context64.ContextFlags = CONTEXT_FLAGS.CONTEXT_ALL;
     }
     else
     {
         context32 = new Context32();
         context32.ContextFlags = CONTEXT_FLAGS.CONTEXT_ALL;
     }
     GetContext(hThread);
     //if (!GetContext(hThread))
     //  throw new Exception("Failed to GetContext(), get last error: " + Debugger.GetLastError().ToString());
 }
Пример #3
0
 static extern bool Wow64SetThreadContext(IntPtr hThread, [In] ref Context32 lpContext);
Пример #4
0
 static extern bool Wow64GetThreadContext(IntPtr hThread, ref Context32 lpContext);
Пример #5
0
 public Context(Context32 context32)
 {
     isContext64    = false;
     this.context32 = context32;
 }