This function gets the socket state of the specified socket.
STATUS PDCardGetSocket( UINT32 uSocket, PPDCARD_SOCKET_STATE pState );
Returns one of the CERR_* return codes in the Cardserv.h header file.
This function reads the specified socket’s state and returns it in the PDCARD_SOCKET_STATE structure.