IOCTL_DISK_SETINFO (Windows CE 5.0)

Send Feedback

This IOCTL services FAT file system requests to set disk information. The DeviceIoControl function processes this IOCTL.

Parameters

  • hDevice
    [in] Block device handle.
  • dwIoControlCode
    [in] Specifies this IOCTL.
  • lpInBuffer
    [in] Pointer to a DISK_INFO structure.
  • nInBufferSize
    [in] Specifies the size of DISK_INFO.
  • lpOutBuffer
    Not used.
  • nOutBufferSize
    Not used.
  • lpBytesReturned
    [out] Pointer to a DWORD to receive total bytes returned.
  • lpOverlapped
    Not used.

Return Values

If returns TRUE, the IOCTL processed successfully; otherwise, returns FALSE.

Remarks

In Windows CE 3.0, this IOCTL was changed from DISK_IOCTL_SETINFO to IOCTL_DISK_SETINFO.

The FAT file system fills a DISK_INFO structure because it expects the block driver to fill the structure for the IOCTL_DISK_GETINFO IOCTL. This IOCTL informs the block driver of discrepancies in the disk information that the block driver provides to the FAT file system, according to information found on the device media, such as in the MBR of a FAT file system volume. It may not always be possible for a driver to accurately determine the sector size or total number of sectors on a volume. If so, the file system driver must identify and attempt to correct the discrepancy.

Requirements

OS Versions: Windows CE 3.0 and later.
Header: Diskio.h.

See Also

Block Drivers | DeviceIoControl | DISK_INFO | IOCTL_DISK_GETINFO

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.