The capFileGetCaptureFile macro returns the name of the current capture file. You can use this macro or explicitly call the WM_CAP_FILE_GET_CAPTURE_FILE message.
BOOL capFileGetCaptureFile(
hwnd,
szName,
wSize
);
Returns TRUE if successful or FALSE otherwise.
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_GET_CAPTURE_FILE