Thank you for your answer Antonio.
I already checked every C function and they are normally run.
The problem is the process of HandleEvent( nMsg, nWParam, nLParam ).
The CALLBACK_WINDOW which is processed in waveInOpen function don't give the value of WIM_OPEN, WIM_DATA to defined HandleEvent.
oknbs.