The capSetCallbackOnError macro sets an error callback function in the client application. AVICap calls this procedure when errors occur. You can use this macro or explicitly call the WM_CAP_SET_CALLBACK_ERROR message.
BOOL capSetCallbackOnError(
hwnd,
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.
Video Capture Overview, Video Capture Macros, WM_CAP_SET_CALLBACK_ERROR