Ctrl2cap 2.0

Ctrl2cap 2.0 Screenshot With Ctrl2cap, a kernel-mode device driver, you can filter the system's keyboard class driver in order to convert caps-lock characters into control characters.

Developer:   Mark Russinovich
      software by Mark Russinovich →
Price:  0.00
License:   Freeware
File size:   0K
Language:   
OS:   Windows Vista (?)
Rating:   0 /5 (0 votes)

With Ctrl2cap, a kernel-mode device driver, you can filter 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.

Install Ctrl2cap running the command "ctrl2cap /install" from the directory into which you've unzipped the Ctrl2cap files. To uninstall type "ctrl2cap /uninstall". If you are running on 64-bit Windows run ctrl2cap64.exe instead.

Ctrl2cap requires ntddkbd.h from the ddksrcinputinc directory, so you must first copy that file to the ctrl2cap directory. To build a standard NT 4 driver type "buildnt4" and to build a Win2K WDM driver type "buildnt5". Output files are placed in the release subdirectory.

On 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). See the source code to Ctrl2cap.exe for more information.
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, something that would be more difficult using the Ctrl2cap source base

tags keyboard class  the keyboard  the ctrl2cap  class device  from the  that the  caps lock  device manager  the device  inf file  the user  between the  win2k ddk  

Ctrl2cap 2.0 screenshot


Download Ctrl2cap 2.0

 Download Ctrl2cap 2.0


Authors software

Bluescreen 3.2 Bluescreen 3.2
Mark Russinovich

One of the most feared colors in the NT world is blue.

Du v 1.00 r 7 Du v 1.00 r 7
Mark Russinovich

Du (disk usage) will report the disk space usage for the directory you specify.

Sigcheck 1.0 Sigcheck 1.0
Mark Russinovich

Verify that images are digitally signed and dump version information with this simple command-line utility called Sigcheck.

AccessChk 1.03 AccessChk 1.03
Mark Russinovich

As a part of ensuring that they've created a secure environment Windows administrators often need to know what kind of accesses specific users or groups have to resources including files, directories, Registry keys, and Windows services.

CacheSet 1.0 CacheSet 1.0
Mark Russinovich

CacheSet is an applet which helps you manipulate the working-set parameters of the system file cache.

Similar software

Ctrl2cap 2.0 Ctrl2cap 2.0
Mark Russinovich

With Ctrl2cap, a kernel-mode device driver, you can filter the system's keyboard class driver in order to convert caps-lock characters into control characters.

Filter Driver Load Order 1.0.005 Filter Driver Load Order 1.0.005
busTRACE Technologies

busTRACE Technologies has developed a simple utility that allows you to view which filter drivers are specified for the Disk and CD/DVD devices on your computer.

Diskmon 2.01 Diskmon 2.01
Mark Russinovich

DiskMon is an utility which logs and displays all hard disk activity on a Windows system.

Portmon 3.02 Portmon 3.02
Mark Russinovich

Portmon is an application which monitors and displays all serial and parallel port activity on a system.

CapsLock 1.0 CapsLock 1.0
Pierre-Marie DEVIGNE

CapsLock will manage the DOS caps lock status.

Babya System Profiler 2005 11.0 Babya System Profiler 2005 11.0
Babya Software Group

Babya System Profiler is a free and useful program that will access comprehensive information about your computer.

FirstCap 4.0 beta 1 FirstCap 4.0 beta 1
FalsinSoft

FirstCap is a small, free and very handy program which reliably warns keyboard users if they accidentally activate the Caps Lock or Num Lock key.

EasyMP3 2005 2.0.0.19 EasyMP3 2005 2.0.0.19
ZeuS Microsystems

EasyMP3 was created to simply encode and decode audio files.

Fundelete for Windows NT 2.02 Fundelete for Windows NT 2.02
Mark Russinovich

Although NT 4.

DKOSD - Caps Lock 1.1.5 DKOSD - Caps Lock 1.1.5
DKpcCODE

DKOSD will show an "On Screen Display" about the status of the Caps Lock on the keyboard.

Other software in this category

Nullsoft Beep 0.3 Nullsoft Beep 0.3
Nullsoft, Inc

Nullsoft Beep is an application that makes your computer sound like computers sound in the movies.

AR Soft RAM Disk 1.20 AR Soft RAM Disk 1.20
AR Soft

The AR RAM Disk is a freeware driver for Windows NT or Windows 2000.

DBX Plugin for Windows Commander Beta DBX Plugin for Windows Commander Beta
Labs99

DBX Plugin is an additional component for Windows Commander allowing you to read contents of Microsoft Outlook Express files.

4th split 1.1.9.0 4th split 1.1.9.0
Sergey S. Tkachenko

4th split is used for splitting impossibly large files on blocks.

HDCopy 2.104 HDCopy 2.104
Kurt Zimmermann

HDCopy is recommended to make a boot disk.