pcsc-lite  1.8.20
Macros | Functions
prothandler.h File Reference

This handles protocol defaults, PTS, etc. More...

Go to the source code of this file.




DWORD PHSetProtocol (struct ReaderContext *, DWORD, UCHAR, UCHAR)
 Determine which protocol to use. More...

Detailed Description

This handles protocol defaults, PTS, etc.

Definition in file prothandler.h.

Function Documentation

◆ PHSetProtocol()

DWORD PHSetProtocol ( struct ReaderContext rContext,
DWORD  dwPreferred,
UCHAR  ucAvailable,
UCHAR  ucDefault 

Determine which protocol to use.

SCardConnect has a DWORD dwPreferredProtocols that is a bitmask of what protocols to use. Basically, if T=N where N is not zero will be used first if it is available in ucAvailable. Otherwise it will always default to T=0.

IFDSetPTS() is always called so that the driver can initialise its data

Definition at line 60 of file prothandler.c.