The WM_CAP_SET_CALLBACK_ERROR message sets an error callback function in the client application. AVICap calls this procedure when errors occur. You can send this message explicitly or by using the capSetCallbackOnError macro.
WM_CAP_SET_CALLBACK_ERROR
wParam = (WPARAM) 0;
lParam = (LPARAM) (LPVOID) (fpProc);
Returns TRUE if successful or FALSE if streaming capture or a single-frame capture session is in progress.
Applications can optionally set an error callback function. If set, AVICap calls the error procedure in the following situations:
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, capSetCallbackOnError