DirectX SDK

DirectInputDeviceInstance.GetInstanceName

The DirectInputDeviceInstance.GetInstanceName method retrieves the name of the device instance.

object.GetInstanceName() As String

Parameters

object
Object expression that resolves to a DirectInputDeviceInstance object.

Return Values

The method returns the friendly name for the instance—for example, "Joystick 1."

Error Codes

If the method fails, an error is raised and Err.Number will be set.

See Also

DirectInputDeviceInstance.GetProductName