The CardResetFunction function resets a specified function in the specified socket.
STATUS CardResetFunction( CARD_CLIENT_HANDLE hCardClient CARD_SOCKET_HANDLE hSock );
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. |
If there are no conflicts, Card Services resets the socket and function pair before CardResetFunction returns.