PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Search condition
  • 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
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:)
USBPropertyLocationPhysical location of the device
USBPropertyClassDevice class
USBPropertyDeviceDescDescription of the device
USBPropertyManufacturerName of manufacturer
USBPropertyFriendlyNameExplicit name of the device
<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).

Limits

This feature is available in Windows 2000 and later.
Component : wd250std.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