// d3dumddi.h
PFND3DDDI_DESTROYOVERLAYCB Pfnd3dddiDestroyoverlaycb;
HRESULT Pfnd3dddiDestroyoverlaycb(
HANDLE hDevice,
const D3DDDICB_DESTROYOVERLAY *unnamedParam2
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The pfnDestroyOverlayCb function disables the overlay hardware and destroys the kernel-mode overlay object.
hDeviceA handle to the display device (graphics context).
unnamedParam2pData [in]
A pointer to a D3DDDICB_DESTROYOVERLAY structure that contains a handle to the overlay object to be disabled.
pfnDestroyOverlayCb returns one of the following values:
| Return code | Description |
|---|---|
| S_OK | The overlay object was successfully disabled. |
| E_INVALIDARG | Parameters were validated and determined to be incorrect. |
This function might also return other HRESULT values.