DeviceInstance Structure (Microsoft.DirectX.DirectInput)

Describes an instance of a Microsoft® DirectInput® device. This structure is used with the Input9Enumdevices, Input9Enumdevicesbysemantics, and Inputdevice9Getdeviceinfo methods.

Definition

Visual Basic Public Structure DeviceInstance
C# public struct DeviceInstance 
C++ public value class DeviceInstance sealed 
JScript In JScript, you can use structures, but you cannot define your own.

Members Table

The following table lists the members exposed by the object.

Methods

Method Description
DeviceInstance Initializes a new instance of the object.
ToString Obtains a string representation of the current instance.

Properties

Property Description
DeviceSubType Device type specifier. The least-significant byte of the device type description code specifies the device type. The next-significant byte specifies the device subtype. This value can also be combined with DIDEVTYPE_HID, which specifies a Human Interface Device (TermHid).
DeviceType Device type specifier. The least-significant byte of the device type description code specifies the device type. The next-significant byte specifies the device subtype. This value can also be combined with DIDEVTYPE_HID, which specifies a Human Interface Device (TermHid).
FFDriverGuid Unique identifier for the driver being used for force feedback. The driver's manufacturer establishes this identifier.
InstanceGuid Unique identifier for the instance of the device. An application can save the instance GUID into a configuration file and use it at a later time. Instance GUIDs are specific to a particular computer. An instance GUID obtained from one computer is unrelated to instance GUIDs on another.
InstanceName Friendly name for the instance, for example, 'Joystick 1.'
ProductGuid Unique identifier for the product. This identifier is established by the manufacturer of the device.
ProductName Friendly name for the product.
Usage If the device is a Human Interface Device (HID), this member contains the HID usage code.
UsagePage If the device is a Human Interface Device (HID), this member contains the HID usage page code.

Structure Information

Namespace Microsoft.DirectX.DirectInput
Assembly Microsoft.DirectX.DirectInput (microsoft.directx.directinput.dll)
Strong Name Microsoft.DirectX.DirectInput,  Version=1.0.900.0,  Culture=neutral,  PublicKeyToken=d3231b57b74a1492