EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

MCIWndGetMode macro

The MCIWndGetMode macro retrieves the current operating mode of an MCI device. MCI devices have several operating modes, which are designated by constants. You can use this macro or explicitly send the MCIWNDM_GETMODE message.

Syntax


LONG MCIWndGetMode(
   hwnd,
   lp,
   len
);

Parameters

hwnd

Handle of the MCIWnd window.

lp

Pointer to the application-defined buffer used to return the mode.

len

Size, in bytes, of the buffer.

Return value

Returns an integer corresponding to the MCI constant defining the mode.

Remarks

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
not readyMCI_MODE_NOT_READY
openMCI_MODE_OPEN
pausedMCI_MODE_PAUSE
playingMCI_MODE_PLAY
recordingMCI_MODE_RECORD
seekingMCI_MODE_SEEK
stoppedMCI_MODE_STOP

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Vfw.h

See also

MCIWNDM_GETMODE

 

 

Community-Beiträge

Anzeigen:
© 2014 Microsoft