CARD_REGISTER_PARMS (Windows Embedded CE 6.0)
1/6/2010
This structure contains driver characteristics passed to the CardRegisterClient function.All members are input-only.
Syntax
typedef struct {
UINT16 fAttributes;
UINT16 fEventMask;
UINT32 uClientData;
} CARD_REGISTER_PARMS, *PCARD_REGISTER_PARMS;
Members
fAttributes
Driver characteristics.The following table shows the possible values.
Flag Description CLIENT_ATTR_MEM_DRIVER
RAM or static RAM (SRAM) memory driver
CLIENT_ATTR_MTD_DRIVER
Flash RAM memory driver, sometimes known as a memory technology driver
CLIENT_ATTR_IO_DRIVER
I/O driver
CLIENT_ATTR_NOTIFY_SHARED
PC Card that is shared
CLIENT_ATTR_NOTIFY_EXCLUSIVE
PC Card that is exclusively used
fEventMask
Specifies a global socket events bit mask.The followint 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
- uClientData
Specifies 32 bits of context data sent to the client's callback function. This data is typically a pointer to a data structure.
Remarks
The client data in uClientData is passed unchanged to the stream interface driver's callback function. The client can interpret this context data in any manner it chooses.
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 |