// Set video format to MJPG capSetVideoFormat(m_hCaptureWindow, NULL, 640, 480, 30);
void CCamShow::InitCamera() WS_VISIBLE, 0, 0, 640, 480, NULL, NULL);
: A multi-threaded desktop app designed specifically for recording multiple streams simultaneously with features like auto-start when models come online.
Here is some example code to get you started: