The IoReadDiskSignature routine reads the disk signature information for the partition table of a disk.
NTKERNELAPI
NTSTATUS
IoReadDiskSignature(
IN PDEVICE_OBJECT DeviceObject,
IN ULONG BytesPerSector,
OUT PDISK_SIGNATURE Signature
);
The routine returns STATUS_SUCCESS on success, or the appropriate error code on failure. The routine returns STATUS_DISK_CORRUPT_ERROR if it detects that the disk partition table is corrupted.
Declared in ntddk.h. Include ntddk.h.
This routine is only available on Windows XP and later.
IoReadDiskSignature must only be used by disk drivers. Other drivers should use the IOCTL_DISK_GET_DRIVE_GEOMETRY_EX I/O request instead.