Solved

Disabling mouse buttons

Posted on 1997-03-01
1
298 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
1 Comment
 
LVL 3

Accepted Solution

by:
gaohong earned 200 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

713 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