Microsoft Windows CE 3.0  

DISK_IOCTL_FORMAT_MEDIA

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.

The FAT file system issues this control code when a device drivers reports that the disk needs a low-level format. Block device drivers indicate this by setting the di_flagsparameter of the DISK_INFOstructure to the value DISK_INFO_FLAG_UNFORMATTED. The FAT file system will then query the end-user to determine whether or not the device should be formatted before issuing the DISK_IOCTL_FORMAT_MEDIA control code.

Parameters

hDevice
Block device handle.
dwIoControlCode
Specifies this code.
lpInBuffer
Pointer to a DISK_INFOstructure.
nInBufferSize
Specifies the size of the DISK_INFOstructure.
lpOutBuffer
Not used.
nOutBufferSize
Not used.
lpBytesReturned
Pointer to a DWORDto receive the total number of bytes returned.
lpOverlapped
Not used.

Remarks

In Windows CE 3.0 and later, this code is now called IOCTL_DISK_FORMAT_MEDIA. Windows CE versions 2.0 and earlier do not issue this request when the driver reports the need to perform a low-level format.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 2.10 and later      
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.


 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.