CardReleaseExclusive

This function releases exclusive access to a socket and function pair.

Syntax

STATUS CardReleaseExclusive( CARD_CLIENT_HANDLE hCardClient CARD_SOCKET_HANDLE hSocket );

Parameters

hCardClient
Client handle obtained from the CardRegisterClient function.
hSocket
Handle to a socket and function pair.

Return Values

CERR_SUCCESS indicates success. One of the following values indicates failure:

CERR_BAD_HANDLE
Indicates that the driver handle specified for hCardClient is invalid.
CERR_BAD_SOCKET
Indicates that the socket identifier specified for hSocket is invalid or a that a PC Card is not inserted.
CERR_IN_USE
Indicates that exclusive use is owned by another driver.

Remarks

Card Services informs all registered drivers that a socket and function pair is available by first sending a CE_CARD_REMOVAL event code to the callback function of the calling driver, and then sending a CE_CARD_INSERTION event code to each registered client’s callback function.

Driver Name

PCMCIA

See Also

CardRequestExclusive