I would like to develop a media player add-ins for vista to control a custom functionality exposed by a display driver (dxva 2.0 decode extention). To do that, I need access to IDirect3DDeviceManager9 interface from within the plug-in compoent. Is it possiable to aquire this interface from with in the plug-in component How

aquiring IDirect3DDeviceManager9 interface from within a Media Player Plug-ins
EricLeBouffon
Yes, I thought about DSP Plugin, but any other plugin type which meets my requirement is just fine. However, Let me first explain more in details what I'm up to.
I have a display driver which exposes a custom functionalilty to enable/disable media (MPEG2) playback enhancment feature which is located in the
DXVA2.0 media pipe right before ProcAmp (this feature is excelerated by GPU). Since, there is no generic way to expose this functionality to applications, it was decided to use DXVADecodeExtention DDI (display driver interface) which is exposed to applications via IDirectXVideoDecoder interface which is accessable via IDirect3DDeviceManager9 interface. IDirect3DDeviceManager9, interface can be obtained as well from enhanced video renderer (EVR), by calling IMFGetService::GetService. The service GUID is MR_VIDEO_ACCELERATION_SERVICE.
If there is a way to access either EVR interfaces or IDirect3DDeviceManager9 interface from within the plugin, I couldv'e control this hidden enhancment feature via a simple Plugin which exposes property dialog with one enable/disable check box.
Any hints
kymaita
Gotcha. Unfortunately, though, if you need this to happen when playing back in WMP (as opposed to a playback application over which you have more control), I'm not thinking of any way to get a non-decoder MFT to see the D3D manager.
The reason is that, since WMP is the application and you'd just be supplying the MFT, there's no way to get the MFT involved in any way other than the default stuff that Media Foundation does, which today is not to involve non-decoder MFTs in D3D configuration.
Nightowly
Are you talking about a Windows Media Player DSP plugin
Unfortunately, at least in Media Foundation (the media pipeline that WMP uses for playback of most WMV, WMA, and MP3 files on Vista), there isn't a way to make this happen from an effect that isn't a decoder. The reason is that WMP uses the default Media Foundation topology loader, which sets up D3D stuff only on decoders that it finds and inserts; custom effects like the one you're trying to write don't get D3D-ed.
If you were talking about making this work from your own playback application, though, this would be possible; you just would have had to write a couple lines of code to do this configuration manually.