The capFileSetCaptureFile macro names the file used for video capture. You can use this macro or explicitly call the WM_CAP_FILE_SET_CAPTURE_FILE message.
BOOL capFileSetCaptureFile(
hwnd,
szName
);
Returns TRUE if successful or FALSE if the filename is invalid or if streaming or single-frame capture is in progress.
This message stores the filename in an internal structure. It does not create, allocate, or open the specified file. The default capture filename is C:\CAPTURE.AVI.
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_FILE_SET_CAPTURE_FILE