STOR_SERIAL_NUMBER - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// storport.h

typedef struct _STOR_SERIAL_NUMBER {
  ULONG   Version;
  ULONG   Size;
  BOOLEAN Unicode;
  UCHAR   SerialNumber[STOR_SERIAL_NUMBER_MAX_SIZE];
} STOR_SERIAL_NUMBER, *PSTOR_SERIAL_NUMBER;

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-storport-stor_serial_number)

Description

STOR_SERIAL_NUMBER is the structure pointed to by the Parameters parameter when a miniport's HwStorAdapterControl routine is called with a ControlType of ScsiAdapterSerialNumber.

Members

Version

Version of this structure. Currently set to 1.

Size

Size of this structure, in bytes. Set to sizeof(STOR_SERIAL_NUMBER).

Unicode

BOOLEAN value that is set TRUE if the serial number is in Unicode or FALSE if it's in ASCII.

SerialNumber

NULL-terminated string representing the serial number. SerialNumber can contain up to 128 Unicode or ASCII characters (including the trailing NULL character). Even though there is enough space for 256 ASCII characters, do not return more than 128 characters.

See also

HwStorAdapterControl