The MCIWndGetLength macro retrieves the length of the content or file currently used by an MCI device. You can use this macro or explicitly send the MCIWNDM_GETLENGTH message.
LONG MCIWndGetLength(
hwnd
);
Returns the length. The units for the length depend on the current time format.
This value added to the value returned for the MCIWndGetStart macro equals the end of the content.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in vfw.h.
MCIWnd Window Class Overview, MCIWnd Macros, MCIWndGetStart, MCIWNDM_GETLENGTH