The CardReleaseExclusive function releases exclusive access to a socket and function pair.
STATUS CardReleaseExclusive( CARD_CLIENT_HANDLE hCardClient CARD_SOCKET_HANDLE hSocket );
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 hSocket is invalid or a PC Card not inserted. |
CERR_IN_USE | Indicates exclusive use is owned by another driver. |
Card Services informs all registered drivers that the socket and function pair are available by sending a CE_CARD_REMOVAL event code to the callback function of the calling driver, and then a CE_CARD_INSERTION event code to each registered client's callback function.
CardRequestExclusive, PC Card Event Codes