Did you remember to supply the hwnd on the mciSendStringA?
In reply to Re^3: Capturing the MM_MCINOTIFY event of winmm by BrowserUk in thread Capturing the MM_MCINOTIFY event of winmm by slloyd