Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This method is used to send Waveform Audiomessages to the audio device. It is a transparent wrapper for the waveOutMessagefunction.

Syntax

HRESULT SendMessage(
  UINT  
uMsg,
  DWORD 
dw1,
  DWORD 
dw2
);

Parameters

uMsg

[in] A UINT value that identifies the message to send to the audio device. The device driver implementation determines how this message is interpreted.

dw1

[in] A DWORD value that contains the message data. The device driver implementation determines how this data is interpreted.

dw2

[in] A DWORD value that contains the message data. The device driver implementation determines how this data is interpreted.

Return Value

Value Description

S_OK

Success

MMSYSERR_NODRIVER

There has been a failure in the device driver or the filter graph is in the stopped state.

Remarks

Applications should expect that a previously obtained wave out handle will remain valid after a call to IMediaControl::Pausereturns. In returning for the pause state, DirectShow makes sure that all resources are allocated before an application calls IMediaControl::Run. Applications should ensure that this wave out handle remains open until the filter graph is stopped through a call to IMediaControl::Stop.

Requirements

Windows Embedded CE Windows Embedded CE 6.0 and later
Windows Mobile Pocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later
Note Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements
For more information, see Setting Up the Build Environment

See Also