RxUsbQueryVersion: Difference between revisions
Appearance
Created page with "==Description== Obtains the version numbers of the USB Resource Manager components. ==Syntax== <pre> rc = RxUsbQueryVersion(DLLMmajor,DLLMinor,USBMajor,USBMinor) </pre> ==..." |
added return codes |
||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
<pre> | <pre> | ||
rc = RxUsbQueryVersion(DLLMajor,DLLMinor,USBMajor,USBMinor) | |||
</pre> | </pre> | ||
Line 17: | Line 17: | ||
==Return Code== | ==Return Code== | ||
<pre> | |||
0x0000 - NO_ERROR | |||
</pre> | |||
===Errors=== | ===Errors=== | ||
<pre> | |||
0x0057 - ERROR_INVALID_PARAMETER | |||
0x1B58 - USB_NOT_INIT | |||
0xFF13 - ERROR_I24_INVALID_PARAMETER | |||
0xFF1F - ERROR_GEN_FAILURE | |||
0xFF57 - ERROR_INVALID_PARAMETER | |||
</pre> | |||
==Remarks== | ==Remarks== | ||
Revision as of 18:44, 23 January 2017
Description
Obtains the version numbers of the USB Resource Manager components.
Syntax
rc = RxUsbQueryVersion(DLLMajor,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
0x0000 - NO_ERROR
Errors
0x0057 - ERROR_INVALID_PARAMETER 0x1B58 - USB_NOT_INIT 0xFF13 - ERROR_I24_INVALID_PARAMETER 0xFF1F - ERROR_GEN_FAILURE 0xFF57 - ERROR_INVALID_PARAMETER
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(),