Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Discarding Keyboard-input messages... 1

Status
Not open for further replies.

XPPROGRAMMER

Programmer
Nov 15, 2004
44
US
Hello everyone,

is there a win32 API function that I can call to simply
DISCARD a Keyboard-input Message, when my keyboard HOOK
procedure indicates a system virtual-key code ?? I would
like to prevent windows and my-application-thread from
processing this keyboard message, when the end-user press
the CTRL OR ALT or PRINTSCREEN-KEY keys.
thanks for the kind help.

 
If you are using a modified version of the sample I gave you in the other thread then return 1, KeyboardProc = 1 from the KeyboardProc function when you receive the Keyboard message that you wish to discard. Here's a link to look at:


Two strings walk into a bar. The first string says to the bartender: 'Bartender, I'll have a beer. u.5n$x5t?*&4ru!2[sACC~ErJ'. The second string says: 'Pardon my friend, he isn't NULL terminated'.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top