Platform SDK: DirectX |
The Direct3DEnumDevices.GetDescription method returns the globally-unique ID (GUID) of the desired Direct3D device.
object.GetGuid(index As Long) As String
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.
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.