Microsoft Windows CE 3.0  

I/O Control Codes for Block Device Drivers

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.

Block device drivers must respond to the I/O control codes shown in the following tables to interface properly with the FAT file system. The names of the block device driver I/O control codes have changed between Windows CE version 2.12 and version 3.0. The following table shows the I/O control codes for version 2.12 and earlier:

I/O control code Description
DISK_IOCTL_GETINFO Retrieves information about the block device
DISK_IOCTL_READ Reads data from the block device
DISK_IOCTL_WRITE Writes data to the block device
DISK_IOCTL_SETINFO Sets information about the block device
DISK_IOCTL_FORMAT_MEDIA Formats at a low level or reformats the block device
DISK_IOCTL_GETNAME Retrieves the name that file system drivers should use as the block device's folder

The following table shows the block device I/O control codes for Windows CE version 3.0 and later:

I/O control code Description
IOCTL_DISK_FORMAT_MEDIA Formats at a low level or reformats the block device
IOCTL_DISK_FORMAT_VOLUME Formats a FAT volume.
IOCTL_DISK_GET_STORAGEID Gets the ID associated with a storage device. These IDs are device dependent.
IOCTL_DISK_GETINFO Retrieves information about the block device
IOCTL_DISK_GETNAME Retrieves the name that file system drivers should use as the block device's folder
IOCTL_DISK_INITIALIZED  
IOCTL_DISK_READ Reads data from the block device
IOCTL_DISK_SCAN_VOLUME Scans a FAT volume for errors.
IOCTL_DISK_SETINFO Sets information about the block device
IOCTL_DISK_WRITE Writes data to the block device

For complete information on these codes, see the Microsoft Windows API Reference.



 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.