http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/mmfunc_8otu.asp
に
> The buffer must be prepared by using the midiInPrepareHeader
> function before it is passed to the midiInAddBuffer function.
とありますな。
日本語なら
http://www.microsoft.com/japan/developer/library/default.asp?URL=/japan/developer/library/jpgdipf/_win32_midiinaddbuffer.htm
とか。

APIをどう組み合わせるかとか実践的な使い方とかなら、サンプルや
解説本の出番ですが。