ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / USB functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
USBProperty (Function)
In french: USBPropriété
Retrieves the value of a property for a USB device.
Example
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:
USBPropertyClassDevice class
USBPropertyDeviceDescDescription of the device
USBPropertyFriendlyNameExplicit name of the device
USBPropertyLocationPhysical location of the device
USBPropertyManufacturerName of the manufacturer
Component: wd290std.dll
See also
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help