// ntddscsi.h
typedef struct _NTSCSI_UNICODE_STRING {
USHORT Length;
USHORT MaximumLength;
#if ...
USHORT *Buffer;
#else
PWCH Buffer;
#endif
} NTSCSI_UNICODE_STRING;
View the official Windows Driver Kit DDI referenceNo description available.
Storage port drivers can use the NTSCSI_UNICODE_STRING structure to define Unicode strings.
LengthLength, in bytes, of the string stored in Buffer.
MaximumLengthTotal length, in bytes, of memory allocated for Buffer.
BufferPointer to a buffer used to contain a string of wide characters.
If the string is null-terminated, Length does not include the trailing null character.
MaximumLength is used to indicate the length of Buffer so that if the string is passed to a conversion routine, the returned string does not exceed the buffer size.