Windows does have a Smart Card API in it.