Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Entertainment » microsoft.public.windowsmedia.player.plugins
Thread: Problem with Background UI Plug-in

HTVi
TV Discussion Newsgroups

Problem with Background UI Plug-in
milindmilind <milindmilind[ at ]gmail.com> 4/17/2007 8:14:56 AM
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.

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen