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
0
votes
1 answer

couldn't find function symbol in library

Declaring SCardStatus function causes the error: "couldn't find function symbol in library" The Code is as follows: Cu.import('resource://gre/modules/ctypes.jsm'); var is64bit = ctypes.voidptr_t.size == 4 ? false : true; var ifdef_UNICODE =…
Hosein Aqajani
  • 1,553
  • 4
  • 26
  • 46
0
votes
1 answer

SCardEstablishContext not setting context pointer in release mode

I am calling winscard.dll methods from C# and everything has been working fine in a debug mode. Problem i am getting is in release mode My call to establish context is [DllImport("winscard.dll")] public static extern int SCardEstablishContext(int…
Kamran Shahid
  • 3,954
  • 5
  • 48
  • 93
0
votes
1 answer

Reading the number printed on the HID iClass card

I want to read the number printed on the HID iClass(2ks) card. Using WinScard.dll i was able to read the UID and ATR. I had done some research and came to a conclusion that the printed number is a programmed data and might be protected by a PIN. Am…
0
votes
1 answer

ScardTransmit always returning error 16

I am trying to build application in windows using the Winscard library to communicate with contactless smartcard reader. I am able to connect to the device but when I try so send some data using scardtransmit I get a error 16. I have attached the…
0
votes
1 answer

ISO 15693: SCardReconnect fails even though SCardConnect and SCardTransmit succeed (C#)

I am trying to implement code that will perform an SCardReconnect for certain error conditions when trying to read a TI Tag-IT RFID card with an HID 5321 smart card reader. In the event of a transmit error, I try a reconnect and retry the…
mikem419
  • 61
  • 1
  • 7
0
votes
0 answers

ISO 15693: OMNIKEY Contactless reader, occasional read failure

I am investigating an intermittent issue where reading eight blocks of data from a TI Tag HF-I RFID card from an HID OMNIKEY contactless reader. The ReadEightBlocks routine below is called 8 times from a for loop that bumps startBlockNum up by 8…
mikem419
  • 61
  • 1
  • 7
0
votes
1 answer

WinScard Smart Card dll 32 bit 64 bit compatibility

I have to make use of the WinScard.dll library to access the smart card . I have a Java application that loads and makes use of this library to access the smart card . 32 Bit systems : Initially our application was written for a 32 bit Windows .…
rockstar
  • 3,512
  • 6
  • 40
  • 63
0
votes
1 answer

How to send and get data using a single APDU in C++?

I am writing a C++ code using winscard. I noticed that, if I send a command with Scardtransmit where only data is sent or only data received, there is no problem. I can send data or get correct response. However, when the command both sends data…
user1927822
  • 3
  • 1
  • 3
0
votes
1 answer

Error 6 when connecting Gemalto smart card

I am new to smart card development. What I am trying to do is, 1>get the name of the card reader. 2>connect to the card in the card reader. 3>change the admin key of the card using c# . for the first point i used winscard.DLL- function…
codedip
  • 191
  • 3
  • 11
0
votes
1 answer

SCardTransmit returns ERROR_INVALID_PARAMETER when dwMaxCCIDMessageLength is more than 4KB

I'm developing a usb-smartcard & I use windows PC/SC API to transmit data with that smartcard. This is part of my code: if(SCardConnect(hSC, sCard, SCARD_SHARE_EXCLUSIVE, SCARD_PROTOCOL_T1, &hCard, &dwActiveProtocol) == SCARD_S_SUCCESS) { …
Ehsan Khodarahmi
  • 4,772
  • 10
  • 60
  • 87
0
votes
1 answer

Winscard Dll with WCF

My Project structure myApp -->WCFSerLibrary -->ClassLib1 -->ClassLib2 // This one uses winscard.dll I wanted to communicate with a Smartcard reaer attached. Four steps I follow for that are SCardEstablishContext Get the reader name…
Suave Nti
  • 3,721
  • 11
  • 54
  • 78
0
votes
0 answers

using WinSCard library: '__in' was not declared in this scope

I'm trying to use the WinSCard-library to read data from a Myfare Card. To do so I link against WinSCard.lib and include the header "WinSCard.h". from my .pro file: win32: PRE_TARGETDEPS += $$PWD/Lib/WinSCard.lib win32: LIBS += -L$$PWD/Lib/…
mcJack
  • 1
  • 1
-1
votes
1 answer

SLE5528 memory card command to read its' unique ID

I have ACR38U smart card reader and SLE5528 memory cards. I would like to know what is the HEX read command for SLE5528 memory cards to read it's unique ID (or serial number)? Is that possible? Thanks in advance.
FireFalcon
  • 831
  • 11
  • 23
-1
votes
1 answer

Unknown Reader in SCardGetStatusChange Winscard

I am new to.net and I would like to identify if card is detected or removed using winscard's SCardGetStatusChange. But it is returning retcode = -2146435063 which when converted to Hex would give me 0x80100009 = SCARD_E_UNKNOWN_READER. I just based…
-1
votes
1 answer

Getting the "name" of the smartcard for SCardGetCardTypeProviderName()

In order to get a crypto context from CryptAcquireContext(), I need to know the provider name for the smartcard currently in the slot. According to the documentation, SCardGetCardTypeProviderName() will do this, but param 2 is the card name, and I…
Chris J
  • 30,688
  • 6
  • 69
  • 111