This function retrieves the first tuple of the specified type for the specified socket and function.
STATUS CardGetFirstTuple( PCARD_TUPLE_PARMS pGetTupleParms );
CERR_SUCCESS indicates success. One of the following values indicates failure:
This function searches the CIS tuple chain in the PC Card’s attribute memory for the tuple specified by the uDesiredTuple member of CARD_TUPLE_PARMS. A uDesiredTuple value of 0xFF indicates that all tuples are returned. The driver retains the values returned in the uLinkOffset, uCISOffset and fFlags members of CARD_TUPLE_PARMS so that subsequent calls to the CardGetNextTuple or CardGetTupleData functons follow the tuple chain. The members uTupleCode and uTupleLink are ignored when the return value is not CERR_SUCCESS.
To obtain tuple data, call CardGetTupleData.
The CARD_TUPLE_PARMS and the CARD_DATA_PARMS structures are arranged so that their corresponding members are aligned. With care, a single buffer can be used in all calls to the Card Services tuple functions. This function turns on the PC Card socket if it is not on. The socket is turned off if no drivers have any memory windows open on the PC Card.
PCMCIA
CARD_DATA_PARMS, CARD_TUPLE_PARMS, CardGetNextTuple, CardGetTupleData