Ctrl2cap v.2.0


This is a kernel-mode driver that demonstrates keyboard input filtering just above the keyboard class driver in order to turn caps-locks into control keys. Filtering at this level allows conversion and hiding of keys before NT even "sees" them. Ctrl2cap also shows how to use NtDisplayString() to print messages to the initialization blue-screen.IntroductionCtrl2cap is a kernel-mode device driver that filters the system's keyboard class driver in order to convert caps-lock characters into control characters. People like myself that migrated to NT from UNIX are used to having the control key located where the caps-lock key is on the standard PC keyboard, so a utility like this is essential for our editing well-being.Installation and UseInstall Ctrl2cap running the command "ctrl2cap /install" from the directory into which you've unzipped the Ctrl2cap files. To uninstall type "ctrl2cap /uninstall".How Ctrl2cap WorksOn NT 4 Ctrlcap is actually quite trivial. It simply attaches itself to the keyboard class driver so that it will catch keyboard read requests. For each request, it posts an I/O completion callback, at which point it takes a peek at the scancode that is being returned. If it happens to be a caps-lock, ctrl2cap changes it into a left-control.On Win2K Ctrl2cap is a WDM filter driver that layers in the keyboard class device's stack above the keyboard class device. This is in contrast to the Win2K DDK's kbfiltr example that layers itself between the i8042 port device and the keyboard class device. I chose to layer on top of the keyboard class device for several reasons: * It means that the Ctrl2cap IRP_MJ_READ interception and manipulation code is shared between the NT 4 and Win2K versions. * I don't need to supply an INF file and have the user go through the Device Manager to install Ctrl2cap - I simply modify the appropriate Registry value (the keyboard class devices's HKLMSystemCurrentControlSetControlClass UpperFilters value).The disadvantage of my approach is (and this an advantage or disadvantage depending on your point of view): * Because I don't install with an INF file via the Device Manager, the user is not warned that the Ctrl2cap driver file is not digitally signed by Microsoft.In this particular case, I felt that the advantages outweigh the disadvantages. However, before you model a Win2K keyboard filter on Ctrl2cap I strongly suggest that you study the kbfiltr example from the Win2K DDK. Kbfiltr's interception point in the key input sequence makes it very easy for kbfiltr to inject keystrokes into the input stream.More InformationFor more information on writing filter drivers (drivers that attach themselves to other drivers so that they can see their input and/or output), here are sources to check out: * The Windows NT and Windows 2000 DDK sample srcstoragefilterdiskperf * The Windows 2000 DDK sample srcinputkbfiltr * "Examining the Windows NT File System," by Mark Russinovich and Bryce Cogswell, Dr. Dobb's Journal, February 1997 * The accompanying file system filter driver, Filemon

This is a kernel-mode driver that demonstrates ... A kernel-mode driver that demonstrates keyboard input filtering just above the keyboard class driver in order to turn caps-locks into control keys.

keyboard, driver, class, device, win, windows, filter, capslock, point, control, characters, quot, system, caps lock, file

  • Freeware
  • 51 Kb
  • 345
  • Free

Review Ctrl2cap

  • captcha

Other software of Mark Russinovich
  • AdRestore  v.1.1Undelete Server 2003 Active Directory objects.
  • CacheSet  v.1.0Allows you to control the Cache Manager's working set size using functions provided by NT.
  • ClockRes  v.2.0View the resolution of the system clock, which is also the maximum timer resolution ...

New Miscellaneous software
  • Screen Watermark  v. can print the desired watermark on the screen. This screen watermark does not affect the running of other programs. Also, Up to 4 texts and images can be used as watermark.
  • Password Keeper  v.1.13Simple password word manager. Keep track of all your usernames and passwords for free with Password Keeper. If you are looking for something free to try out, this is the perfect program for you.
  • SyncMate  v.8.0SyncMate syncs data on Mac with Android and iOS devices, Windows services (Outlook, Office 365 Business and Office 365 Home accounts), other Macs, Google, Dropbox and iCloud accounts, any mounted storage devices, MTP devices.
  • AnonymWin  v. is easy-to-use free software to stop Windows spying and collecting your info. Stop Windows Defender, Telemetry, turn off access to Cam, Mic and Files. Turn off tracking services and logs. Block AV notifications.
  • AccessEnum  v.1.32This simple yet powerful security tool shows you who has what access to directories, files and Registry keys on your systems.
  • FTP and Download Manager  v.2.07Transfer files with ease using this intuitive and powerful FTP client.