|Microsoft DirectX 9.0|
The OnThreadDestroy method is called when the streaming thread is about to exit.
virtual HRESULT OnThreadDestroy(void);
The thread procedure, CSourceStream::ThreadProc, calls this method before it exits. The method does nothing in the base class; it is available for the derived class to override. If the derived class returns an error code, the thread exits with an error.