Expand Minimize

CloseAdapter(D3D10) routine

The CloseAdapter(D3D10) function releases resources for a graphics adapter object.

Syntax


PFND3D10DDI_CLOSEADAPTER CloseAdapter;

HRESULT APIENTRY CloseAdapter(
  _In_  D3D10DDI_HADAPTER hAdapter
)
{ ... }

Parameters

hAdapter [in]

A handle to the graphics adapter object that was created with the OpenAdapter10 function.

Return value

CloseAdapter(D3D10) returns S_OK if the operation succeeds. Otherwise, this function returns an appropriate error result.

Remarks

The user-mode display driver's CloseAdapter(D3D10) function should free all of the resources that the driver allocated for the graphics adapter object.

Before CloseAdapter(D3D10) closes the graphics adapter object, all of the display devices that were created by using the graphics adapter object in calls to the user-mode display driver's CreateDevice(D3D10) function will be destroyed in calls to the driver's DestroyDevice(D3D10) function.

Requirements

Version

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

Header

D3d10umddi.h (include D3d10umddi.h)

See also

CreateDevice(D3D10)
D3D10DDI_ADAPTERFUNCS
DestroyDevice(D3D10)
OpenAdapter10

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft