Skip to content

Latest commit

 

History

History
84 lines (61 loc) · 3 KB

nc-d3dumddi-pfnd3dddi_openadapter.md

File metadata and controls

84 lines (61 loc) · 3 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NC:d3dumddi.PFND3DDDI_OPENADAPTER
PFND3DDDI_OPENADAPTER (d3dumddi.h)
The OpenAdapter function creates a graphics adapter object that is referenced in subsequent calls.
display\openadapter.htm
display
05/10/2018
PFND3DDDI_OPENADAPTER callback function
OpenAdapter, OpenAdapter callback function [Display Devices], PFND3DDDI_OPENADAPTER, PFND3DDDI_OPENADAPTER callback, UserModeDisplayDriver_Functions_1b93a0e5-3f89-47aa-9e63-3ae50f1acd1e.xml, d3dumddi/OpenAdapter, display.openadapter
d3dumddi.h
D3dumddi.h
Desktop
Available in Windows Vista and later versions of the Windows operating systems.
Windows
PFND3DDDI_OPENADAPTER
d3dumddi/PFND3DDDI_OPENADAPTER
APIRef
kbSyntax
UserDefined
d3dumddi.h
PFND3DDDI_OPENADAPTER

PFND3DDDI_OPENADAPTER callback function

-description

The OpenAdapter function creates a graphics adapter object that is referenced in subsequent calls.

-parameters

-param unnamedParam1

pOpenData [in, out]

A pointer to a D3DDDIARG_OPENADAPTER structure. On input, this structure contains information that the driver can use. On output, the driver specifies information that the Microsoft Direct3D runtime can use.

-returns

OpenAdapter returns one of the following values:

Return code Description
S_OK The graphics adapter object is successfully created.
E_OUTOFMEMORY OpenAdapter could not allocate the required memory for it to complete.

-remarks

The graphics adapter object that is created by OpenAdapter represents the underlying graphics hardware. Before the Microsoft Direct3D runtime can create a display device by calling CreateDevice, the user-mode display driver should call the pfnQueryAdapterInfoCb function to query for the graphics hardware capabilities from the display miniport driver.

The Direct3D runtime can open multiple graphics adapter objects from a single graphics adapter.

-see-also

CreateDevice

D3DDDIARG_OPENADAPTER

pfnQueryAdapterInfoCb