共用方式為


waveInMessage function

The waveInMessage function sends messages to the waveform-audio input device drivers.

Syntax

DWORD waveInMessage(
   HWAVEIN   deviceID,
   UINT      uMsg,
   DWORD_PTR dwParam1,
   DWORD_PTR dwParam2
);

Parameters

  • deviceID
    Identifier of the waveform device that receives the message. You must cast the device ID to the HWAVEIN handle type. If you supply a handle instead of a device ID, the function fails and returns the MMSYSERR_NOSUPPORT error code.

  • uMsg
    Message to send.

  • dwParam1
    Message parameter.

  • dwParam2
    Message parameter.

Return value

Returns the value returned from the driver.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Mmsystem.h (include Windows.h)

Library

Winmm.lib

DLL

Winmm.dll

See also

Waveform Audio

Waveform Functions