Solved

Disabling mouse buttons

Posted on 1997-03-01
1
299 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 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows Mobile 6.5 device Apache Flex 3 51
Messagebox for a Web Site Application 4 88
What is MicroStrategy.NET? 2 91
Licensing Sharepoint 2016 for developers 11 100
This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
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…

752 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