This section lists the event codes that Card Services sends to the stream interface driver’s callback function to indicate that a PC Card event has occurred. Not all option codes are supported on all Windows CE–based platforms. The following table shows the defined codes.
Event code |
Meaning |
CE_BATTERY_DEAD | Indicates a dead battery on the PC Card. This event is signaled through the BVD1 pin, which can also be accessed through the pin replacement register (PRR). |
CE_BATTERY_LOW | Indicates a low battery on the PC Card. This event is signaled through the BVD2 pin, which can also be accessed through the PRR. |
CE_CARD_LOCK | Indicates that the mechanical card lock is closed. |
CE_CARD_READY | Indicates that a PC Card has changed from a busy to a ready state. |
CE_CARD_REMOVAL | Indicates that a PC Card has been removed from the socket. |
CE_CARD_UNLOCK | Indicates that the mechanical card lock is open. |
CE_PM_RESUME | Indicates that the system has resumed after being turned off and is now running. |
CE_EXCLUSIVE_COMPLETE | Indicates that a driver’s CardRequestExclusive request has taken place. |
CE_EXCLUSIVE_REQUEST | Indicates that a driver has called CardRequestExclusive with a request for exclusive access to a PC Card. |
CE_WRITE_PROTECT | Indicates that a PC Card’s write-protect status has changed. |
CE_CARD_INSERTION | Indicates that a PC Card has been inserted in the socket. Applications registering for insertion events also receive this event for cards that are already in the socket after a suspend or resume event. |
CE_REGISTRATION_COMPLETE | Indicates that client registration is complete. |