CVS: winex/server protocol.def, 1.45, 1.46 thread.c, 1.57, 1.58 trace.c, 1.46, 1.47

[email protected] 12 Sep 2007 12:29:46 -0000
Newsgroups gmane.comp.emulators.winex.cvs
Message-ID <[email protected]>
Subject: winex/server protocol.def,1.45,1.46 thread.c,1.57,1.58 trace.c,1.46,1.47Update of /var/lib/cvsd/cvsroot/winex/server
In directory agravaine:/tmp/cvs-serv10447/server

Modified Files:
	protocol.def thread.c trace.c 
Log Message:

- added support for the ThreadBasicInformation query in NtQueryInformationThread().
- fixed the prototypes for NtQueryInformationThread() and ZwQueryInformationThread() in the .spec file



Index: protocol.def
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/server/protocol.def,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- protocol.def	31 Jul 2007 20:06:23 -0000	1.45
+++ protocol.def	12 Sep 2007 12:29:44 -0000	1.46
@@ -345,9 +345,11 @@
     thread_id_t  tid_in;       /* thread id (optional) */
 @REPLY
     thread_id_t  tid;          /* server thread id */
+    process_id_t pid;          /* server process id */
     void*        teb;          /* thread teb pointer */
     int          exit_code;    /* thread exit code */
     int          priority;     /* thread priority level */
+    int          affinity;     /* thread affinity mask */
 @END
 
 

Index: thread.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/server/thread.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- thread.c	31 Jul 2007 19:58:52 -0000	1.57
+++ thread.c	12 Sep 2007 12:29:44 -0000	1.58
@@ -1347,9 +1347,11 @@
     if (thread)
     {
         reply->tid       = get_thread_id( thread );
+        reply->pid       = get_process_id( thread->process );
         reply->teb       = thread->teb;
         reply->exit_code = (thread->state == TERMINATED) ? thread->exit_code : STILL_ACTIVE;
         reply->priority  = thread->priority;
+        reply->affinity  = thread->affinity;
         release_object( thread );
     }
 }

Index: trace.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/server/trace.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- trace.c	31 Jul 2007 20:06:23 -0000	1.46
+++ trace.c	12 Sep 2007 12:29:44 -0000	1.47
@@ -499,9 +499,11 @@
 static void dump_get_thread_info_reply( const struct get_thread_info_reply *req )
 {
     fprintf( stderr, " tid=%04u,", req->tid );
+    fprintf( stderr, " pid=%04u,", req->pid );
     fprintf( stderr, " teb=%p,", req->teb );
     fprintf( stderr, " exit_code=%d,", req->exit_code );
-    fprintf( stderr, " priority=%d", req->priority );
+    fprintf( stderr, " priority=%d,", req->priority );
+    fprintf( stderr, " affinity=%d", req->affinity );
 }
 
 static void dump_set_thread_info_request( const struct set_thread_info_request *req )