Microsoft Windows CE 3.0  

CardGetEventMask

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 retrieves either the driver's global event mask or the event mask for a particular socket and function. The event mask specifies the events that trigger a callback.

STATUS CardGetEventMask(
CARD_CLIENT_HANDLE
hCardClient
PCARD_EVENT_MASK_PARMS
pMaskParms
);

Parameters

hCardClient
Client handle obtained from the CardRegisterClientfunction.
pMaskParms
Pointer to a CARD_EVENT_MASK_PARMSstructure.

Return Values

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

CERR_BAD_ARGS
Indicates that the pointer specified for pMaskParmsis invalid.
CERR_BAD_HANDLE
Indicates that the driver handle specified for hCardClientis invalid.
CERR_BAD_SOCKET
Indicates that the identifier specified for the hSocketmember of CARD_EVENT_MASK_PARMSis invalid or that no PC Card is inserted in the socket.

Remarks

If a stream interface driver used the CardRequestSocketMaskfunction to associate a socket and function pair with an event mask, this function retrieves the event mask for the specified socket and function; otherwise, it retrieves the global event mask as set initially by CardRegisterClient.

This function returns the current event mask in the fEventMaskmember of CARD_EVENT_MASK_PARMS. If this function returns a global event mask, it ignores the structure's socket identifier member hSocket.

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_EVENT_MASK_PARMS, CardRequestSocketMask, CardSetEventMask



 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.