MSFT_DiskImage class

Represents a disk image.

The following syntax is simplified from Managed Object Format (MOF) code.

Syntax

class MSFT_DiskImage
{
  String  ImagePath;
  UInt32  StorageType;
  String  DevicePath;
  UInt64  FileSize;
  UInt64  Size;
  UInt64  LogicalSectorSize;
  UInt64  BlockSize;
  Boolean Attached;
  UInt32  Number;
};

Members

The MSFT_DiskImage class has these types of members:

Methods

The MSFT_DiskImage class has these methods.

Method Description
Dismount Dismounts the disk image.
Mount Mounts the disk image.

Properties

The MSFT_DiskImage class has these properties.

Attached

Data type: Boolean

Access type: Read-only

TRUE if the disk image is attached.

BlockSize

Data type: UInt64

Access type: Read-only

Qualifiers: Units (Bytes)

Block size of the disk image, in bytes.

DevicePath

Data type: String

Access type: Read-only

The device path for the disk image.

FileSize

Data type: UInt64

Access type: Read-only

Qualifiers: Units (Bytes)

The file size, in bytes, of the disk image.

ImagePath

Data type: String

Access type: Read-only

Qualifiers: Key

The path to the disk image.

LogicalSectorSize

Data type: UInt64

Access type: Read-only

Qualifiers: Units (Bytes)

Logical sector size of the disk image, in bytes.

Number

Data type: UInt32

Access type: Read-only

The disk number of the disk image.

Size

Data type: UInt64

Access type: Read-only

Qualifiers: Units (Bytes)

The size, in bytes, of the disk image.

StorageType

Data type: UInt32

Access type: Read-only

Qualifiers: Key, Values ( "Unknown", "ISO", "VHD", "VHDX" ), ValueMap ("0", "1", "2", "3")

The type of the disk image.

Requirements

Minimum supported client
Windows 8 [desktop apps only]
Minimum supported server
Windows Server 2012 [desktop apps only]
Namespace
Root\Microsoft\Windows\Storage
MOF
Storagewmi.mof