Windows Media Player 11 SDK IWMPRemoteMediaServices::GetCustomUIMode 

Windows Media Player SDK banner art

Previous Next

IWMPRemoteMediaServices::GetCustomUIMode

The GetCustomUIMode method is called by Windows Media Player to retrieve the location of a skin file to apply to the Windows Media Player control.

Syntax

  

Parameters

pbstrFile

[out]  Pointer to a BSTR containing the location of the skin file.

Return Values

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Value Description
S_OK The method succeeded.

Remarks

This method allows you to customize the user interface of the embedded control by using Windows Media Player skin technology. Skins used in this way can communicate with the host of the control through a scriptable object retrieved automatically by Windows Media Player through the IWMPRemoteMediaServices::GetScriptableObject method.

To apply a skin file to the embedded control, you must call IWMPPlayer.put_uiMode with a value of "custom". Your implementation of GetCustomUIMode must also return a value of "file://" followed by the path and file name of a skin definition file located on the local computer.

The embedded Windows Media Player control does not have to be remoted to use this method.

Windows Media Player 10 Mobile: This method is not supported.

Requirements

Version: Windows Media Player 9 Series or later.

Header: Include wmp.h.

Library: Use wmp.dll.

See Also

Previous Next