コード例 #1
0
ファイル: DebugWrap.cs プロジェクト: daeken/QtChaos
 public static extern bool Wow64GetThreadContext(IntPtr hThread, ref CONTEXT lpContext);
コード例 #2
0
ファイル: DebugWrap.cs プロジェクト: daeken/QtChaos
 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;
 }