Platform SDK: DirectX

Direct3DEnumDevices.GetName

The Direct3DEnumDevices.GetName method returns the user-friendly name of the desired Direct3D device.

object.GetName(index As Long) As String 

Parameters

object
Object expression that resolves to a Direct3DEnumDevices object.
index
Index of the enumerated device. This value can be between 1 and the value returned by the Direct3DEnumDevices.GetCount method.

Return Values

If the method succeeds, the return value is the user-friendly name of the device.

Error Codes

If the method fails, the method sets Err.Number to an error code and raises an error. For a list of possible error codes, see Direct3D Immediate Mode Error Codes.