PC Card Event Codes

Windows CE .NET

PC Card event codes are 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 platforms. The following table shows the defined codes.

Event code Description
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_SUSPEND Indicates that the system has just returned from a suspend and that any CE_CARD_INSERTION and CE_CARD_REMOVAL codes received before the next CE_PM_RESUME code are likely to be artificially generated.
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 event or resume event.
CE_REGISTRATION_COMPLETE Indicates that client registration is complete.

See Also

PC Card Drivers


 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.

Show: