Collapse the table of content
Expand the table of content
Expandir Minimizar
Informações
O tópico solicitado está sendo mostrado abaixo. No entanto, este tópico não está incluído nesta biblioteca.

UsbDevice.GetDeviceSelector(UInt32, UInt32, Guid) | getDeviceSelector(UInt32, UInt32, Guid) method

Gets an Advanced Query Syntax (AQS) string, based on vendor, product, and device interface GUID identifiers, specified by the app. The app passes the string to DeviceInformation.FindAllAsync in order to find a specific type of USB device.

Syntax


var string = Windows.Devices.Usb.UsbDevice.getDeviceSelector(vendorId, productId, winUsbInterfaceClass);

Parameters

vendorId

Type: Number [JavaScript] | System.UInt32 [.NET] | uint32 [C++]

Specifies the vendor identifier for the device as assigned by the USB specification committee. Possible values are 0 through 0xffff.

productId

Type: Number [JavaScript] | System.UInt32 [.NET] | uint32 [C++]

Specifies the product identifier. This value is assigned by the manufacturer and is device-specific. Possible values are 0 through 0xffff.

winUsbInterfaceClass

Type: String [JavaScript] | System.Guid [.NET] | Platform::Guid [C++]

The device interface GUID exposed by the Winusb.sys driver. See the remarks section.

Return value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

String formatted as an AQS query.

Remarks

You can obtain the device interface GUID from the DeviceInterfaceGuids registry entry under this key:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Enum\USB\<Device Identifier>\<Instance Identifier>\Device Parameters

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Devices.Usb
Windows::Devices::Usb [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

None supported

Namespace

Windows.Devices.Usb
Windows::Devices::Usb [C++]

Metadata

Windows.winmd

See also

UsbDevice
GetDeviceSelector(Guid)
GetDeviceSelector(UInt32, UInt32)

 

 

Mostrar:
© 2015 Microsoft