IDirect3DRMObject::AddDestroyCallback
HRESULT AddDestroyCallback(D3DRMOBJECTCALLBACK lpCallback,
LPVOID lpArg);
Registers a function to be called when an object is destroyed.
·Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.
lpCallback
User-defined callback function that will be called when the object is destroyed.
lpArg
Address of application-defined data passed to the callback function. Because this function is called after the object has been destroyed, you should not call this function with the object as an argument.