PFND3D10DDI_CLOSEADAPTER callback function

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

Syntax

PFND3D10DDI_CLOSEADAPTER Pfnd3d10ddiCloseadapter;

HRESULT Pfnd3d10ddiCloseadapter(
  D3D10DDI_HADAPTER Arg1
)
{...}

Parameters

Arg1

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

   
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header d3d10umddi.h (include D3d10umddi.h)

See Also

CreateDevice(D3D10)

D3D10DDI_ADAPTERFUNCS

DestroyDevice(D3D10)

OpenAdapter10