Partager via


IOCTL_DISK_FLUSH_CACHE (Windows Embedded CE 6.0)

1/6/2010

The FAT file system issues this IOCTL when a storage device has an associated hardware cache, and the device driver reports that the cache needs to be flushed for transfers. The DeviceIoControl function processes this IOCTL.

Parameters

  • hDevice
    [in] Handle to the block device storage volume, which can be obtained by opening the FAT volume by its file system entry.
  • dwIoControlCode
    [in] Specifies this IOCTL.
  • lpInBuf
    Not used.
  • nInBufSize
    Not used.
  • lpOutBuf
    Not used.
  • nOutBufSize
    Not used.
  • lpBytesReturned
    Not used.
  • lpOverlapped
    Not used.

Return Values

If the return value is TRUE, then the IOCTL was successfully processed; otherwise, the return value is FALSE.

If FALSE returns, callers should call GetLastError for information.

Remarks

This IOCTL is used only to flush a hardware cache.

You do not need to store the manufacturer identifier string and disk serial number. For ATA disk devices, the manufacturer identifier string and disk serial number read directly from the storage card.

Requirements

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

See Also

Reference

Block Driver IOCTLs
DeviceIoControl

Concepts

Sample ATADISK Driver

Other Resources

Block Drivers
Disk Cache Management