Open the card from the card reader

zhaozj2021-02-16  92

/// 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);

转载请注明原文地址:https://www.9cbs.com/read-11664.html

New Post(0)