Platform SDK: DirectX

DirectInputDeviceInstance.GetGuidInstance

The DirectInputDeviceInstance.GetGuidInstance method returns the unique identifier for the instance of the device.

object.GetGuidInstance() As String

Parameters

object
Object expression that resolves to a DirectInputDeviceInstance object.

Return Values

The method returns the GUID for the device instance, in string form.

Error Codes

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

Remarks

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.

See Also

DirectInputDeviceInstance.GetGuidProduct, Using GUIDs