Exemplo n.º 1
0
 public static extern bool Wow64GetThreadContext(IntPtr hThread, ref CONTEXT lpContext);
Exemplo n.º 2
0
 public static CONTEXT GetThreadContext(IntPtr hThread)
 {
     CONTEXT context = new CONTEXT();
     context.ContextFlags = (uint) CONTEXT_FLAGS.CONTEXT_ALL;
     if(GetThreadContext(hThread, ref context) == false)
         if(Wow64GetThreadContext(hThread, ref context) == false)
             throw new DebugException();
     return context;
 }