Microsoft Windows CE 3.0  

Accessing a Block Device

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

There are two methods for accessing block devices, depending on whether the device is built into a Windows CE–based platform or whether the device is removable by a user.

Drivers for built-in block devices access their devices by mapping the device's address space directly into the address space of the OS. The driver should use the MMapIOSpacefunction to map the block device into system memory.

Block device drivers for PC Card block devices need to use a memory window to access their devices. The driver can get a memory window by using PC Card Services functions and then use the memory window to read and write data between the driver and the block device. The following table lists the functions in the PC Card Services library that drivers for PC Card-based block devices use to interact with their PC Cards.

CardAccessConfigurationRegister CardReleaseExclusive
CardDeregisterClient CardReleaseIRQ
CardGetEventMask CardReleaseSocketMask
CardGetFirstTuple CardReleaseWindow
CardGetNextTuple CardRequestConfiguration
CardGetParsedTuple CardRequestExclusive
CardGetStatus CardRequestIRQ
CardGetTupleData CardRequestSocketMask
CardMapWindow CardRequestWindow
CardModifyWindow CardResetFunction
CardRegisterClient CardSetEventMask
CardReleaseConfiguration  


 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.