The MCIWNDM_GETMODE message retrieves the current operating mode of an MCI device. MCI devices have several operating modes, which are designated by constants. You can send this message explicitly or by using the MCIWndGetMode macro.
MCIWNDM_GETMODE wParam = (WPARAM) (UINT) len; lParam = (LPARAM) (LPSTR) lp;
Size, in bytes, of the buffer.
Pointer to the application-defined buffer used to return the mode.
Returns an integer corresponding to the MCI constant defining the mode.
If the null-terminated string describing the mode is longer than the buffer, it is truncated.
Not all devices can operate in every mode. For example, the MCIAVI device is a playback device; it doesn't support the recording mode. The following modes can be retrieved by using MCIWNDM_GETMODE.
|Operating mode||MCI constant|
|Minimum supported client
||Windows 2000 Professional [desktop apps only]
|Minimum supported server
||Windows 2000 Server [desktop apps only]