This function requests exclusive access to a specified socket and function pair.
STATUS CardRequestExclusive( CARD_CLIENT_HANDLE hCardClient, CARD_SOCKET_HANDLE hSocket );
[in] Client handle obtained from the CardRegisterClient function.
[in] Handle to a socket and function pair.
CERR_SUCCESS indicates success. One of the following values indicates failure:
Indicates that the driver handle specified for hCardClient is not valid.
Indicates that the socket identifier specified for hSocket is not valid.
Indicates that no PC Card is inserted.
This function signals card services to issue a series of callback events as it negotiates for approval with each registered driver. First, card services sends a CE_EXCLUSIVE_REQUEST event code to all registered drivers to determine if they allow exclusive use. If all drivers approve the request, card services sends each driver a CE_CARD_REMOVAL event code. Finally, it sends a CE_CARD_INSERTION event code to the requesting driver followed by a CE_EXCLUSIVE_COMPLETE event code. If any drivers do not approve, card services sends the requesting driver a CE_EXCLUSIVE_COMPLETE event code with a failing status in the Parm1 member of the CARD_EVENT_PARMS structure.
OS Versions: Windows CE 1.0 and later.
Link Library: Cardserv.lib.
Last updated on Tuesday, May 18, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.