PFND3DDDI_CLOSEADAPTER callback function

The CloseAdapter function releases resources for a graphics adapter object.

Syntax


PFND3DDDI_CLOSEADAPTER CloseAdapter;

__checkReturn HRESULT APIENTRY CloseAdapter(
  _In_ HANDLE hAdapter
)
{ ... }

Parameters

hAdapter [in]

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

Target platform

Desktop

Version

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

Header

D3dumddi.h (include D3dumddi.h)

See also

CreateDevice
D3DDDI_ADAPTERFUNCS
DestroyDevice
OpenAdapter

 

 

Send comments about this topic to Microsoft

Show: