Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

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

Syntax

Public Shared Function GetDeviceSelector(
  winUsbInterfaceClass As Guid 
) As String

Parameters

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

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Namespace

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

Metadata

Windows.winmd

See also

UsbDevice
GetDeviceSelector(UInt32, UInt32, Guid)
GetDeviceSelector(UInt32, UInt32)

 

 

Show:
© 2014 Microsoft. All rights reserved.