Skip to content

Latest commit

 

History

History
80 lines (60 loc) · 2.49 KB

ni-ntdddisk-ioctl_disk_get_drive_geometry.md

File metadata and controls

80 lines (60 loc) · 2.49 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NI:ntdddisk.IOCTL_DISK_GET_DRIVE_GEOMETRY
IOCTL_DISK_GET_DRIVE_GEOMETRY (ntdddisk.h)
Returns information about the physical disk's geometry (media type, number of cylinders, tracks per cylinder, sectors per track, and bytes per sector).
storage\ioctl_disk_get_drive_geometry.htm
storage
03/29/2018
IOCTL_DISK_GET_DRIVE_GEOMETRY IOCTL
IOCTL_DISK_GET_DRIVE_GEOMETRY, IOCTL_DISK_GET_DRIVE_GEOMETRY control, IOCTL_DISK_GET_DRIVE_GEOMETRY control code [Storage Devices], k307_e6bc4a05-f2cf-40f7-9632-b78da2087662.xml, ntdddisk/IOCTL_DISK_GET_DRIVE_GEOMETRY, storage.ioctl_disk_get_drive_geometry
ntdddisk.h
Ntdddisk.h
Windows
Windows
IOCTL_DISK_GET_DRIVE_GEOMETRY
ntdddisk/IOCTL_DISK_GET_DRIVE_GEOMETRY
APIRef
kbSyntax
HeaderDef
Ntdddisk.h
IOCTL_DISK_GET_DRIVE_GEOMETRY

IOCTL_DISK_GET_DRIVE_GEOMETRY IOCTL

-description

Returns information about the physical disk's geometry (media type, number of cylinders, tracks per cylinder, sectors per track, and bytes per sector).

-ioctlparameters

-ioctl-major-code

-input-buffer

None

-input-buffer-length

None

-output-buffer

The driver returns the DISK_GEOMETRY data in the buffer at Irp->AssociatedIrp.SystemBuffer.

-output-buffer-length

Parameters.DeviceIoControl.OutputBufferLength in the I/O stack location of the IRP indicates the size, in bytes, of the buffer, which must be >= sizeof(DISK_GEOMETRY).

-in-out-buffer

-inout-buffer-length

-status-block

The Information field is set to the size, in bytes, of the returned data. The Status field can be set to STATUS_SUCCESS, or possibly to STATUS_UNRECOGNIZED_MEDIA, STATUS_INVALID_PARAMETER, STATUS_INVALID_DEVICE_REQUEST, STATUS_INFO_LENGTH_MISMATCH, STATUS_INSUFFICIENT_RESOURCES, or STATUS_BUFFER_TOO_SMALL.

-see-also

DISK_GEOMETRY