getting current track playing in wmp programmatically

  • Thread starter Thread starter Paul Fi
  • Start date Start date
P

Paul Fi

im writing a C# program that tries to get the currently playing song in
a
seperate windows media player instance (external app)

i found out that there might be a way to do that using the windows
messaging
system.

some how i was able to use the win32 funtion findwindow() to get the
handle
for windows media player host, systemlistview32 and for wmpplaylist
using
spy++.

but now im trying to use the win32 function sendmessage() to get at
least
the index of the currently playing song in windows media player, and i
still
cant figure this out

does anyone know how to do that?
 
Paul,

I don't think that there is a message that will tell you this. I think
that if there was a way to actually do this, it would be through automation,
obtaining the running instance, and then accessing the player information
that way.

I would search for information on accessing the automation interface for
the windows media player.

Hope this helps.
 
Back
Top