This function sets the socket state of the specified socket.
STATUS PDCardSetSocket( UINT32 uSocket, PPDCARD_SOCKET_STATE pState );
Returns one of the CERR_* return codes in the Cardserv.h header file.
This function sets the specified socket’s state and adjusts the socket controller appropriately. Callers typically call the PDCardGetSocketState function first, and after making adjustments, the PDCARD_SOCKET_STATE structure then calls this function. This avoids duplicating the socket state on different layers and unintentionally setting socket parameters.