PC Card Event Codes
This section lists the event codes that Card Services sends to the installable device driver's callback function to indicate that a PC Card event has occurred. Note that not all option codes are supported on all Windows CE platforms. The following codes are defined:
-
CE_BATTERY_DEAD
-
The BVDI pin signals a dead battery on the PC Card. BVDI can also be accessed through the pin replacement register.
-
CE_BATTERY_LOW
-
The BVD2 pin signals a low battery on the PC Card. BVD2 can also be accessed through the pin replacement register.
-
CE_CARD_LOCK
-
Indicates the mechanical card lock is closed.
-
CE_CARD_READY
-
Indicates the PC Card has changed from a busy to a ready state.
-
CE_CARD_REMOVAL
-
Indicates the PC Card has been removed from the socket.
-
CE_CARD_UNLOCK
-
Indicates the mechanical card lock is open.
-
CE_EJECTION_COMPLETE
-
Indicates the motor has ejected PC Card.
-
CE_EJECTION_REQUEST
-
Indicates a user request to eject PC Card.
-
CE_INSERTION_COMPLETE
-
Indicates the motor has inserted PC Card.
-
CE_INSERTION_REQUEST
-
Indicates a user request to inset PC Card.
-
CE_PM_RESUME
-
Power management server notification that the system is running.
-
CE_PM_SUSPEND
-
Power management server notification that the system is suspended.
-
CE_EXCLUSIVE_COMPLETE
-
Granted client's CardRequestExclusive request.
-
CE_EXCLUSIVE_REQUEST
-
Indicates a driver has called CardRequestExclusive with request for exclusive access to a PC Card.
-
CE_RESET_PHYSICAL
-
Indicates a hardware reset is about to occur to a specified socket.
-
CE_RESET_REQUEST
-
Indicates a driver has called CardResetFunction to reset a function on a PC Card.
-
CE_CARD_RESET
-
Indicates a hardware reset occurred in a specified socket.
-
CE_MTD_REQUEST
-
Communicates MTD read, write, copy, and erase requests to support bulk memory services.
-
CE_CLIENT_INFO
-
Indicates a request from Card Services for client information.
-
CE_TIMER_EXPIRED
-
Reserved.
-
CE_SS_UPDATED
-
Indicates Socket Services has changed for the specified socket.
-
CE_WRITE_PROTECT
-
Indicates a PC Card's write-protect status has changed.
-
CE_CARD_INSERTION
-
Indicates a PC Card is inserted in the socket or a client registering for an insertion event gets an artificial event for a card already in the socket.
-
CE_RESET_COMPLETE
-
Indicates a hardware reset by the CardResetFunction function.
-
CE_ERASE_COMPLETE
-
Indicates client's erase request is completed.
-
CE_REGISTRATION_COMPLETE
-
Indicates client registration is complete.
-
CE_STATUS_CHANGE_INTERRUPT
-
Indicates the PC Card has generated a status change interrupt.