Cannot capture multimedia messages

Hello Everybody,
I’ve tried to capture multimedia messages like WIM_OPEN, WIM_CLOSE without any success.
I wrote a hook dll with SetWindowsHookEx which works fine, but cannot capture the multimedia messages.
Are these messages real windows messages? If not is there any other way to capture them?
Thank you in advance!

xxxxx@freemail.hu wrote:

Hello Everybody,
I’ve tried to capture multimedia messages like WIM_OPEN, WIM_CLOSE without any success.
I wrote a hook dll with SetWindowsHookEx which works fine, but cannot capture the multimedia messages.
Are these messages real windows messages? If not is there any other way to capture them?

It depends. When the application calls waveInOpen, it specifies whether
it wants to receive those messages as window messages, thread messages,
event triggers, function callbacks, or not at all. If it chooses to use
window messages, then you could trap them with your hook. In my
experience, however, it is more common for applications to use a
function callback, or no notification at all. In that case, there is
little you can do.

This is kind of an unusual request. What are you hoping to do?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Thank you for the quick answer. Now I understand what is the problem. My problem is that I am developing an application which should record all playing and recording audio in windows through WAVE_MAPPER, and I need to know if an application starts using any audio device, to start the recording. Is there any way to listen for audio device activity?