Partager via


CARD_STATUS (Windows Embedded CE 6.0)

1/6/2010

This structure returns data. It is used by the CardGetStatus function.

Syntax

typedef struct { 
  CARD_SOCKET_HANDLE hSocket; 
  UINT16 fCardState; 
  UINT16 fSocketState; 
} CARD_STATUS, *PCARD_STATUS;

Members

  • hSocket
    Handle to a socket and function pair.
  • fCardState
    Specifies a bit mask indicating current card state. The states are shown in the following table.

    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

  • fSocketState
    Specifies a bit mask indicating card state changes.

    The following table shows the card states.

    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

The EVENT_MASK_POWER_MGMT, EVENT_MASK_RESET and EVENT_MASK_STATUS_CHANGE event masks should not be generated by the socket itself.

Requirements

Header cardsv2.h
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

PC Card Driver Structures
CardGetStatus