CardAccessConfigurationRegister

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

STATUS CardAccessConfigurationRegister(
CARD_CLIENT_HANDLE hCardClient, 
CARD_SOCKET_HANDLE hSocket, 
UINT8 rw_flag, 
UINT8 offset, 
UINT8 *pValue );

Parameters

  • hCardClient
    Specifies a client handle obtained from the CardRegisterClient function. If no other stream interface drivers own the configuration for the specified socket and function, a null value is permitted.
  • hSocket
    Handle to the socket and function pair whose registers are to be accessed.
  • rw_flag
    Specifies the operation to perform, either CARD_FCR_READ or CARD_FCR_WRITE.
  • offset
    Specifies which register to access.
  • pValue
    Pointer to the byte to write or to the location to store a byte when reading.

Return Values

CERR_SUCCESS indicates success. One of the following values indicates failure:

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

Driver name

PCMCIA

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later      

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.