Windows Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize
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.

HidDevice.GetDeviceSelector(UInt16, UInt16, UInt16, UInt16) | getDeviceSelector(UInt16, UInt16, UInt16, UInt16) method

Retrieves an Advanced Query Syntax (AQS) string based on the given usagePage, usageId, vendorId, and productId.

Syntax


var string = Windows.Devices.HumanInterfaceDevice.HidDevice.getDeviceSelector(usagePage, usageId, vendorId, productId);

Parameters

usagePage

Type: Number [JavaScript] | System.UInt16 [.NET] | uint16 [C++]

Specifies the usage page of the top-level collection for the given HID device.

usageId

Type: Number [JavaScript] | System.UInt16 [.NET] | uint16 [C++]

Specifies the usage identifier of the top-level collection for the given HID device.

vendorId

Type: Number [JavaScript] | System.UInt16 [.NET] | uint16 [C++]

Identifies the device vendor.

productId

Type: Number [JavaScript] | System.UInt16 [.NET] | uint16 [C++]

Identifies the product.

Return value

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

An Advanced Query Syntax (AQS) string that represents a device selector.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Devices.HumanInterfaceDevice
Windows::Devices::HumanInterfaceDevice [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

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

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

Metadata

Windows.winmd

See also

HidDevice
GetDeviceSelector(UInt16, UInt16)

 

 

Show:
© 2015 Microsoft