IDirect3DRMDeviceArray

Applications use the methods of the IDirect3DRMDeviceArray interface to organize device objects. This section is a reference to the methods of this interface. For a conceptual overview, see Output Devices.

The IDirect3DRMDeviceArray interface supports the following methods:
GetElement
GetSize

The IDirect3DRMDeviceArray interface, like all COM interfaces, inherits the IUnknown interface methods. The IUnknown interface supports the following three methods:
AddRef
QueryInterface
Release

The Direct3DRMDeviceArray object is obtained by calling the IDirect3DRM3::GetDevices method.

IDirect3DRMDeviceArray::GetElement

IDirect3DRMDeviceArray

Retrieves a specified element in a Direct3DRMDeviceArray object.

Syntax

HRESULT GetElement(
  DWORD index,
  LPDIRECT3DRMDEVICE *lplpD3DRMDevice
  );

Parameters

index
Element in the array.
lplpD3DRMDevice
Address that will be filled with a pointer to an IDirect3DRMDevice interface.

Return Value

Returns D3DRM_OK if successful, or an error otherwise. For a list of possible errors, see Direct3D Retained Mode Return Values.

Remarks

You can use QueryInterface to obtain a pointer to the version of IDirect3DRMDevice that you want, for example, IDirect3DRMDevice3. You cannot simply cast the lplpD3DRMDevice parameter to a different version. You must use QueryInterface.

IDirect3DRMDeviceArray::GetSize

IDirect3DRMDeviceArray

Retrieves the number of elements contained in a Direct3DRMDeviceArray object.

Syntax

DWORD GetSize( );

Return Value

Returns the number of elements.


Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.