Solved

Disabling mouse buttons

Posted on 1997-03-01
1
285 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now