Microsoft Windows CE 3.0  

CardAccessConfigurationRegister

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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 CardRegisterClientfunction. 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 hSocketmember of the CARD_EVENT_MASK_PARMSstructure is invalid or that there is no PC Card inserted in the socket.
CERR_READ_FAILURE
Indicates that the driver handle specified for hCardClientis invalid.
CERR_WRITE_FAILURE
Indicates that the driver handle specified for hCardClientis invalid.
CERR_BAD_OFFSET
Indicates that the value specified for offsetis 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

© 2004 Microsoft Corporation. All rights reserved.