I'd like to create an application that captures an image from a webcam or digital camera, and then uploads it to a webserver so they can be viewed on a wesite.

I would like to use window's API to capture the image so my program could be compatible with pretty much all cameras.

Any help would be appreciated.