DirectX SDK

DirectInputDeviceInstance.GetProductName

The DirectInputDeviceInstance.GetProductName method retrieves the product name of the device.

object.GetProductName() As String

Parameters

object
Object expression that resolves to a DirectInputDeviceInstance object.

Return Values

The method returns the friendly name for the product—for example, "Microsoft SideWinder".

Error Codes

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

See Also

DirectInputDeviceInstance.GetInstanceName