This depends on the camera driver. If it's a standard Windows imaging device (WIA), you can use the WIA approach.
If the camera has a standard DirectShow capture driver, you can use DirectX Media SDK from Microsoft to capture from it, but unless you're very good with C++, you might want to use a library built on top of DirectShow to make life easier.
We are using a third-party multimedia toolkit named leadtools to capture images from our web cameras. For more information, please see the below link:
http://support.leadtools.com/CS/forums/10345/ShowPost.aspx