Getting PCSC reader serial number with WinSCard
I have a problem with getting PCSC reader serial number if card is not present in the reader. I am using winscard.dll and c++. The following code will work only for the case if card is present in the reader. Otherwise the SCardHandle is not retrieved. I haven't found any other way to get SCardHandle. SCARDHANDLE hCardHandle; SCARDCONTEXT hSC; WCHAR pCardReaderName[256]; LONG lReturn; lReturn = SCardEstablishContext(SCARD_SCOPE_USER, 0, 0, &hSC); if (lReturn != SCARD_S_SUCCESS) { Console::WriteLine("SCardEstablishContext() failed\n"); return; } my_select_reader(hSC, pCardReaderName); // just