GET_DISK_ATTRIBUTES structure (winioctl.h)

Contains the attributes of a disk device. Returned as the output buffer from the IOCTL_DISK_GET_DISK_ATTRIBUTES control code.

Syntax

typedef struct _GET_DISK_ATTRIBUTES {
  DWORD     Version;
  DWORD     Reserved1;
  DWORDLONG Attributes;
} GET_DISK_ATTRIBUTES, *PGET_DISK_ATTRIBUTES;

Members

Version

Set to sizeof(GET_DISK_ATTRIBUTES).

Reserved1

Reserved.

Attributes

Contains attributes.

Value Meaning
DISK_ATTRIBUTE_OFFLINE
0x0000000000000001
The disk is offline.
DISK_ATTRIBUTE_READ_ONLY
0x0000000000000002
The disk is read-only.

Requirements

   
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Header winioctl.h (include Windows.h)

See also

Disk Management Structures

IOCTL_DISK_GET_DISK_ATTRIBUTES

SET_DISK_ATTRIBUTES