How to catch pid from processes that are accessing x service

1

I would like to know a way to monitor all processes that are using a system service / functionality, more specifically I want to monitor the processes that request and modify the position of the mouse >, I have tried to find out how this works, but I can only find ways to change / visualize this data using ASM or C.

I looked at these two links [A] [B] about handling with ASM, but it still seems like this system resource does not have kernel control, I know this is not well, all resources have a kind of control.

In short: I want to know where I can directly query the processes that are reading and writing in the addresses referring to the mouse;

  

Language is the system are not important, any result is well   this does not leave my broad question over or out of scope,   I am questioning a way to access system information.

    
asked by anonymous 28.02.2015 / 20:35

0 answers