server: Make hook procedures client_ptr_t instead of void pointers.
diff --git a/server/protocol.def b/server/protocol.def
index ffb8661..c0212e2 100644
--- a/server/protocol.def
+++ b/server/protocol.def
@@ -209,7 +209,7 @@
{
user_handle_t hook; /* hook handle */
thread_id_t tid; /* thread id */
- void *hook_proc; /* hook proc address */
+ client_ptr_t hook_proc; /* hook proc address */
/* followed by module name if any */
};
@@ -2575,8 +2575,8 @@
thread_id_t tid; /* id of thread to set the hook into */
int event_min;
int event_max;
+ client_ptr_t proc; /* hook procedure */
int flags;
- void* proc; /* hook procedure */
int unicode; /* is it a unicode hook? */
VARARG(module,unicode_str); /* module name */
@REPLY
@@ -2588,8 +2588,8 @@
/* Remove a window hook */
@REQ(remove_hook)
user_handle_t handle; /* handle to the hook */
+ client_ptr_t proc; /* hook procedure if handle is 0 */
int id; /* id of the hook if handle is 0 */
- void* proc; /* hook procedure if handle is 0 */
@REPLY
unsigned int active_hooks; /* active hooks bitmap */
@END
@@ -2606,8 +2606,8 @@
user_handle_t handle; /* handle to the next hook */
process_id_t pid; /* process id for low-level keyboard/mouse hooks */
thread_id_t tid; /* thread id for low-level keyboard/mouse hooks */
- void* proc; /* hook procedure */
int unicode; /* is it a unicode hook? */
+ client_ptr_t proc; /* hook procedure */
unsigned int active_hooks; /* active hooks bitmap */
VARARG(module,unicode_str); /* module name */
@END
@@ -2632,7 +2632,7 @@
int id; /* id of the hook */
process_id_t pid; /* process id for low-level keyboard/mouse hooks */
thread_id_t tid; /* thread id for low-level keyboard/mouse hooks */
- void* proc; /* hook procedure */
+ client_ptr_t proc; /* hook procedure */
int unicode; /* is it a unicode hook? */
VARARG(module,unicode_str); /* module name */
@END