/// Get Card's CSP name. //
// // Note: SCardGetCardTypeProviderName is not available // in Smart Card Base Component v1.0 Please see // ReadMe.txt for more information // dwAutoAllocate = SCARD_AUTOALLOCATE; lResult = SCardGetCardTypeProviderName (hContext, szCardName, SCARD_PROVIDER_CSP, (LPTSTR.. ) & szcspname, & dwautoallocate; if (lresult! = scard_s_success) {__leave;}
// // prepare full qualified container name. // szcontainername = (lptstr) malloc ((Sizeof (_t ("(" ("lpreaderstates [i] .szreader) sizeof (_t (" ///// 0 "))) * Sizeof (tchar));
IF (szcontainername == null) {LRESULT = scard_e_no_memory; __leave;}
WSPRINTF (szcontainername, _t (".//% s //"), lpreaderstates [i] .szreader);