Jump to content

RxUsbQueryVersion: Difference between revisions

From EDM2
W.m.brul (talk | contribs)
Ak120 (talk | contribs)
mNo edit summary
 
Line 1: Line 1:
==Description==
Obtains the version numbers of the USB Resource Manager components.  
Obtains the version numbers of the USB Resource Manager components.  


==Syntax==
==Syntax==
<pre>
rc = RxUsbQueryVersion(DLLMajor,DLLMinor,USBMajor,USBMinor)
rc = RxUsbQueryVersion(DLLMajor,DLLMinor,USBMajor,USBMinor)
</pre>


==Parameters==
==Parameters==
; DLLMajor : receives the usbcalls.dll major version.  
;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.


; DLLMinor : receives the usbcalls.dll minor version.
==Return Code==
 
0x0000 - NO_ERROR
; USBMajor : receives the usbresmg.sys major version.
 
; USBMinor : receives the usbresmg.sys minor version.


==Return Code==
<pre>
0x0000 - NO_ERROR
</pre>
===Errors===
===Errors===
<pre>
<pre>
Line 28: Line 21:
0xFF57 - ERROR_INVALID_PARAMETER
0xFF57 - ERROR_INVALID_PARAMETER
</pre>
</pre>
==Remarks==


==Example Code==
==Example Code==

Latest revision as of 00:25, 29 October 2017

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

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