Share via


CardResetFunction (Windows CE 5.0)

Send Feedback

This function resets a specified card function in a specified socket.

STATUS CardResetFunction(CARD_CLIENT_HANDLE hCardClient,CARD_SOCKET_HANDLE hSock);

Parameters

  • hCardClient
    [in] Handle obtained from the CardRegisterClient function.
  • hSock
    [in] Handle to a socket and function pair.

Return Values

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

  • CERR_BAD_HANDLE
    Indicates that the driver handle specified for hCardClient is not valid.
  • CERR_BAD_SOCKET
    Indicates that the socket identifier specified for hSock is not valid.
  • CERR_IN_USE
    Indicates that another driver owns the configuration for the requested socket, owns the interrupt windows, or has exclusive access to the card.
  • CERR_NO_CARD
    Indicates that no PC Card is inserted in the specified socket.

Remarks

If there are no conflicts, card services resets the socket and function pair before this function returns.

A multiple function PC Card can only be reset when all functions have requested CardResetFunction. After the PC Card is reset, the PC Card stack enumerate the card again, if the card is still in a PC Card slot.

Requirements

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

See Also

CARD_EVENT | CardRequestIRQ | CardRegisterClient

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.