card-reader | PCSC smartcard reader library for nodejs | Runtime Evironment library
kandi X-RAY | card-reader Summary
kandi X-RAY | card-reader Summary
A simple wrapper around Santiago Gimeno's great pcsclite library.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of card-reader
card-reader Key Features
card-reader Examples and Code Snippets
Community Discussions
Trending Discussions on card-reader
QUESTION
I'm trying to play with a smart card using Windows 10/Access 2016 and VBA, and I have come across just about every example I could possibly find of how to make this happen, including:
- https://www.utteraccess.com/forum/Acccess-Card-Readers-t1986575.html
- Getting started with smartcard & ISO 7816 in excel vba ( SCardEstablishContext )
- https://docs.microsoft.com/en-us/windows/win32/api/winscard/ (for function reference), and
- Authentication Return Values and System Error Codes just to figure out what's going sideways.
The issue that I'm having is that SCardEstablishContext
is returning 0x0 - SCARD_S_SUCCESS
, but when I pass the SCARDCONTEXT over to SCardIsValidContext
, it's returning 0x6 - ERROR_INVALID_HANDLE
.
Here's the relevant parts of the code that I'm using (ignore AuthDict
and SCardAuthCode
as those are just helper functions to decode whatever status the other functions return)
ANSWER
Answered 2021-Apr-21 at 16:27SCARDCONTEXT
is not a type, it's a handle. I don't know where that type comes from.
Use a LongPtr
for that handle.
SCardEstablishContext
uses a pointer to the handle, so ByRef
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install card-reader
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page