Share via


CardReleaseExclusive

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

This functionreleases exclusive access to a socket and function pair.

Syntax

STATUS CardReleaseExclusive(
  CARD_CLIENT_HANDLE hCardClient,
  CARD_SOCKET_HANDLE hSocket 
);

Parameters

  • hSocket
    [in] Handle to a socket and function pair.

Return Value

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 hSocket is not valid or that a PC Card is not inserted.
  • CERR_IN_USE
    Indicates that another driver owns exclusive use.

Remarks

Card services informs all registered drivers that a socket and function pair is available. It first sends a CE_CARD_REMOVAL event code to the callback function of the calling driver, and then sends a CE_CARD_INSERTION event code to each registered client's callback function.

Requirements

Header cardsv2.h
Library Pcc_serv.dll
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

CardRequestExclusive
CardRegisterClient