server: Add separate requests for getting/setting the thread context during suspend.
diff --git a/server/protocol.def b/server/protocol.def
index 6984bc5..f5ebbe7 100644
--- a/server/protocol.def
+++ b/server/protocol.def
@@ -1863,7 +1863,7 @@
@REQ(get_thread_context)
obj_handle_t handle; /* thread handle */
unsigned int flags; /* context flags */
- int suspend; /* if getting context during suspend */
+ int suspend; /* suspend the thread if needed */
@REPLY
int self; /* was it a handle to the current thread? */
VARARG(context,context); /* thread context */
@@ -1873,7 +1873,7 @@
/* Set the current context of a thread */
@REQ(set_thread_context)
obj_handle_t handle; /* thread handle */
- int suspend; /* if setting context during suspend */
+ int suspend; /* suspend the thread if needed */
VARARG(context,context); /* thread context */
@REPLY
int self; /* was it a handle to the current thread? */
@@ -3328,3 +3328,16 @@
#define SET_CURSOR_COUNT 0x02
#define SET_CURSOR_POS 0x04
#define SET_CURSOR_CLIP 0x08
+
+
+/* Retrieve the suspended context of a thread */
+@REQ(get_suspend_context)
+@REPLY
+ VARARG(context,context); /* thread context */
+@END
+
+
+/* Store the suspend context of a thread */
+@REQ(set_suspend_context)
+ VARARG(context,context); /* thread context */
+@END