Hi, @junzilan.
Welcome to Microsoft Q&A!
Please set the type LONG
of return value for SCardTransmit
. If anything wrong, it will return the value from this list.
In order to send commands to the card, you can refer to windows-classic-samples.
If you want to test it, you might need to add the Winscard.lib for APIs (SCardTransmit
, SCardEstablishContext
, etc.) and initialize the pointer.
You're so kind of providing a reproducible minimal sample.
Thank you.
Tong
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.