Compartir a través de


CARD_EVENT_MASK_PARMS (Windows CE 5.0)

Send Feedback

This structure contains event mask configurations passed to the CardGetEventMask and CardSetEventMask functions.

typedef struct { CARD_SOCKET_HANDLEhSocket;UINT16fAttributes;UINT16fEventMask;} CARD_EVENT_MASK_PARMS, *PCARD_EVENT_MASK_PARMS;

Members

  • hSocket
    Handle to a socket and function pair.

  • fAttributes
    [in] Specifies whether to return a global event mask or the event mask associated with the indicated socket and function pair.

    The following table shows the possible values.

    Value Description
    0 Global event mask.
    1 Specific event mask.
  • fEventMask
    Specifies a bit mask of socket events. This member is input-only for CardSetEventMask and output-only for CardGetEventMask.

    These following table shows the possible socket events.

    Event mask Description
    EVENT_MASK_WRITE_PROTECT Write-protect state
    EVENT_MASK_CARD_LOCK Card lock state
    EVENT_MASK_EJECT_REQ Ejection request
    EVENT_MASK_INSERT_REQ Insertion request
    EVENT_MASK_BATTERY_DEAD Battery dead
    EVENT_MASK_BATTERY_LOW Battery low
    EVENT_MASK_CARD_READY Ready change
    EVENT_MASK_CARD_DETECT Card detect
    EVENT_MASK_POWER_MGMT Power management change
    EVENT_MASK_RESET Card reset
    EVENT_MASK_STATUS_CHANGE Card-generated status change interrupt

Remarks

This structure specifies global events or the events for a specified socket and function pair in which a driver is interested. That is, the EVENT_MASK_POWER_MGMT, EVENT_MASK_RESET and EVENT_MASK_STATUS_CHANGE event masks should not be generated by the socket itself.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Cardsv2.h.

See Also

CardGetEventMask | CardSetEventMask

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.