WaveInFunc

The WaveInFunc function is a placeholder for the application-supplied function name. The actual name must be exported by including it in an EXPORTS statement in the DLL's module-definition file.

Syntax

void CALLBACK WaveInFunc(HWAVEIN hWaveIn, UINT wMsg, DWORD dwInstance, DWORD dwParam1, DWORD dwParam2);

At a Glance

Header file: Mmsystem.h
Component: Wavelib
Platforms: H/PC
Windows CE versions: 2.0 and later

Parameters

hWaveIn
Handle to the waveform device associated with the callback.
WMsg
Waveform input device.
DwInstance
User instance data specified with waveInOpen.
dwParam1
Parameter for the message.
dwParam2
Parameter for the message.

Remarks

Because the callback is accessed at interrupt time, it must reside in a DLL and its code segment must be specified as FIXED in the module-definition file for the DLL. Any data that the callback accesses must be in a FIXED data segment as well. The callback may not make any system calls except for PostMessage, timeGetSystemTime, timeGetTime, timeSetEvent, timeKillEvent, midiOutShortMsg, midiOutLongMsg, and OutputDebugStr.

See Also

waveInClose