Home > Software engineering >  How to capture card reader card read, in vb6.
How to capture card reader card read, in vb6.

Time:10-05

I did a program using VB6, request to my program is running, the card reader, when have card reader, I automatically jump out of the dialog box (or form)
Excuse me, is what kind of hook procedure to capture or how to deal with?

CodePudding user response:

If you are using the API mode connection "smart card resource manager:" get SCARD_READERSTATEA structure, using SCardGetStatusChangeA function if one contains SCARD_STATE_PRESENT dwCurrentState members of the state, is a card came in,

CodePudding user response:

I this is the contact card, there is no card to come in, just to scan,

CodePudding user response:

Single do a Windows service, the card reader card number into general keyboard input is read

CodePudding user response:

refer to the second floor pipi20091001 response:
I this is the contact card, there is no card to come in, just to scan,


Then you that depends on the card reader in the PC application interface is which kind of, if is PCSC protocol interface, so no difference between contact and non-contact,

CodePudding user response:

To # 3: how to transform, and again a little bit thin

CodePudding user response:

Usb interface! Non-contact card

CodePudding user response:

See driver interface specification, sample,
Or is it notifies you credit card information, or is need you to keep track the status of the latest, these two kinds of working mode,

CodePudding user response:

refer to 6th floor pipi20091001 response:
usb interface! Contactless CARDS


Which one of the USB device class? A USB device class a lot, CCID? HID? The CDC? MSD?

The key is in the PC side, what do you use interface,

CodePudding user response:

To # 8:
I'm using the ID card reader
Specifications: HCE - 406 - u
Software version: Ver: 5.02 N
PC usb interface,

CodePudding user response:

That is a virtual keyboard USB device, you can be a Form of KeyPreview attribute set to True, in the event of an Form_KeyPress test input, general virtual keyboard devices based on input end of the vbCrLf, you can test it,

The trouble is that the keyboard will trigger it, you can use the timer testing input rate, will filter out the virtual keyboard devices,

CodePudding user response:

PCSC with scardgetstatus,

CodePudding user response:

The upstairs can elaborate on it?

CodePudding user response:

Namely scardStatus, take card,

CodePudding user response:

How to take? Please suggest the detailed point!

CodePudding user response:

Won't vb, vc code to some search on the net,

CodePudding user response:

Don't need to search the HCE - 406 - u will never be PCSC interface,
  •  Tags:  
  • API
  • Related