D3DDDIARG_OPENADAPTER
TOC
Collapse the table of content
Expand the table of content

D3DDDIARG_OPENADAPTER structure

The D3DDDIARG_OPENADAPTER structure contains information that describes the graphics adapter object.

Syntax


typedef struct _D3DDDIARG_OPENADAPTER {
  HANDLE                        hAdapter;
  UINT                          Interface;
  UINT                          Version;
  const D3DDDI_ADAPTERCALLBACKS *pAdapterCallbacks;
  D3DDDI_ADAPTERFUNCS           *pAdapterFuncs;
  UINT                          DriverVersion;
} D3DDDIARG_OPENADAPTER;

Members

hAdapter

[in/out] A handle to the graphics adapter object. On input to the OpenAdapter function, hAdapter specifies the handle that the driver should use to query for graphics adapter capabilities when the driver calls the Microsoft Direct3D runtime-supplied pfnQueryAdapterInfoCb callback function.

The driver generates a unique handle and passes it back to the Direct3D runtime. On output from the OpenAdapter function, hAdapter specifies the handle that the Direct3D runtime uses in subsequent driver calls to identify the graphics adapter object.

Interface

[in] The Direct3D/DirectDraw interface version (for example, 7, 8, or 9) that opens the graphics adapter.

Version

[in] A number that the driver can use to identify when the Direct3D/DirectDraw runtime was built. For example, the driver can use the version number to differentiate between a runtime that is released with Windows Vista and a runtime that is released with a subsequent service pack, which might contain a fix that the driver requires.

pAdapterCallbacks

[in] A pointer to a D3DDDI_ADAPTERCALLBACKS structure that contains the Direct3D runtime-supplied pfnQueryAdapterInfoCb callback function that the driver can use.

pAdapterFuncs

[out] A pointer to a D3DDDI_ADAPTERFUNCS structure that contains a table of user-mode display driver adapter-specific functions. The Direct3D runtime uses these functions to communicate with the user-mode display driver about operations that are specific to the graphics adapter.

DriverVersion

[out] The version of the Direct3D user-mode display driver's interface, which was obtained from the D3dumddi.h header file, that the driver was compiled with. The user-mode display driver should return D3D_UMD_INTERFACE_VERSION.

Note  If a user-mode driver does not support Windows 7 features (DXGKDDI_INTERFACE_VERSION < DXGKDDI_INTERFACE_VERSION_WIN7), and you want to compile the driver with the Windows 7 WDK (Version 7600), make sure that the driver returns D3D_UMD_INTERFACE_VERSION_VISTA.
 

Requirements

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dumddi.h (include D3dumddi.h)

See also

D3DDDI_ADAPTERCALLBACKS
D3DDDI_ADAPTERFUNCS
OpenAdapter
pfnQueryAdapterInfoCb

 

 

Send comments about this topic to Microsoft

Show:
© 2016 Microsoft