Microsoft DirectX 9.0 SDK Update (October 2004)

DeviceInstance Structure

Language:

Note: This documentation is preliminary and is subject to change.

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

Definition

Visual Basic .NET Public Structure DeviceInstance
C# public struct DeviceInstance
Managed C++ public __value struct DeviceInstance
JScript .NET In JScript .NET, you can use structures, but you cannot define your own.

Members Table

Method Description
DeviceInstance Initializes a new instance of the object.
ToString Obtains a string representation of the current instance.
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.2902.0,  Culture=neutral,  PublicKeyToken=31bf3856ad364e35

© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center