Sample code for launching Windows Media Center and browsing to a specific experience

A couple of weeks ago, I posted a description of an algorithm that can be used to launch Windows Media Center and automatically browse to a specific experience.  At the end of that post, I mentioned that I was working on a Win32 sample application to demonstrate this algorithm.  I've gotten this sample implemented, code reviewed and tested and it is ready to post for download in case you are interested in seeing an example of how the algorithm can be implemented.

You can download the example code and a compiled EXE from

This example contains UI that lets the user select a Windows Media Center page ID from a drop down combo box and select the mode to use when launching Windows Media Center.  It performs a version check to make sure that the system the application is run on includes at least Windows Media Center 2004 (the first version that this method of launching Windows Media Center was supported in).  It also includes a command line mode that allows you to pass in the page ID and launch mode and run the application silently.

Hopefully this helps you get started if you are interested in implementing this algorithm for launching Windows Media Center as a part of your application.

<update date="3/8/2010"> Fixed broken link for the sample code. </update>


Comments (7)

  1. DanB_DE says:


    Thank you for that Example. One Question / Problem:

    We are building a reference System with W7 Embedded and changing the shell to MCE. We will use your documented way  to start media center, but we would also like to use some command line options from ehshell.exe.

    Is there a way where we can change some Registry Key to save our command line Options, or a programmatically way to do this ?

    We want to use this approach because the MSDN Article states that this is the only supported method to start MC from a 3rd Party App.

    (…/bb188947.aspx )

  2. Hi DanB_DE – I don't know of a way to launch Media Center and browse to a specific page in addition to passing command line parameters to ehshell.exe.  What exact command line parameters do you want to use and what functionality are you trying to use in your scenario?

  3. DanB_DE says:

    Hi Aaron, sorry for the late response (vacation). For an embedded scenario we need to use




    We want MC to start without the startupanimation and navigate directly into our own Plugin. We could use /entrypoint with ehshell.exe to navigate to our plugin, but we think the WPARAM = 13 method is still the only reliable supported way. but if you also have no idea, i guess we have to go the ehsehll.exe + switches approach.

    Regards, Dan#

  4. Hi DanB_DE – Those scenarios make sense to me but unfortunately I don't know of a way to combine those switches with the functionality to launch Media Center to a specific page.  However, I have not been on the Media Center team for a few years, so there might be a way to do this that I'm not aware of.  You may want to try to contact Microsoft Developer Support to see if they have any options that they can suggest.  You might also want to post a question on one of the following forums:…/ShowForum.aspx…/reader.mspx

  5. DanB_DE says:

    Hello Aaron,

    thx for your Feedback and Help.

    i found the following Reg-Key (and more). With this Key its possible to use the WPARAM algorithm and using Reg Keys instead of cmd switches.

    Windows Registry Editor Version 5.00

    [HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionMedia CenterSettingsMCE.PerUserSettings]






  6. Hi DanB_DE – Please keep a couple of things in mind with this registry key:

    1.  It is under HKEY_CURRENT_USER, so if you have scenarios where multiple users will log onto the same computer, you'll need to also configure the keys under HKEY_USERS.Default so that the new users will get the settings as well.

    2.  Like with anything that isn't officially documented, it is subject to change in future updates or new versions of the product without warning.  You'll want to do compatibility testing as new Media Center updates and new versions of Media Center are released to verify that your scenarios continue to work.

Skip to main content