The CardReleaseConfiguration function places the selected socket and card into a memory only interface, the default mode.
STATUS CardReleaseConfiguration(
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 values.
| 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 or a PC Card not inserted. |
| CERR_IN_USE | Indicates the configuration is owned by another driver. |
| CERR_WRITE_FAILURE | Indicates the function is unable to write configuration registers. |
Card Services removes power if no other drivers are using the card.