|
|
Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
big HI everyone,
I am trying to write the background UI plugin for Windows Media Player 10 using SDK 10(of course) (in VC++). I want to retrieve the the source protocol being used. I am using get_sourceProtocol(BSTR *pbstrSourceProtocol) from IWMPNetwork interface to retrive the protocol. Before calling it, I am using IWMPCore->get_Network(IWMPNetwork), which sets IWMPNetwork pointer.
Now when I call IWMPNetwork->get_sourceProtocol(BSTR *pbstrSourceProtocol), it gives me blank. Can anybody suggest the solution/ correct the code? I would really appreciate that a lot.
This is the code snippet I have written.............
CComPtr<IWMPMedia> spMedia; CComPtr<IWMPCore> m_spCore; CComPtr<IWMPNetwork> m_spNetwork; : : : HRESULT hr; BSTR sourceProtocol; BSTR url;
hr = m_spCore->get_currentMedia(&spMedia); spMedia->get_sourceURL(&url); m_spCore->put_URL(url);
m_spNetwork->get_sourceProtocol(&sourceProtocol); : : : :
Thanks in Advance and God bless you. MilindMilind.
|
|
|