Compact Flash and Other Storage Devices
Storage devices extend the amount of data stored in a Windows CE device from the maximum allowed in the Object Store. The most common type of storage device is Compact Flash (CF) and ATA cards, although CDROM, DVD, FAT, and other storage devices are becoming more widespread.
Most storage devices are removable, so knowing when the user puts in or takes out a device can be important. In Windows CE a WM_DEVICECHANGE message is sent to the main application window when a removable storage device is added or removed. You need to include the file dbt.h when using this message. You can respond to this message using the following code in the window's message-processing function.
case WM_DEVICECHANGE: switch (wParam) ...
Get Windows® CE 3.0 Application Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.