![]() Int Render(ref TimedLevel pLevels, IntPtr Hdc, ref RECT pRC) I converted the interfaces to following using System ![]() Virtual HRESULT STDMETHODCALLTYPE RenderWindowed(Īs I mentioned, my COM knowledge my not be the best. Virtual HRESULT STDMETHODCALLTYPE OnWindowMessage( Virtual HRESULT STDMETHODCALLTYPE NotifyNewMedia( Virtual HRESULT STDMETHODCALLTYPE Destroy( void) = 0 Virtual HRESULT STDMETHODCALLTYPE Create( Virtual HRESULT STDMETHODCALLTYPE SetCore( Virtual /* */ HRESULT STDMETHODCALLTYPE RenderFullScreen( Virtual /* */ HRESULT STDMETHODCALLTYPE GoFullscreen( Virtual /* */ HRESULT STDMETHODCALLTYPE DisplayPropertyPage( Virtual /* */ HRESULT STDMETHODCALLTYPE GetCurrentPreset( Virtual /* */ HRESULT STDMETHODCALLTYPE SetCurrentPreset( Virtual /* */ HRESULT STDMETHODCALLTYPE GetPresetCount( Virtual /* */ HRESULT STDMETHODCALLTYPE GetPresetTitle( Virtual /* */ HRESULT STDMETHODCALLTYPE GetTitle( Virtual /* */ HRESULT STDMETHODCALLTYPE GetCapabilities( Virtual /* */ HRESULT STDMETHODCALLTYPE MediaInfo( Virtual /* */ HRESULT STDMETHODCALLTYPE Render( It doesn't appear to much more complicated than that. The dev kit contains a C++ header file named effects.h that contains 2 interfaces that must be implemented to get the plugin to work with WMP. ![]() This sample registers and works without issues in WMP. I downloaded the Latest Windows SDK which contains a C++ plugin wizard to compile a working visualization sample. ![]() In a nutshell: WMP will call certain methods on my C# COM interface, but not others. ![]() I have persisted with this for 3 days (about 20 hours) and not got past the single issue I will describe below.įor those who don't know, WMP visualizations are the pretty images that show in media player while listening to music. I am quite new to exposing C# to COM and may have missed something basic. I am attempting to create a Windows Media Player (WMP) Visualization plugin in C#. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |