ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / USB functions
  • Search condition
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
USBFind (Function)
In french: USBRecherche
Finds a USB device according to keywords.
Example
sDevices is string
sDevices = USBFind(USBPropertyManufacturer, "PC Soft")
IF sDevices <> "" THEN
Info("Identifiers of PC Soft devices:", sDevices)
END
Syntax
<Result> = USBFind(<Property> , <Word 1> [, <Word 2> [... [, <Word N>]]])
<Result>: Character string
String containing the identifiers of the USB devices found. If several USB devices are found, the identifiers are separated by CR characters (Carriage Return). These identifiers can be used by the USB functions.
<Property>: Integer constant
Detailed option of result:
USBDriveUSB identifier corresponding to the name of a drive (for example, f:)
USBPropertyClassDevice class
USBPropertyDeviceDescDescription of the device
USBPropertyFriendlyNameExplicit name of the device
USBPropertyLocationPhysical location of the device
USBPropertyManufacturerName of the manufacturer
<Word 1>: Character string
String to find in the specified property.
<Word 2>: Optional character string
String to find in the specified property.
<Word N>: Optional character string
String to find in the specified property.
Remarks

Search condition

In order for a device to match the sort criteria, <Property> must contain all the <Word 1>, <Word 2>, <Word N> specified. The search is not case sensitive (lowercase/uppercase characters).
Component: wd290std.dll
See also
Minimum version required
  • Version 10
This page is also available for…
Comments
USBFind(USBDrive, ..)


Function currently works for fixed media (memory sticks) only.
Matching a drive with a certain serial number to its drive letter involves scanning of all available drives of a computer (A: -> Z:), retrieving their serial number and looking for a match.
Jimbo
26 Apr. 2011

Last update: 05/26/2022

Send a report | Local help