This function retrieves the current status of the specified socket and function pair.
STATUS CardGetStatus( PCARD_STATUS pStatus );
CERR_SUCCESS indicates success. If the CARD_STATUS structure referenced by the pStatus parameter contains invalid information in its hSocket member, this function returns CERR_BAD_SOCKET. If the pStatus parameter itself is invalid, this function returns CERR_BAD_ARGS.
The status is any of the event masks defined in the Cardserv.h header file, such as write protect, card lock, and battery dead. You can determine the status from the bit mask values this function retrieves in CARD_STATUS.
PCMCIA