Share via


LPTRANSLATE_STRING_DESCR (Windows Embedded CE 6.0)

1/6/2010

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
Windows Embedded CE Windows CE 2.10 and later

See Also

Reference

USB Host Driver Functions