Microsoft DirectX 9.0 |
The OnThreadCreate method is called when the streaming thread is initialized.
Syntax
virtual HRESULT OnThreadCreate(void);
Return Value
Returns S_OK.
Remarks
The thread procedure, CSourceStream::ThreadProc, calls this method when it first receives a CSourceStream::Init request. The method does nothing in the base class. The derived class can override this method to perform thread initializations. If the derived class returns an error code, the thread exits with an error.
See Also