Partager via


CSourceStream::OnThreadCreate

 
Microsoft DirectShow 9.0

CSourceStream::OnThreadCreate

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.

Requirements

**  Header:** Declared in Source.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also