STORAGE_WRITE_CACHE_PROPERTY structure (winioctl.h)
Used with the IOCTL_STORAGE_QUERY_PROPERTY control code to retrieve information about a device's write cache property.
Syntax
typedef struct _STORAGE_WRITE_CACHE_PROPERTY {
DWORD Version;
DWORD Size;
WRITE_CACHE_TYPE WriteCacheType;
WRITE_CACHE_ENABLE WriteCacheEnabled;
WRITE_CACHE_CHANGE WriteCacheChangeable;
WRITE_THROUGH WriteThroughSupported;
BOOLEAN FlushCacheSupported;
BOOLEAN UserDefinedPowerProtection;
BOOLEAN NVCacheEnabled;
} STORAGE_WRITE_CACHE_PROPERTY, *PSTORAGE_WRITE_CACHE_PROPERTY;
Members
Version
Contains the size of this structure, in bytes. The value of this member will change as members are added to the structure.
Size
Specifies the total size of the data returned, in bytes. This may include data that follows this structure.
WriteCacheType
A value from the WRITE_CACHE_TYPE enumeration that indicates the current write cache type.
WriteCacheEnabled
A value from the WRITE_CACHE_ENABLE enumeration that indicates whether the write cache is enabled.
WriteCacheChangeable
A value from the WRITE_CACHE_CHANGE enumeration that indicates whether if the host can change the write cache characteristics.
WriteThroughSupported
A value from the WRITE_THROUGH enumeration that indicates whether the device supports write-through caching.
FlushCacheSupported
A BOOLEAN value that indicates whether the device allows host software to flush the device cache. If TRUE, the device allows host software to flush the device cache. If FALSE, host software cannot flush the device cache.
UserDefinedPowerProtection
A BOOLEAN value that indicates whether a user can configure the device's power protection characteristics in the registry. If TRUE, a user can configure the device's power protection characteristics in the registry. If FALSE, the user cannot configure the device's power protection characteristics in the registry.
NVCacheEnabled
A BOOLEAN value that indicates whether the device has a battery backup for the write cache. If TRUE, the device has a battery backup for the write cache. If FALSE, the device does not have a battery backup for the writer cache.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Header | winioctl.h (include Windows.h) |