DXUTSetCallbackDeviceDestroyed
Microsoft DirectX 9.0 SDK Update (October 2004)

DXUTSetCallbackDeviceDestroyed Function


Sets the Microsoft Direct3D device-destroyed callback function.

Syntax

VOID DXUTSetCallbackDeviceDestroyed(      

    LPDXUTCALLBACKDEVICEDESTROYED pCallbackDeviceDestroyed );

Parameters

pCallbackDeviceDestroyed
[in] Pointer to a LPDXUTCALLBACKDEVICEDESTROYED callback function. If the callback function is supplied, it will be called when the Direct3D device has been destroyed. Device destruction will happen as a result of program termination and if the Direct3D device changes.

If NULL, the sample framework will not notify the application about device destroyed events.

Return Value

No return value.

Remarks

Resources created in the LPDXUTCALLBACKDEVICECREATED callback function should be deleted in the LPDXUTCALLBACKDEVICEDESTROYED callback function. The deleted resources will generally include all resources created in D3DPOOL_MANAGED or D3DPOOL_SYSTEMMEM memory.

Function Information

Headerdxut.h
Import libraryNone
Minimum operating systems Windows 98

See Also

Device Events, LPDXUTCALLBACKDEVICEDESTROYED, LPDXUTCALLBACKDEVICECREATED, DXUTSetCallbackDeviceCreated


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.