From: Geler on 30 Mar 2006 08:10 I want to test the waveInOpen multimedia function. This function uses (in my case) WIndows Events for notifivation and I want to hook these notification events. I saw in the MSDN the function SetWinEventHook. Is this the right way? Can someone help with some reference. Regards Geler
From: Gary Chanson on 30 Mar 2006 13:53 "Geler" <geler(a)mark.com> wrote in message news:u2IIds$UGHA.4864(a)TK2MSFTNGP12.phx.gbl... > I want to test the waveInOpen multimedia function. This function uses (in my > case) WIndows Events for notifivation and I want to hook these notification > events. I saw in the MSDN the function SetWinEventHook. > Is this the right way? > Can someone help with some reference. No, you're confusing two totally different things. SetWinEventHook sets handlers for system events. waveInOpen uses event objects to signal your program when data handling is needed. Use CreateEvent to create your event object and pass that handle to waveInOpen. Your program will then wait on that handle. When it is signaled, you need to process the next data buffer. -- -GJC [MS Windows SDK MVP] -Software Consultant (Embedded systems and Real Time Controls) - http://www.mvps.org/ArcaneIncantations/consulting.htm -gchanson(a)mvps.org
|
Pages: 1 Prev: Memory leak with CreateProcess() Next: handling suspend/hibernate in Windows XP |