Share via


IOCTL_DISK_SETINFO (Windows Embedded CE 6.0)

1/6/2010

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

Header diskio.h
Windows Embedded CE Windows CE 3.0 and later

See Also

Reference

Block Driver IOCTLs
DeviceIoControl
DISK_INFO
IOCTL_DISK_GETINFO

Other Resources

Block Drivers