Microsoft DirectX 8.1 (Visual Basic)

DirectInputDeviceInstance8.GetGuidInstance

Retrieves the unique identifier for the instance of the device.

object.GetGuidInstance() As String

Parts

object
Resolves to a DirectInputDeviceInstance8 object.

Return Values

Returns the GUID for the device instance, in string form.

Error Codes

If the method fails, an error is raised and Err.Number is 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

DirectInputDeviceInstance8.GetGuidProduct, Using GUIDs