Questions tagged [winscard]

Smart Card Resource Manager Helper Library, implementing the Personal Computer/Smart Card API in Microsoft Windows 2000 and later.

Winscard is the name of the header file for the Smart Card Resource Manager Helper Library, implementing the Personal Computer/Smart Card API in recent versions of the Microsoft Windows operating system (Windows 2000 and later).

Also see

92 questions
4
votes
1 answer

How are PCSC smart card reader 'friendly names' constructed?

I use WinSCard to list all readers, which gives me a list like this: ASK RDR4x7 0 SCM Microsystems Inc. SCR3320 USB Smart Card Reader 0 SCM Microsystems Inc. SCR3320 USB Smart Card Reader 1 SCM Microsystems Inc. SCR3320 USB Smart Card Reader…
Vincent Van Den Berghe
  • 5,425
  • 2
  • 31
  • 40
4
votes
1 answer

ERROR_INVALID_HANDLE in .NET app with winscard.dll

I'm creating a .NET Windows service to communicate with a smart card reader. The maincomponent is a Windows DLL called winscard.dll which I'm using with DLLImport attribute in the .NET code. Everything works fine on Windows XP 32 bit, but when i…
Peter Kiss
  • 9,309
  • 2
  • 23
  • 38
3
votes
2 answers

.NET or COM HID iCLASS Smart Card Reader

I have coding I almost always use with my Omnikey RFID CardMan 5321 smart cards. Problem is we received new cards today which are marked "HID iCLASS GL" which do not appear to be working well with our coding. Without going through the whole…
Anthony Greco
  • 2,885
  • 4
  • 27
  • 39
3
votes
2 answers

NFC MIFARE Classic 1K cannot read or write

I've a NFC reader along with MIFARE Classic 1K card. I've a Visual C# winforms project. Right now I'm able to connect to the reader and detect the card and get it's UUID. The problem I'm facing is while writing and reading data. I searched a lot on…
Ibrahim Iqbal
  • 600
  • 3
  • 23
3
votes
2 answers

C# WinScard.SCardListReaders should list only the connected readers (but it is listing all the past installed reader names which is now not connected)

Please go through my below C# code. I am trying to get the list of Smart Card readers that are now connected to my computer. But this function is returning all the smartcard reader names that was connected in the past (I mean not connected now). I…
3
votes
1 answer

ACR1252 NFC Reader Serial Number

I bought a couple of ACR1252 NFC readers, as they seem to be the only ones that can store and return an internal serial number. I need them for a C# program, where I need to distinguish 2 NFC readers plugged to the same computer, since Windows…
Aritz V.
  • 33
  • 1
  • 4
3
votes
0 answers

define, initialize and use types in js-ctypes

SCardTransmit function is defined in https://msdn.microsoft.com/en-us/library/windows/desktop/aa379804%28v=vs.85%29.aspx I want to declare and use this function, I have problems with the definition of some arguments in js-ctypes (especially in type…
Hosein Aqajani
  • 1,553
  • 4
  • 26
  • 46
3
votes
0 answers

Emulate card reader

I'm doing a project in C# using winscard.dll to communicate with a smart card. Right now I'm don't have a card reader to test with, so I'm working on basic PInvoke layer right now, but I cannot test it because I don't have a smart card service…
user629926
  • 1,910
  • 2
  • 18
  • 43
3
votes
2 answers

How to use SCardGetStatusChange correctly on Windows 8?

The smart card service behaves differently on Windows 8 and MSDN hasn't updated their documentation. Can anyone give a code snippet on how to call SCardGetStatusChange correctly to monitor smart card actions on Windows 8? Thanks in advance!
Leo.Zhou
  • 175
  • 1
  • 12
2
votes
1 answer

Unknown response from WINSCARD.DLL method SCardTransmit on O2Micro reader with response length information

For communcation with a Smartcard I use the WINSCARD.DLL as an API to send APDU commands to Smartcards. For a couple of cardreaders this is working as expected, but somehow I get an unkown return (it is not on…
René
  • 129
  • 1
  • 4
  • 14
2
votes
1 answer

C++ source in Windows 7 SCardGetStatusChange returns code 6

I am implementing a PKCS#11 library which will communicate with card readers using winscard in windows and PCSC in MAC. I am using the following sample code to get the card change status from readers. It works fine in MAC and returns 0x0122 for…
iOS-Developer84
  • 654
  • 8
  • 19
2
votes
0 answers

MIFARE desfire EV1 communication using winscard

I need some help communicating with Desfire EV1 card. The library (winscard.dll) seems to be automatically handling all responses from the card that have an ADDITIONAL_FRAME (AF) byte so that the application receives already processed data. For…
Lewis Munene
  • 134
  • 7
2
votes
1 answer

SCARD_F_INTERNAL_ERROR result from SCardGetStatusChange

I'm developing application that is using Mifare Classic 1K card and HID Omnikey 5421 (successor of 5321). I using thread to detect card remove/insert. Delphi code (thread method): function CardWatcherThread(PContext: Pointer): integer; var RetVar …
sliwinski.lukas
  • 1,412
  • 1
  • 18
  • 28
2
votes
2 answers

Smartcard reader naming

I have two readers (HID OMNIKEY 5321) in system (every reader performs a different function) reader 1 - "Smart Card Reader 0" reader 2 - "Smart Card Reader 1" In my program is set up that "Smart Card Reader 0" - action 1 "Smart Card Reader 1"…
Yuriy
  • 131
  • 11
2
votes
1 answer

Problems using SCardTransmit from winScard.dll reading a tag 4B

For two weeks I've been working on the task to read the tag, and a stored link, of an active NFC TI Chip. I also have a problem reading the ATR. My reader is a Springcard H663. I use the winScard.dll and managed to use SCardEstablishContext() and…
the dark one
  • 21
  • 1
  • 2