MediaCenter.NavigateToPage Method

Directs Windows Media Center to navigate to the specified page in the Windows Media Center UI.

Note   This method has been deprecated.

Syntax

  MediaCenter.NavigateToPage(
  pageId
  , 
  params
  )

Parameters

pageId

A String that contains the identifier (GUID) of a Windows Media Center page. For more information, see the Remarks section.

params

A String that contains additional parameters. For more information, see the Remarks section.

Return Value

If the method succeeds, it returns 0; otherwise, it returns one of the following error values:

Value Description
ERR_COMMAND_REMOVED_WITH_SPAD The destination page was removed with the Set Program Access and Defaults (SPAD) tool.
ERR_NAVIGATION_FAILED The method failed.

Remarks

The value of the pageId parameter determines the value of the params parameter, as shown in the following table:

GUID Windows Media Center page params
{ae804109-f3a3-4fe0-8379-518463da7395} ExtensibilityEntryPoint GUIDs that identify the destination page in the appropriate format:
applicationGuid\entrypointGuid or entrypointGuid
{3798c7a7-c31f-46c4-9782-655f64b5920f} ExtensibilityURL URL of the destination page
{ec5a86e5-256a-4316-b294-42d5b86a5bed} FMRadio Null
{7f58b0a0-e85b-4e1e-8726-5f1ba279dd3c} InternetRadio Null
{6c79b00a-8e02-400f-a6f9-06380d1ddecd} LiveTV Null
{5cbc749d-bad7-4dad-b302-1628882d4504} ManageDisks Null
{798b6732-ebbe-4b81-b424-d93bf91b0aad} MorePrograms Null
{0b2357d5-5110-4dcb-b8e7-a4bb6b48bc9e} MovieLibrary Null
{fd331980-26ab-4bac-889f-188e13001a55} MusicAlbums Null
{c4a709f2-4c53-4db4-95eb-d190a95fcfcf} MusicArtists Null
{5eaf585f-4273-4ce1-8284-bd60288b88d9} MusicSongs Null
{d69fa617-1035-4875-ac6e-ca7bdef8c7b4} MyMusic Null
{3b7ff955-01f6-4f68-9775-4d1216b777b7} MyPictures Path to folder
{80e2aa59-4c45-493c-9b75-68bb9ec80617} MyTV Null
{a5abe790-14f9-4075-87a8-e4a940d632ae} MyVideos Path to folder
{fdd1b548-c454-4db9-b702-6d96c4675af2} Photo details Path to the photo
{42c5a65e-35d4-48c8-8828-df636825e091} RecordedTV Null
{dcfa3c0a-d146-4e33-995a-565f8ca1a859} RecorderStorageSettings Null
{ae33979e-6334-45f6-8490-6e05f4032703} ScheduledTVRecordings Null
{1436526c-329d-47dd-9afa-458aab0da6e5} SlideShow Path to folder
{79f21c24-a3a2-4268-9caa-5e9ef241c6a5} SlideshowSettings Null
{b8eac38a-7fb8-4559-84b5-42999c6864bd} Start Null
{21e33f7d-c860-49ff-bd74-a94dab62b434} TVGuide Null
{5b721b57-872d-4ad2-8262-4d6bb2c09c6a} Visualizations visualizationName:preset
{0043FBA8-91E0-4d7d-92E4-5C4C1416B21F} WebAddIn URL of the destination page

If pageId is ExtensibilityEntryPoint and no applicationGuid is specified, Windows Media Center uses the application GUID of the calling application.

If pageID is Visualizations, params is a string containing the visualization name (from the registry) and preset, separated by a colon. For example, "Ambience:Swirl". If a visualization name is specified but not a preset, Windows Media Center uses the previously-selected preset. Similarly, if a preset is specified but not a visualization name, Windows Media Center uses the previously-selected visualization.

Requirements

Platform: HTML application hosted within Windows XP Media Center Edition 2005 through Windows Vista

See Also