CardResetFunction

The CardResetFunction function resets a specified function in the specified socket.

Syntax

STATUS CardResetFunction( CARD_CLIENT_HANDLE hCardClient CARD_SOCKET_HANDLE hSock );

Parameters

hCardClient
Specifies a 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:

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.
CERR_IN_USE Indicates another driver owns the configuration for the requested socket.
CERR_NO_CARD Indicates that there is no PC Card in the specified socket.

Remarks

If there are no conflicts, Card Services resets the socket and function pair before CardResetFunction returns.

See Also

CARD_EVENT, CardRequestIRQ