Bewerken

Delen via


PFND3DDDI_CLOSEADAPTER callback function (d3dumddi.h)

The CloseAdapter function releases resources for a graphics adapter object.

Syntax

PFND3DDDI_CLOSEADAPTER Pfnd3dddiCloseadapter;

HRESULT Pfnd3dddiCloseadapter(
  HANDLE hAdapter
)
{...}

Parameters

hAdapter

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

Return value

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

Remarks

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

Before CloseAdapter 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 function must be destroyed in calls to the driver's DestroyDevice function.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header d3dumddi.h (include D3dumddi.h)

See also

CreateDevice

D3DDDI_ADAPTERFUNCS

DestroyDevice

OpenAdapter