Hi there,
Have spent a while trying to find out how to connect to Windows Media Player
through COM. Unfortunately there doesnt seem to be much stuff about it on
the web.
What I need to do is create a simple console application which will be able
to find out what the values of a currently playing tack.
I've downloaded the Windows Media player SDK which come with some IDL and
header files which I assume I need to communicate with the Windows Media
Player COM componants.
What i've done so far is created a reference to the windows media player COM
interface by going to Add reference / com in the solutions explorer. Next
i've created the Media Player name space by adding "using MediaPlayer;" to
the application.
What I want to know is how to add the IDL files to my project so I can
access the Windows Media Player COM interface. If you could help by giving
me a bit of example code (i.e, how to get how long the currently playing
track is) and explaining how and if IDL comes into it and how to implement
it.
PS - i've found code to create an instance of Windows Media Player but how
to I just create a reference to the currently active instance of it.
Thanks
Steve