title: Virtual Webcam in C++
body: <p>I want to write a new virtual webcam driver, which for example will take an AVI or live stream for example for screen and stream it as webcam source.</p>
  
  <p>I'll not have webcam really, I want to add a virtual webcam which streams desktop screen. </p>
  
  <p>I should write a webcam in kernel mode to do so ? If so, could you guide me to a sample webcam driver?</p>
  
  <p>If I should do it in DirectShow, how can I add a webcam device to list in webcams list in Control panel, so for example in Yahoo messenger, I can choose that device as webcam and stream my desktop as webcam images.</p>
  
  <p>How can I get started?</p>