capSetMCIDeviceName

The capSetMCIDeviceName macro specifies the name of the MCI video device to be used to capture data. You can use this macro or explicitly call the WM_CAP_SET_MCI_DEVICE message.

BOOL capSetMCIDeviceName(
  hwnd,  
  szName 
);
 

Parameters

hwnd
Handle of a capture window.
szName
Address of a null-terminated string containing the name of the device.

Return Values

Returns TRUE if successful or FALSE otherwise.

Remarks

This message stores the MCI device name in an internal structure. It does not open or access the device. The default device name is NULL.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in vfw.h.

See Also

Video Capture Overview, Video Capture Macros, WM_CAP_SET_MCI_DEVICE