|
|
|
|
USBProperty (Function) In french: USBPropriété Retrieves the value of a property for a USB device. sDescription is string sList is string = USBListDevice() IF sList <> "" THEN sDescription = USBProperty(ExtractString(sList, firstRank, CR), USBPropertyDeviceDesc) IF sDescription <> "" THEN Info("First USB controller found: " + sDescription) END END
// Start to explore without specifying an identifier Explore("")
// ----------------------------------------------------------- // Explore the entire tree structure PROCEDURE Explore(sBeginning) sList is string sList = USBListDevice(sBeginning) IF sList <> "" THEN sDevice is string FOR EACH STRING sDevice OF sList SEPARATED BY CR Trace(USBProperty(sDevice, USBPropertyDeviceDesc)) Explore(sDevice) END END
Syntax
<Result> = USBProperty(<USBÂ Identifier> , <Property>)
<Result>: Type corresponding to the property - String or integer containing the result. Can also correspond to a multiple string: the different string elements are separated by Charact(0).
- Empty string ("") if the property is not available (not supplied by the device driver for example).
<USB Identifier>: Character string Identifier of the USB device to use. This identifier is returned by USBListDevice. <Property>: Integer constant Detailed option of result: | | USBPropertyClass | Device class | USBPropertyDeviceDesc | Description of the device | USBPropertyFriendlyName | Explicit name of the device | USBPropertyLocation | Physical location of the device | USBPropertyManufacturer | Name of the manufacturer |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|