CardAccessConfigurationRegister (Windows CE 5.0)

Send Feedback

This function reads or writes the function and configuration registers of a PC Card.

STATUS CardAccessConfigurationRegister(CARD_CLIENT_HANDLEhCardClient,CARD_SOCKET_HANDLEhSocket,UINT8 rw_flag,UINT8 offset,UINT8* pValue);

Parameters

  • hCardClient
    [in] Specifies a client handle obtained from the CardRegisterClient function.
  • hSocket
    [in] Handle to the socket and function pair whose registers are to be accessed.
  • rw_flag
    [in] Specifies the operation to perform, either CARD_FCR_READ or CARD_FCR_WRITE.
  • offset
    [in] Specifies which register to access.
  • pValue
    [out] Pointer to the byte to write or to the location to store a byte when reading.

Return Values

Return value Description
CERR_SUCCESS Indicates success.
CERR_BAD_SOCKET Indicates failure. Indicates that the identifier specified for the hSocket member of the CARD_EVENT_MASK_PARMS structure is not valid or that there is no PC Card inserted in the socket.
CERR_READ_FAILURE Indicates failure. Indicates that the driver handle specified for hCardClient is not valid.
CERR_WRITE_FAILURE Indicates failure. Indicates that the driver handle specified for hCardClient is not valid.
CERR_BAD_OFFSET Indicates failure. Indicates that the value specified for offset is not valid.
CERR_IN_USE Indicates failure. Indicates that another stream interface driver owns the configuration for this socket and function.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Cardsv2.h.
Link Library: Pcc_serv.dll

See Also

CardRegisterClient | CARD_EVENT_MASK_PARMS

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.