Share via


capGetMCIDeviceName

The capGetMCIDeviceName macro retrieves the name of an MCI device previously set with the capSetMCIDeviceName macro. You can use this macro or explicitly call the WM_CAP_GET_MCI_DEVICE message.

BOOL capGetMCIDeviceName(
  hwnd,    
  szName,  
 wSize    
);

Parameters

hwnd

Handle to a capture window.

szName

Pointer to a null-terminated string that contains the MCI device name.

wSize

Length, in bytes, of the buffer referenced by szName .

Return Values

Returns TRUE if successful or FALSE otherwise.

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.

See Also

Video Capture, Video Capture Macros, capSetMCIDeviceName, WM_CAP_GET_MCI_DEVICE