Microsoft Windows CE 3.0  

CardRequestConfiguration

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 sets socket attributes, interface type, voltage, and registers, as specified by the CARD_CONFIG_INFOstructure.

STATUS CardRequestConfiguration(
CARD_CLIENT_HANDLE
hCardClient
PCARD_CONFIG_INFO
pParms
);

Parameters

hCardClient
Handle obtained from the CardRegisterClientfunction.
pParms
Pointer to a CARD_CONFIG_INFOstructure.

Return Values

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

CERR_BAD_ARGS
Indicates that the pointer specified for pParmsis invalid.
CERR_BAD_HANDLE
Indicates that the driver specified for hCardClientis invalid.
CERR_BAD_SOCKET
Indicates that the socket identifier specified in the hSocketmember of CARD_CONFIG_INFOis invalid or that a PC Card is not inserted.
CERR_BAD_VCC
Indicates that the voltage setting specified in the uVccmember of CARD_CONFIG_INFOis invalid.
CERR_BAD_VPP
Indicates that a voltage setting specified in the uVpp1or uVpp2member of CARD_CONFIG_INFOis invalid.
CERR_IN_USE
Indicates that the configuration is owned by another driver.
CERR_READ_FAILURE
Indicates that this function is unable to read configuration registers.
CERR_WRITE_FAILURE
Indicates that this function is unable to write configuration registers.

Remarks

If power to the socket is off, CardRequestConfigurationturns it on.

Values specified in CARD_CONFIG_INFOare written to the card's configuration registers.

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.

See Also

CARD_CONFIG_INFO, CardReleaseConfiguration



 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.