The WM_CAP_DRIVER_CONNECT message connects a capture window to a capture driver. You can send this message explicitly or by using the capDriverConnect macro.
WM_CAP_DRIVER_CONNECT
wParam = (WPARAM) (iIndex);
lParam = 0L;
Returns TRUE if successful or FALSE if the specified capture driver cannot be connected to the capture window.
Connecting a capture driver to a capture window automatically disconnects any previously connected capture driver.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in vfw.h.
Video Capture Overview, Video Capture Messages, capDriverConnect