Bewerken

Delen via


DISK_SIGNATURE structure (ntddk.h)

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

Syntax

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

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. 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

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 that is formatted with a GUID Partition Table (GPT) format partition table. The GUID data type is described on the Using GUIDs in Drivers reference page. This member is valid when PartitionStyle is PARTITION_STYLE_GPT.

Requirements

Requirement Value
Minimum supported client This structure is only available on Windows XP and later.
Header ntddk.h (include Ntddk.h)

See also

IoReadDiskSignature