title: Getting the "name" of the smartcard for SCardGetCardTypeProviderName()
body: <p>In order to get a crypto context from <code>CryptAcquireContext()</code>, I need to know the provider name for the smartcard currently in the slot.</p>
  
  <p>According to the documentation, <code>SCardGetCardTypeProviderName()</code> will do this, but param 2 is the card name, and I can't see how to determine this non-interactively. All the documentation/examples I've seen either harcode a name or rely on <code>SCardUIDlgSelectCard()</code>, which displays a UI. </p>
  
  <p>Similarly reading around <code>SCardLocateCards()</code>, although it takes a list of smartcard names (for which I'm populating from <code>SCardListCards()</code>, it doesn't seem to pass back anything that identifies the name of the smartcard inserted.</p>
  
  <p>I suspect I'm missing something obvious, but I can't see what.</p>