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.
void CALLBACK WaveInFunc(HWAVEIN hWaveIn, UINT wMsg, DWORD dwInstance, DWORD dwParam1, DWORD dwParam2);
Header file: | Mmsystem.h |
Component: | Wavelib |
Platforms: | H/PC |
Windows CE versions: | 2.0 and later |
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.