Partager via


STORAGEDEVICEINFO (Compact 2013)

3/26/2014

This structure contains information about a storage device.

Syntax

typedef struct tagSTORAGEDEVICEINFO {
  DWORD cbSize;
  TCHAR szProfile[PROFILENAMESIZE];
  DWORD dwDeviceClass;
  DWORD dwDeviceType;
  DWORD dwDeviceFlags;
} STORAGEDEVICEINFO, *PSTORAGEDEVICEINFO;

Members

  • cbSize
    Set to sizeof(STORAGEDEVICEINFO).
  • szProfile
    Name of the profile.
  • dwDeviceClass
    Specifies the device class in the device descriptor. The following are possible values:

    • STORAGE_DEVICE_CLASS_BLOCK
    • STORAGE_DEVICE_CLASS_MULTIMEDIA
  • dwDeviceType
    Specifies the device type in the device descriptor. The following are possible values:

    • STORAGE_DEVICE_TYPE_ATA
    • STORAGE_DEVICE_TYPE_ATAPI
    • STORAGE_DEVICE_TYPE_CDROM
    • STORAGE_DEVICE_TYPE_CFCARD (Deprecated)
    • STORAGE_DEVICE_TYPE_DOC
    • STORAGE_DEVICE_TYPE_DVD
    • STORAGE_DEVICE_TYPE_FLASH
    • STORAGE_DEVICE_TYPE_PCCARD (Deprecated)
    • STORAGE_DEVICE_TYPE_PCIIDE
    • STORAGE_DEVICE_TYPE_REMOVABLE_DRIVE
    • STORAGE_DEVICE_TYPE_REMOVABLE_MEDIA
    • STORAGE_DEVICE_TYPE_SRAM
    • STORAGE_DEVICE_TYPE_UNKNOWN
    • STORAGE_DEVICE_TYPE_USB
  • dwDeviceFlags
    Specifies additional properties of a storage device. The following are possible values:

    • STORAGE_DEVICE_FLAG_MEDIASENSE

    • STORAGE_DEVICE_FLAG_READONLY

    • STORAGE_DEVICE_FLAG_READWRITE

    • STORAGE_DEVICE_FLAG_TRANSACTED

      Note

      The STORAGE_DEVICE_FLAG_TRANSACTED flag replaces the FATFS_NONATOMIC_SECTOR flag that was used in Windows Embedded CE 6.0.

Requirements

Header

storemgr.h

See Also

Reference

Storage Manager Structures

Other Resources

IOCTL_DISK_DEVICE_INFO