PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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
PROCÉDURE 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:
USBPropertyLocationPhysical location of the device
USBPropertyClassDevice class
USBPropertyDeviceDescDescription of the device
USBPropertyManufacturerName of manufacturer
USBPropertyFriendlyNameExplicit name of the device
Remarks

Limits

This feature is available in Windows 2000 and later.
Components
WINDEVReports and Queries wd230std.dll
See also
Minimum required version
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment