Previous Next

Registering a WDM Smart Card Reader Driver

To make a smart card reader driver visible to the device manager, you must put the indicated registry values under the following key:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\SmartCardDriver

The required values are listed in the following table.

Registry Value Name Contents of the Registry Value Meaning
Start DWORD:0x0000002 A value of 2 makes the driver start automatically. During development, you should 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 SmartCardReader Every driver has to be a member of the setup class SmartCardReader, since the smart card resource manager waits for this class 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.