0

How to create a DirectShow Filter and the main concern is how to select the window to follow. I want to do something like google plus hangout uses to select the window to show in screen share.

Thanks to help :)

diogopalhais
  • 369
  • 1
  • 4
  • 14

1 Answers1

0

You don't need DirectShow to capture window image. With a DC-to-DC BitBlt the picture is already yours. See:

If you want to wrap this into a DirectShow filter, Windows SDK sample Push Source is doing a close thing (CPushSourceDesktop).

Community
  • 1
  • 1
Roman R.
  • 68,205
  • 6
  • 94
  • 158
  • thanks a lot for the links i will study them but how to lock a window by the hwnd ? can you help me ? – diogopalhais Apr 28 '12 at 17:14
  • What do you mean "lock"? If you have `HWND` then you can get its device context using `GetDC` or `GetWindowDC` and copy from there. – Roman R. Apr 28 '12 at 17:59
  • I been working with what @Roman says and i modified this [project](http://dl.dropbox.com/u/22121737/CaptureScreen.rar) but now i want to use this as a directshow filter to capture as a video. how can i do this? – diogopalhais May 01 '12 at 16:17