Export (0) Print
Expand All

STORAGE_READ_CAPACITY structure

Contains information about the size of a device. This is returned from the IOCTL_STORAGE_READ_CAPACITY control code.

Syntax


typedef struct _STORAGE_READ_CAPACITY {
  ULONG         Version;
  ULONG         Size;
  ULONG         BlockLength;
  LARGE_INTEGER NumberOfBlocks;
  LARGE_INTEGER DiskLength;
} STORAGE_READ_CAPACITY, *PSTORAGE_READ_CAPACITY;

Members

Version

The version of this structure. The caller must set this member to sizeof(STORAGE_READ_CAPACITY).

Size

The size of the data returned.

BlockLength

The number of bytes per block.

NumberOfBlocks

The total number of blocks on the disk.

DiskLength

The disk size in bytes.

Remarks

The header file Ntddstor.h is available in the Windows Driver Kit (WDK).

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008, Windows Server 2003 with SP1

Header

Ntddstor.h

See also

IOCTL_STORAGE_READ_CAPACITY

 

 

Community Additions

ADD
Show:
© 2014 Microsoft