Hope this helps:
http://www.tomshardware.com/forum/205290-33-capture-card-input
This is a Simple Dialog Demo.