Platform SDK: DirectX

Direct3DEnumDevices.GetGuid

The Direct3DEnumDevices.GetDescription method returns the globally-unique ID (GUID) of the desired Direct3D device.

object.GetGuid(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 a string label—"IID_IDirect3DHALDevice", "IID_IDirect3DTnLHalDevice", or "IID_IDirect3DRGBDevice"—that represents the globally-unique identifier of the enumerated device. This value is used to create the device with a subsequent call to the Direct3D7.CreateDevice method.

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.