CardReleaseSocketMask

The CardReleaseSocketMask function disables the callbacks requested by CardRequestSocketMask for a particular socket and function pair.

Syntax

STATUS CardReleaseSocketMask(
CARD_CLIENT_HANDLE
hCardClient
CARD_SOCKET_HANDLE
hSock );

Parameters

hCardClient
Specifies the client handle obtained from CardRegisterClient.
hSock
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 values.

Value Description
CERR_BAD_HANDLE Indicates an invalid hCardClient driver handle.
CERR_BAD_SOCKET Indicates an invalid hSock socket identifier or there is no PC Card inserted in the socket. It can also be returned when no prior call was made to CardRequestSocketMask.

Remarks

CardReleaseSocketMask does not disable the global events set by CardRegisterClient.

See Also

CardRequestSocketMask