Microsoft DirectX 8.1 (Visual Basic)

Direct3D8.GetAdapterIdentifier

Describes the physical display adapters present in the system when the Direct3D8 object was created.

object.GetAdapterIdentifier( _ 
    Adapter As Long, _ 
    Flags As Long, _ 
    Identifier As D3DADAPTER_IDENTIFIER8)

Parts

object
Object expression that resolves to a Direct3D8 object.
Adapter
Ordinal number that denotes the display adapter. D3DADAPTER_DEFAULT is always the primary display adapter. The minimum value for this parameter is 0, and the maximum value for this parameter is one less than the value returned by Direct3D8.GetAdapterCount.
Flags
Parameter that is typically set to 0 (zero). However, you can specify the following value defined by the CONST_D3DCONST enumeration.
D3DENUM_NO_WHQL_LEVEL
Forces the WHQLLevel member of the D3DADAPTER_IDENTIFIER8 type to be 0 (zero). In this case, no information is returned for the WHQL certification date. Setting this flag avoids the one- or two-second time penalty incurred to determine the WHQL certification date.
Identifier
A D3DADAPTER_IDENTIFIER8 type to be filled with information describing this adapter.

Error Codes

If the method fails, an error is raised and Err.Number can be set to one of the following values.

D3DERR_INVALIDCALL
D3DERR_OUTOFVIDEOMEMORY

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

See Also

Direct3D8.GetAdapterCount