PFND3DDDI_CLOSEADAPTER - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// d3dumddi.h

PFND3DDDI_CLOSEADAPTER Pfnd3dddiCloseadapter;

HRESULT Pfnd3dddiCloseadapter(
  HANDLE hAdapter
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-d3dumddi-pfnd3dddi_closeadapter)

PFND3DDDI_CLOSEADAPTER callback function

Description

The CloseAdapter function releases resources for a graphics adapter object.

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.

See also

CreateDevice

D3DDDI_ADAPTERFUNCS

DestroyDevice

OpenAdapter