IOCTL_DISK_GETINFO (Windows CE 5.0)

Send Feedback

This IOCTL notifies block device drivers to return disk information. The DeviceIoControl function processes this IOCTL.

Parameters

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

Return Values

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

IOCTL_DISK_GETINFO replaces the deprecated DISK_IOCTL_GETINFO. DISK_IOCTL_GETINFO used the input buffer for output.

Remarks

In Windows CE 3.0, this IOCTL was changed from DISK_IOCTL_GETINFO to IOCTL_DISK_GETINFO.

Requirements

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

See Also

Block Drivers | DeviceIoControl | DISK_INFO

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.