Jump to content

RxUsbQueryVersion: Difference between revisions

From EDM2
Created page with "==Description== Obtains the version numbers of the USB Resource Manager components. ==Syntax== <pre> rc = RxUsbQueryVersion(DLLMmajor,DLLMinor,USBMajor,USBMinor) </pre> ==..."
 
Ak120 (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by one other user not shown)
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(DLLMmajor,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.
; DLLMinor : receives the usbcalls.dll minor version.  
;USBMajor : receives the usbresmg.sys major version.
 
;USBMinor : receives the usbresmg.sys minor version.
; USBMajor : receives the usbresmg.sys major version.  
 
; USBMinor : receives the usbresmg.sys minor version.  


==Return Code==
==Return Code==
0x0000 - NO_ERROR


===Errors===
===Errors===
 
<pre>
==Remarks==
0x0057 - ERROR_INVALID_PARAMETER
0x1B58 - USB_NOT_INIT
0xFF13 - ERROR_I24_INVALID_PARAMETER
0xFF1F - ERROR_GEN_FAILURE
0xFF57 - ERROR_INVALID_PARAMETER
</pre>


==Example Code==
==Example Code==
Line 42: Line 42:


==Related Functions==
==Related Functions==
* [[RxUsbQueryNumberDevices]]
* [[RxUsbRegisterChangeNotification]]
* [[RxUsbRegisterDeviceNotification]]
* [[RxUsbOpen]]


[[Category:USBCalls]]
[[Category:USBCalls]]

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