The capDriverDisconnect macro disconnects a capture driver from a capture window. You can use this macro or explicitly send the WM_CAP_DRIVER_DISCONNECT message.
BOOL capDriverDisconnect(
hwnd
);
Returns TRUE if successful or FALSE if the capture window is not connected to a 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 Macros, WM_CAP_DRIVER_DISCONNECT