This method of the Direct3dRMObject Class registers a function to be called when an object is destroyed.
public void addDestroyCallback(Id3drmCallback fn, IUnknown Arg);
fn | The callback interface that contains a user-defined callback function that will be called when the object is destroyed. |
Arg | 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. |