IDirect3DRMObject::AddDestroyCallback
Registers a function to be called when an object is destroyed.
HRESULT AddDestroyCallback(
D3DRMOBJECTCALLBACK lpCallback,
LPVOID lpArg
);
Parameters
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.
Return Values
Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.