AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de Windows / Funciones USB
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Otros
Procedimientos almacenados
USBProperty( Función)
Recupera el valor de un Property para un dispositivo USB.
Ejemplo
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
Sintaxis
<Result> = USBProperty(<USB Identifier> , <Property>)
<Result>: Tipo correspondiente a la Property
  • Cadena o entero que contiene el resultado. También puede corresponder a una cadena múltiple: los diferentes elementos de la cadena están separados por Charact( 0).
  • Vaciar la cadena ("") si la Property no está disponible (no suministrada por el controlador del dispositivo, por ejemplo).
<USB Identifier>: Cadena de caracteres
Identificador del dispositivo USB a utilizar. Este identificador es devuelto por Dispositivo USBList.
<Property>: Constante de tipo Integer
Opción detallada del resultado:
USBPropertyClassClase de dispositivo
USBPropertyDeviceDescdescription del dispositivo
USBPropertyFriendlyNameNombre explícito del dispositivo
USBPropertyLocationUbicación física del dispositivo
USBPropertyManufacturerNombre del fabricante
Componente: wd290std.dll
Ver también
Versión mínima requerida
  • Versión 10
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/05/2022

Señalar un error o enviar una sugerencia | Ayuda local