CardMod.h required to build a Smart Card Mini Driver is available for download as a part of the Crypto Next Generation (CNG) SDK download.  This is a small package that gets installed on top of the Windows Vista SDK.