Share via


LPTRANSLATE_STRING_DESCR (Compact 2013)

3/26/2014

This function translates a universal serial bus (USB) string descriptor into a null-terminated string.

Syntax

typedef BOOL (* LPTRANSLATE_STRING_DESCR)(
  LPCUSB_STRING_DESCRIPTOR lpStringDescr,
  LPWSTR szString,
  DWORD cchStringLength
);

Parameters

  • lpStringDescr
    [in] Pointer to a USB string descriptor.
  • szString
    [out] Buffer to receive string data.
  • cchStringLength
    [in] Size, in characters, of the string buffer.

Return Value

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

Remarks

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

Requirements

Header

usbdi.h

See Also

Reference

USB Driver Functions