The WM_CAP_FILE_GET_CAPTURE_FILE message returns the name of the current capture file. You can send this message explicitly or by using the capFileGetCaptureFile macro.
WM_CAP_FILE_GET_CAPTURE_FILE
wParam = (WPARAM) (wSize);
lParam = (LPARAM) (LPVOID) (LPSTR) (szName);
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.
Unicode: Defined as Unicode and ANSI messages.
Video Capture Overview, Video Capture Messages, capFileGetCaptureFile