Jump to content

RxUsbQueryStringReport

From EDM2
Revision as of 03:29, 11 January 2017 by Martini (talk | contribs) (Created page with "==Description== Obtains the array of languages supported by a USB device. Obtains the specified string descriptor of a USB device. ==Syntax== <pre> rc = RxUsbQueryStringRep...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Obtains the array of languages supported by a USB device. Obtains the specified string descriptor of a USB device.

Syntax

 rc = RxUsbQueryStringReport(Handle,Index,Language,Report)

Parameters

Handle
the Device Handle received from the previous RxUsbOpen.
Index
the Descriptor Index or 0 to obtain the array of Language Codes.
Language
the Language Code or 0 to use the Language Code for English.
Report
receives the String Report as hexadecimal string.


Return Code

Errors

Remarks

Example Code

/* add RxUsbQueryStringReport */
rc = RxFuncAdd('RxUsbQueryStringReport','usbcalls','RxUsbQueryStringReport')
say '+RxUsbQueryStringReport(),RC=0x'd2x(rc)

/* invoke RxUsbQueryStringReport */
Index=2 /* second string descriptor index */
Language=x2d(0409) /* the english language */
drop Report /* receives string report */
rc = RxUsbQueryStringReport(Handle,Index,Language,Report)
say '*RxUsbQueryStringReport(),RC=0x'd2x(rc)

/* drop RxUsbQueryStringReport */
rc = RxFuncDrop('RxUsbQueryStringReport')
say '-RxUsbQueryStringReport(),RC=0x'd2x(rc)

Related Functions