The CardRequestSocketMask function associates a socket and function pair with an event mask for the driver. Card Services callbacks to the driver are then limited to those associated with the events specified in the mask.
STATUS CardRequestSocketMask( CARD_CLIENT_HANDLE hCardClient CARD_SOCKET_HANDLE hSock UINT16 fEventMask );
If the function succeeds, the return value is CERR_SUCCESS; otherwise, it is one of the following:
Value | Description |
---|---|
CERR_BAD_HANDLE | Indicates the driver handle specified for hCardClient is invalid. |
CERR_BAD_SOCKET | Indicates the socket identifier specified for hSock is invalid. |
An event mask should not be confused with the global event mask, which pertains to all sockets and is set by CardRegisterClient.
CardSetEventMask can change either a socket-specific event mask or the mask specified by CardRegisterClient.