Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 307
  • Last Modified:

Disabling mouse buttons

I am writing a application in Delphi that needs to be very secure.  The application will be running on a computer kiosk, so users need to be kept from being able to right click.  If they right click in Win'95 or NT 4.0, then they have power to delete files or get to the control panel.  Does anyone know a API function to keep users from right clicking?  Thanks.
0
mendel020397
Asked:
mendel020397
1 Solution
 
gaohongCommented:
Your application need to install a system wide hook via
SetWindowsHook() call with hTask field is NULL. If you only
hook the WH_MOUSE, the user could still go to the control pane
with keyboard, so I think you also need to install WH_KEYBOARD
hook. This is kind of rude, but be sure to call UnhookWindowsHook
upon your program exit.

Good luck

gaohong Xie
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now