Registering the Driver

To make the driver visible to the device manager, a driver needs to have the following entries in the registry under a specific path:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\SmartCardDriver

Start
DWORD:0x0000002

A value of 2 makes the driver start automatically. During development, it is recommended to use a Start value of 3, which makes the driver start manually.

Type
DWORD:0x0000001

A value of 1 identifies the driver as a kernel-mode driver.

Group
"Smart Card Reader"

Every driver has to be a member of the Group "Smart Card Reader", since the smart card resource manager waits for this group to start.

ErrorControl
DWORD:0x0000001

A value of 1 lets the system continue to boot even if the driver fails, but it shows an error message if the driver fails to load.