Previous Next

DISK_SIGNATURE

DISK_SIGNATURE contains the disk signature information for a disk's partition table.

typedef struct _DISK_SIGNATURE {
  ULONG PartitionStyle;
  union {
    struct {
      ULONG Signature;
      ULONG CheckSum;
    } Mbr;
    
    struct {
      GUID DiskId;
    } Gpt;
  };
} DISK_SIGNATURE, *PDISK_SIGNATURE;

Members

PartitionStyle
Specifies the type of partition. See PARTITION_STYLE for a description of the possible values.
Mbr.Signature
Specifies the signature value, which uniquely identifies the disk. The Mbr member of the union is used to specify the disk signature data for a disk formatted with a Master Boot Record (MBR) format partition table. If the partition is a boot partition, the signature will have a value of 0xbb66. This member is valid when PartitionStyle is PARTITION_STYLE_MBR.
Mbr.CheckSum
Specifies the checksum for the master boot record. The Mbr member of the union is used to specify the disk signature data for a disk formatted with a Master Boot Record (MBR) format partition table. This member is valid when PartitionStyle is PARTITION_STYLE_MBR.
Gpt.DiskId
Specifies the GUID that uniquely identifies the disk. The Gpt member of the union is used to specify the disk signature data for a disk formatted with a GUID Partition Table (GPT) format partition table. The GUID data type is described on the LPGUID reference page. This member is valid when PartitionStyle is PARTITION_STYLE_GPT.

Headers

Declared in ntddk.h. Include ntddk.h.

Comments

This structure is only available on Windows XP and later.

See Also

IoReadDiskSignature