QueryInterface in C#

In Windows Media player SDK the way to obtain IWMPSyncServices interface looks like spSyncServices->get_deviceCount(&cAllDevices); but how to do this in C#. I tried to do IWMPSyncServices ss = null;
ss = (IWMPSyncServices)Player;
But I have exception on casting. That can I do
Thanks.


Answer this question

QueryInterface in C#

  • DotNet_bz

    What is the type of the Player How do you initialize it


  • DhanashreeP

    I know. Does anybody knows that implemetns

  • ajumani

    The Player, does it implements the IWMPSyncServices interface I geus not.


  • Gentleman Auditor

    AxWMPLib.AxWindowsMediaPlayer

  • QueryInterface in C#