CardReleaseExclusive

The CardReleaseExclusive function releases exclusive access to a socket and function pair.

Syntax

STATUS CardReleaseExclusive( CARD_CLIENT_HANDLE hCardClient CARD_SOCKET_HANDLE hSocket );

Parameters

hCardClient
Specifies the client handle obtained from CardRegisterClient.
hSocket
Specifies a handle to a socket and function pair.

Return Values

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.

Remarks

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.

See Also

CardRequestExclusive, PC Card Event Codes