capErrorCallback

The capErrorCallback function is the error callback function used with video capture. The name capErrorCallback is a placeholder for the application-supplied function name.

To set the callback, send the WM_CAP_SET_CALLBACK_ERROR message to the capture window or call the capSetCallbackOnError macro.

LRESULT CALLBACK capErrorCallback(
  HWND hWnd,  
  int nID,    
  LPCTSTR lpsz 
);

Parameters

hWnd

Handle to the capture window associated with the callback function.

nID

Error identification number.

lpsz

Pointer to a textual description of the returned error.

Remarks

A message identifier of zero indicates a new operation is starting and the callback function should clear the current error.

Requirements

  Windows NT/2000/XP: Included in Windows NT 3.1 and later.
  Windows 95/98/Me: Included in Windows 95 and later.
  Header: Declared in Vfw.h
  Library: Use Vfw32.lib.
  Unicode: Implemented as Unicode and ANSI versions on Windows NT/2000/XP.

See Also

Video Capture, Video Capture Functions

Show: