次の方法で共有


STORAGEDEVICEINFO (Windows Embedded CE 6.0)

1/6/2010

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
    • STORAGE_DEVICE_TYPE_DOC
    • STORAGE_DEVICE_TYPE_DVD
    • STORAGE_DEVICE_TYPE_FLASH
    • STORAGE_DEVICE_TYPE_PCCARD
    • 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

Requirements

Header storemgr.h
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

Storage Manager Structures

Other Resources

IOCTL_DISK_DEVICE_INFO