MCIWndGetError

The MCIWndGetError macro retrieves the last MCI error encountered. You can use this macro or explicitly send the MCIWNDM_GETERROR message.

LONG MCIWndGetError(
  hwnd,  
  lp,    
  len    
);

Parameters

hwnd

Handle of the MCIWnd window.

lp

Pointer to an application-defined buffer used to return the error string.

len

Size, in bytes, of the error buffer.

Return Values

Returns the integer error value if successful.

Remarks

If lp is a valid pointer, a null-terminated string corresponding to the error is returned in its buffer. If the error string is longer than the buffer, MCIWnd truncates it.

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

MCIWNDM_GETERROR