// winioctl.h
typedef struct _GET_DISK_ATTRIBUTES {
DWORD Version;
DWORD Reserved1;
DWORDLONG Attributes;
} GET_DISK_ATTRIBUTES, *PGET_DISK_ATTRIBUTES;
View the official Win32 API referenceNo description available.
Contains the attributes of a disk device. Returned as the output buffer from the IOCTL_DISK_GET_DISK_ATTRIBUTES control code.
VersionSet to sizeof(GET_DISK_ATTRIBUTES).
Reserved1Reserved.
AttributesContains attributes.
| Value | Meaning |
|---|---|
| DISK_ATTRIBUTE_OFFLINE 0x0000000000000001 |
The disk is offline. |
| DISK_ATTRIBUTE_READ_ONLY 0x0000000000000002 |
The disk is read-only. |
IOCTL_DISK_GET_DISK_ATTRIBUTES