This class is the event type class for logical disk configuration events.
The following syntax is simplified from MOF code.
Syntax
[EventType(12), EventTypeName("LogDisk")]
class SystemConfig_LogDisk : SystemConfig
{
uint64 StartOffset;
uint64 PartitionSize;
uint32 DiskNumber;
uint32 Size;
uint32 DriveType;
char16 DriveLetterString[];
uint32 Pad1;
uint32 PartitionNumber;
uint32 SectorsPerCluster;
uint32 BytesPerSector;
uint32 Pad2;
sint64 NumberOfFreeClusters;
sint64 TotalNumberOfClusters;
char16 FileSystem;
uint32 VolumeExt;
uint32 Pad3;
};
Members
The SystemConfig_LogDisk class has these types of members:
Properties
The SystemConfig_LogDisk class has these properties.
BytesPerSector
Data type: uint32
Access type: Read-only
Qualifiers: WmiDataId (10)
Number of bytes in each sector for the physical disk drive.
DiskNumber
Data type: uint32
Access type: Read-only
Qualifiers: WmiDataId (3)
Index number of the disk containing this partition.
DriveLetterString
Data type: char16 array
Access type: Read-only
Qualifiers: WmiDataId (6), Max (4), Format("s")
Drive letter of the disk in the form, "<letter>:".
DriveType
Data type: uint32
Access type: Read-only
Qualifiers: WmiDataId (5)
Type of disk drive. Possible values are:
| Value | Meaning |
|---|---|
| 1 | Partition |
| 2 | Volume |
| 3 | Extended partition on multiple disks |
FileSystem
Data type: char16
Access type: Read-only
Qualifiers: WmiDataId (14), Max (16), Format("s")
File system on the logical disk, for example, NTFS.
NumberOfFreeClusters
Data type: sint64
Access type: Read-only
Qualifiers: WmiDataId (12)
Number of free clusters in the specified volume.
Pad1
Data type: uint32
Access type: Read-only
Qualifiers: WmiDataId (7)
Not used.
Pad2
Data type: uint32
Access type: Read-only
Qualifiers: WmiDataId (11)
Not used.
Pad3
Data type: uint32
Access type: Read-only
Qualifiers: WmiDataId (16)
Not used.
PartitionNumber
Data type: uint32
Access type: Read-only
Qualifiers: WmiDataId (8)
Index number of the partition.
PartitionSize
Data type: uint64
Access type: Read-only
Qualifiers: WmiDataId (2)
Total size of the partition, in bytes.
SectorsPerCluster
Data type: uint32
Access type: Read-only
Qualifiers: WmiDataId (9)
Number of sectors in the volume.
Size
Data type: uint32
Access type: Read-only
Qualifiers: WmiDataId (4)
Size of the disk drive, in bytes.
StartOffset
Data type: uint64
Access type: Read-only
Qualifiers: WmiDataId (1)
Starting offset (in bytes) of the partition from the beginning of the disk.
TotalNumberOfClusters
Data type: sint64
Access type: Read-only
Qualifiers: WmiDataId (13)
Number of used and free clusters in the volume.
VolumeExt
Data type: uint32
Access type: Read-only
Qualifiers: WmiDataId (15)
Reserved.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista [desktop apps only] |
| Minimum supported server | Windows Server 2008 [desktop apps only] |
See also
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
