Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Disabling mouse buttons

Posted on 1997-03-01
1
Medium Priority
?
306 Views
Last Modified: 2013-12-04
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
Comment
Question by:mendel020397
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
gaohong earned 400 total points
ID: 1298881
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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question