For my application it is a requirement to block any user input while the application is running. I am using User32.dll's "BlockInput" function to achieve this.
The problem is that the function does not work if the user has not got administrator priviledges. I've now implemented a service (running with local system priviledges) to do this job, even if the user has no admin rights.
Unfortunately the function call now only locks the input devices of the service session, and not the ones of the user's session.
How to call User32.dll functions (from a service) for the current users session?