TranslateStringDescr

This function translates a USB string descriptor into a null-terminated string.

Syntax

BOOL TranslateStringDescr(
LPCUSB_STRING_DESCRIPTOR
lpStringDescr, LPWSTR szString, DWORD cchStringLength );

Parameters

lpStringDescr
[IN] Pointer to a USB string descriptor.
szString
[OUT] Specifies the buffer to receive string data.
cchStringLength
[IN] Specifies the size, in characters, of the string buffer.

Return Values

TRUE indicates that lpStringDescr points to a valid USB string descriptor.

Remarks

If the string being translated would overflow the supplied buffer, it is truncated.

This function is defined in the Mousedrv.cpp file.