39#ifndef __eventhandler_h__
40#define __eventhandler_h__
66 LONG EHRegisterClientForEvent(int32_t filedes);
69 LONG EHInitializeEventStructures(
void);
70 LONG EHDeinitializeEventStructures(
void);
75#define PCSCLITE_SHARING_LAST_CONTEXT 1
77#define PCSCLITE_SHARING_NO_CONTEXT 0
79#define PCSCLITE_SHARING_EXCLUSIVE_CONTEXT -1
84#define READER_NOT_INITIALIZED (MAX_ATR_SIZE+1)
LONG EHTryToUnregisterClientForEvent(int32_t filedes)
Try to unregister a client If no client is found then do not log an error.
void EHSignalEventToClients(void)
Sends an asynchronous event to any waiting client.
LONG EHUnregisterClientForEvent(int32_t filedes)
Unregister a client and log an error if the client is not found.
struct pubReaderStatesList READER_STATE
Define an exported public reader state structure so each application gets instant notification of cha...
This keeps a list of defines for pcsc-lite.
#define MAX_ATR_SIZE
Maximum ATR size.
This keeps track of a list of currently available reader structures.
Define an exported public reader state structure so each application gets instant notification of cha...
_Atomic int32_t readerSharing
PCSCLITE_SHARING_* sharing status.
char readerName[MAX_READERNAME]
reader name
uint32_t cardProtocol
SCARD_PROTOCOL_* value.
UCHAR cardAtr[MAX_ATR_SIZE]
ATR.
uint32_t eventCounter
number of card events
_Atomic uint32_t cardAtrLength
ATR length.
uint32_t readerState
SCARD_* bit field.
This keeps a list of Windows(R) types.