I use pkcs11 dll in my wpf project, but i want to know what driver/software version my eID reader has so if it is an old version, we can make a popup with "update your driver for the eID reader"
part of code:
_pkcs11 = new Pkcs11("beidpkcs11.dll", false);
LibraryInfo Lib = _pkcs11.GetInfo();
DllVersion = Lib.CryptokiVersion;
You seem to be using PKCS#11 API via managed Pkcs11Interop wrapper to access your eID card but IMO this API does not provide information about the version of your smartcard reader driver. Your best shot is to try to examine
HardwareVersionand/orFirmwareVersionproperties ofSlotInfoclass which contains information about your smarcard reader (known as slot in PKCS#11) but these fields have slightly different meaning:You can also try to read
SCARD_ATTR_VENDOR_IFD_VERSIONreader attribute withSCardGetAttrib()function which is part of PC/SC interface but I am not sure whether the returned value is driver version or device hardware version. Following example reads this attribute with managed pcsc-sharp wrapper:Other than that you would need to use some OS specific low level driver APIs but I am not familiar with any of those.