|
|
|
date: Wed, 2 Apr 2008 21:17:59 +0200,
group: microsoft.public.windowsmedia.sdk
back
Re: WMP11 ActiveX - sound card selection
On Thu, 3 Apr 2008 15:54:24 -0400, Alessandro Angeli wrote:
>> One more question: do you know any good article/sample
>> for local hooks (without dll)? I can't find anything
>> specific.
> See my FAQ (link below). Read both the entries in API
> hooking and the ones on spying (since they use API hooking).
I've got local hook working, thanks.
There was a small problem with your code from
http://groups.google.com/group/microsoft.public.win32.programmer.directx.audio/msg/71a4c49c2fbd714d
at the end, in line:
MoveMemory(((LPBYTE)F)[1],&ul,sizeof(ul));
there is & missing, it's working correcly looking like that:
MoveMemory(&((LPBYTE)F)[1],&ul,sizeof(ul));
One more problem:
the list of sound cards in
[HKEY_CURRENT_USER\Software\Microsoft\ActiveMovie\devenum\{E0F158E1-CB04-11D0-BD4E-00A0C911CE86}]
is not always up to date with list of cards in the system. If there is new
card added, it's not under this key in registry, until
options->devices->speakers dialog is displayed manually form windows media
player. Is there any way to update it automatically ? Or is there a method
to enumerate the cards from directshow and to 'guess' DSGuid?
One more time, thanks for all your help!
--
GP
date: Wed, 9 Apr 2008 00:26:17 +0200
author: GP
|
|