Jump to content

RxUsbQueryVersion

From EDM2
Revision as of 04:19, 6 January 2017 by Martini (talk | contribs) (Created page with "==Description== Obtains the version numbers of the USB Resource Manager components. ==Syntax== <pre> rc = RxUsbQueryVersion(DLLMmajor,DLLMinor,USBMajor,USBMinor) </pre> ==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Obtains the version numbers of the USB Resource Manager components.

Syntax

 rc = RxUsbQueryVersion(DLLMmajor,DLLMinor,USBMajor,USBMinor)

Parameters

DLLMajor
receives the usbcalls.dll major version.
DLLMinor
receives the usbcalls.dll minor version.
USBMajor
receives the usbresmg.sys major version.
USBMinor
receives the usbresmg.sys minor version.

Return Code

Errors

Remarks

Example Code

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

/* invoke RxUsbQueryVersion */
drop DLLMajor DLLMinor /* receives usbcalls version */
drop USBMajor USBMinor /* receives usbresmg version */
rc = RxUsbQueryVersion(DLLMajor,DLLMinor,USBMajor,USBMinor)
say '*RxUsbQueryVersion(),RC=0x'd2x(rc)
say 'USBCALLS 'DLLMajor'.'DLLMinor
say 'USBRESMG 'USBMajor'.'USBMinor

/* drop RxUsbQueryVersion */
rc = RxFuncDrop('RxUsbQueryVersion')
say '-RxUsbQueryVersion(),

Related Functions