STOREINFO (Storage Manager) (Compact 2013)

3/26/2014

This structure contains information about a store.

Syntax

typedef struct {
  DWORD cbSize;
  TCHAR szDeviceName[DEVICENAMESIZE];
  TCHAR szStoreName[STORENAMESIZE];
  DWORD dwDeviceClass;
  DWORD dwDeviceType;
  STORAGEDEVICEINFO sdi;
  DWORD dwDeviceFlags;
  SECTORNUM snNumSectors;
  DWORD dwBytesPerSector;
  SECTORNUM snFreeSectors;
  SECTORNUM snBiggestPartCreatable;
  FILETIME ftCreated;
  FILETIME ftLastModified;
  DWORD dwAttributes;
  DWORD dwPartitionCount;
  DWORD dwMountCount;
} STOREINFO, *PSTOREINFO;

Members

  • cbSize
    Set to sizeof(STOREINFO).
  • szDeviceName
    Name of the device. Maximum length is 8 characters.
  • szStoreName
    Name of the store. Maximum length is 32 characters.
  • 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
  • sdi
    Specifies the device identifier in the device descriptor.
  • dwDeviceFlags
    Specifies additional properties of a store. The following are possible values:

    • STORAGE_DEVICE_FLAG_MEDIASENSE
    • STORAGE_DEVICE_FLAG_READONLY
    • STORAGE_DEVICE_FLAG_READWRITE
    • STORAGE_DEVICE_FLAG_TRANSACTED
  • snNumSectors
    Number of sectors on the store.
  • dwBytesPerSector
    Number of bytes per sector.
  • snFreeSectors
    Number of unallocated sectors.
  • snBiggestPartCreatable
    Biggest partition that can currently be created.
  • ftCreated
    Last time at which the store was formatted.
  • ftLastModified
    Last time at which the partition table was modified.
  • dwAttributes
    Specifies attributes of a volume. The following are possible values:

    • STORE_ATTRIBUTE_AUTOFORMAT
    • STORE_ATTRIBUTE_AUTOMOUNT
    • STORE_ATTRIBUTE_AUTOPART
    • STORE_ATTRIBUTE_READONLY
    • STORE_ATTRIBUTE_REMOVABLE
    • STORE_ATTRIBUTE_UNFORMATTED
  • dwPartitionCount
    Number of partitions.
  • dwMountCount
    Number of partitions that have been mounted.

Requirements

Header

storemgr.h

See Also

Reference

Storage Manager Structures