Previous Next

Enabling Smart Card Event Logging in the Registry

A smart card reader driver should use the system event logger to log errors, so that the system administrator can determine why a failing driver is unable to work properly.

In order to enable event logging, you must add several values to the registry under the following key:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\EventLog\System\SmartCardDriver

The registry values that enable event logging are listed in the following table.
Registry Value Name Contents of the Registry Value
EventMessageFile %SystemRoot%\System32\SmartCardDriver.sys

Note: The file name extension must be included in the value name EventMessageFile, but it must never appear in any other part of the registry path.

TypesSupported DWORD:0x00000007

For more information about specifying these registry entries, see INF AddService Directive.