Windows NT sample drivers are based on a SAMPLE driver from Windows NT DDK.
The NT\Driver sample is a simple NT kernel mode driver, which is based on a generic SAMPLE driver from Windows NT DDK. It tries to register as a Card Services Client, and provides a minimal callback function.
This is an extended version of the Driver sample. In addition to the Driver sample, this sample checks for a specific card and, if inserted, demonstrates how to retrieve resources signed to the card. The driver also properly processes a GetClientInfo request, returning the valid info.
To adapt the driver code of your card, please modify manufacturer and product name in the head of the source file.
Simplest Windows application, which registers Card Services client, traces callback to main application window, and deregisters Card Services client during unloads.