// d3dumddi.h
PFND3DDDI_CLOSEADAPTER Pfnd3dddiCloseadapter;
HRESULT Pfnd3dddiCloseadapter(
HANDLE hAdapter
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The CloseAdapter function releases resources for a graphics adapter object.
hAdapterA handle to the graphics adapter object that was created with the OpenAdapter function.
CloseAdapter returns S_OK if the operation succeeds. Otherwise, this function returns an appropriate error result.
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.