TCPKeyBlockHook®
NT System Keyboard Blocking Hook and DLL for Borland Delphi.
Version:
1.5
Release Date : 29/03/2005
Delphi Versions: 4/5/6/7/8/9/2005
Developer: BITLOGIC Software Solutions
Copyright: BITLOGIC © 2004
E-Mail: development@bitlogic.co.uk
Web: www.bitlogic.co.uk
Download: keyblockhook.zip
Purchase Online: DLL Licence Keys only
Purchase Online: DLL Source Code & Licence Keys
This component is also included in the Delphi Hook Pack Collection.
Overview
TCPKeyBlockHook is a Low Level Keyboard Hook which can be used as a Component or Directly as a DLL from.
within your Delphi Projects. TCPKeyBlockHook can hook into the keyboard driver and capture any character or system key
combination and also Block or Disable them from being processed. The Component encapsulates the procedures
and
functions
within the separate DLL and uses Memory Mapped File (MMF) to send a custom message with the keyboard
information
to the calling application or process.
You can use this Component and DLL to disable any or all Keyboard Keys.
Component Features
- Supports Windows
NT/2000/XP.
- Ultra small
DLL with almost no overhead or impact on system resources.
- Simple component
with one Event passing all Key state and character information.
- Truly Global,
System Wide Keyboard Hook on all running Applications.
- Disable Keyboard and Block Keyboard events from being processed by windows.
- Disable Windows System Keys e.g ALT+TAB, CTRL+ESC etc..
- Select any combination of Keys to Block or Disable.
- Event Returns
converted ASCII characters for installed keyboard.
- Event Returns
Extended Key names, Cursors, Function Keys etc..
- Event Returns
the Repeatcount of any Keys pressed.
- Indication if
Key Message was generated by a System Selection Menu.
- Indication if
Key Message was generated by a KeyDown or KeyUp.
- Indication if Key Message was Injected via Win32 API call to keybd_event.
- Custom message
can be set for communication with the DLL.
- Install as a
Component or use Unit and Functions directly.
Component Usage
You can use the
TCPKeyBlockHook within your project to monitor keyboard activity, Disable Keys or to
obtain
the
state of which Keys are being pressed in real time.
Component Installation
Note:
KeyBlockHook.Dll must be placed within the same directory as your project or system
path and also
within the folder in which any application uses the Dll.
To use as a component, simply install
the registration file CPKeyBlockHookReg.pas as a new
component into an existing
or new
Package. TCPKeyBlockHook can also be created dynamically by using the CPKeyBlockHook.pas
within your projects.
Always place the KeyBlockHook.DLL into the same location
as your project or anywhere the path can find it.
Quick Start
Steps:
- Place the component
into your current project.
- Setup the OnKey
Event.
- Optionally set
and register the custom UserHookMsg to WM_USER + [1 to 65535]
- Optionally set your Licence Code for non-trial use.
- Optionally set DisableKeyboard option.
- Optionally set BlockSystemKeys.
- Optionally set HookInjected for Hooking Injected keybd_event calls.
- Optionally set BlockKeys.
- Invoke the Function
Start_KeyHook.
- Process the
OnKey Events.
- Optionally Update the Hook Operational Settings.
- Invoke the Function
Stop_KeyHook when finished.
Methods, Events
& Properties
Methods:
- Start_KeyHook
Function:Boolean Starts the KeyHook.
- Stop_KeyHook
Function:Boolean Stops the KeyHook.
- UpdateHook Function:Boolean Updates the Hook with new property settings.
Events:
- OnKey
Hook Notification Event of KeyUp and KeyDown Messages.
TKeyStates = State of the current Keys pressed.
TKeyNames = Ascii Character and VirtualKey Name for current Key pressed.
Blocked = Boolean value indicting if Key was Blocked.
Injected = Boolean value indicting if Key was Injected via keybd_event call.
Properties:
- Enabled:
Status of the KeyHook.
- HookLibLoaded: Indication if Hook DLL Loaded successfully.
- LicenceCode: Licence Code string for removal of trial message.
- WindowHandle:
Handle used by Component to receive Messages.
- UserHookMsg:
Custom WM_USER Message for communication with the DLL.
- DisableKeyboard: Disables all Keyboard input from within Windows.
- BlockSystemKeys: Disables all System Key Combinations in Windows.
- BlockKeys: Disable any combination of Keyboard Keys Globally within Windows.
- keyboardLayout:
Currently installed Keyboard Code.
- Name:
Name of Component.
Licence Keys and Component Source Code
DLL Licence Keys (for trial notice removal) or Full Delphi Source code
is available to purchase below.
Purchasing entitles you to Free support and professional developer advice on using the components
within your projects. Developer support is provided via E-Mail and DLL component updates are free.
Unrestricted DLL & Licence Key $19.00 US Dollars
Unrestricted DLL & Licence Key €17.00 Euro
Purchase Online: Secure Order
DLL Source Code & Licence Key $46.00 US Dollars
DLL Source Code & Licence Key €39.00 Euro
Purchase Online: Secure Order
BITLOGIC Software Developers of Desktop Software and Security Applications, Utilities and Components.