Partager via


Programming against Windows Media Player on Smartphone and Pocket PC

“Where are the APIs for programming Windows Media Player on Smartphone?“ This question has come up a couple of times in recent weeks on .

Unfortunately the answer is “there isn't one at the moment”. None of the Windows Mobile 2002 or 2003 devices, either Pocket PC or Smartphone, have a media player client that has an API.

The only workaround at the moment is to post window messages to the media player application. This is completely unsupported and is guaranteed to break in the next version of the client. However, if you really want to do it, Peter Foot has a writeup of how it works  and a sample class library over at opennetcf.org. The library is in managed code, but if you're a native developer you should be able to look at the P/Invoke calls to figure out how to do the same thing in C++.

[Author: Neil Enns]

Comments